CSS Clamp() Generator for Fluid Typography

Generate a CSS clamp() value that scales a font size or spacing smoothly between two viewport widths.

How to use CSS Clamp() Generator for Fluid Typography

  1. Enter the minimum and maximum size in px.
  2. Enter the viewport widths where scaling starts and stops.
  3. Copy the clamp() value.

Supported features and limitations

Output is in rem so it respects user font settings. clamp() is supported by all current browsers. The result scales linearly; test at your breakpoints and check that very large zoom levels still meet accessibility needs.

Privacy

Everything you type is processed locally in your browser and is not sent to our servers. No account is needed and there is no watermark.

Frequently asked questions

What does clamp() do?

It picks a preferred value but never goes below the minimum or above the maximum.

Can I use it for padding and margins?

Yes, any length property accepts clamp().

Related tools

More Developer & Webmaster Tools · All free tools