CSS clamp() Generator (Fluid Typography)

Generate a fluid CSS clamp() value that scales font sizes or spacing smoothly between two screen widths.

Runs instantly in your browser — results update as you type.

How does CSS clamp() work for font sizes?

clamp(MIN, PREFERRED, MAX) returns the preferred value but never less than MIN or more than MAX. For fluid type the preferred value is a rem + vw mix, so the size grows in a straight line from the minimum at a small screen width to the maximum at a large one.

How to use the CSS clamp() Generator (Fluid Typography)

    Frequently asked questions

    Why mix rem and vw?

    A pure vw value ignores the user’s browser zoom and font settings; adding rem keeps text accessible (WCAG 1.4.4).

    Is clamp() supported?

    Yes, in all browsers released since 2020.

    Can the size shrink on larger screens?

    Yes — enter a larger minimum than maximum and the slope becomes negative.