Fluid values
Set a minimum and maximum size and viewport range and get one clamp() value.
Generate fluid font sizes and spacing that scale smoothly between breakpoints.
Loading tool…
clamp() lets a font size or spacing value grow smoothly with the viewport, with a minimum and a maximum, and no media queries. Enter the sizes you want at your smallest and largest layouts to get the exact clamp() expression.
Set a minimum and maximum size and viewport range and get one clamp() value.
See the text scale as you change the numbers.
Respects the visitor's font-size settings, which helps accessibility.
4 quick steps. Going deeper? Read Core Web Vitals for WordPress: fixing LCP, INP and CLS without guesswork.
Enter the minimum and maximum size in pixels.
Enter the viewport widths where scaling should start and stop.
Copy the clamp() value; it uses rem so it respects users' font-size settings.
Resize the preview slider to see the size at any viewport width.
Typical situations where this tool saves time.
Short answers about privacy, limits and how the tool works.
rem values scale with the user's browser font-size setting, which keeps fluid text accessible. Pure vw values ignore that setting.
No. The size is calculated from the viewport width before rendering, so it doesn't jump the way breakpoint-based sizes can.
Yes, all current browsers support clamp().
I build custom calculators, admin utilities and integrations for WordPress, Laravel and Next.js teams.
font-size: clamp(1.125rem, 0.7826rem + 1.5217vw, 2rem);
Fluid type scales smoothly between breakpoints.