designwithfocus

Fluid Typography (clamp) Calculator

Visual editor, copy-ready CSS and Tailwind.

Free No sign-up Runs in your browser
Fluid heading — resize the window to see it scale

At 320px the text is 16px; at 1200px it is 32px; between the two it scales smoothly.

font-size: clamp(16px, 10.18px + 1.82vw, 32px);

How to use Fluid Typography (clamp) Calculator

  1. Adjust the controls until the preview looks right.
  2. Copy the generated CSS from the code box.
  3. Paste it into your stylesheet.

The clamp() property

This generator writes clamp() for you. The example below is one output the tool can produce.

Adjust Minimum, preferred and maximum sizes to change the result.

font-size: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);

Using the CSS

Paste the copied CSS into your stylesheet, or convert it to Tailwind classes where the tool offers that option.

Test the result at mobile and desktop widths before shipping it.

FAQ

Is the generated CSS free to use?

Yes. Use it in any project, commercial or personal.

Does the tool upload anything?

No. Everything runs in your browser.

Can I copy the CSS as Tailwind?

Where the tool offers a Tailwind copy, it converts the matching declarations to classes.

Will the CSS work in all browsers?

The properties used here are widely supported. Check the preview in your target browsers.

Report a problem with this tool