Skip to main navigation Skip to main content Skip to page footer

CSS Clamp() & Responsive Type Calculator

Turn a min and max font size into one clamp() value — fluid type that scales smoothly between breakpoints, no media queries needed.

Unit

Result

Aa — preview text at actual size

Simulated viewport: 800px

  1. 1

    Set your sizes

    Enter a minimum and maximum font size, each tied to a viewport width.

  2. 2

    Preview live

    Drag the viewport slider to see the size scale in real time.

  3. 3

    Formula is calculated

    The tool converts your two points into one clamp() expression.

  4. 4

    Copy the CSS

    Paste the finished line directly into your stylesheet.


FREQUENTLY ASKED QUESTIONS

It's a linear interpolation between your two size/viewport pairs, expressed as a vw-based slope plus a fixed rem offset — the same math behind tools like Utopia, just wrapped in one field.

For font size, yes in most cases — one clamp() line scales smoothly across the whole range. You'd still use media queries for layout changes that aren't purely about scaling a number.

rem respects the user's browser font-size setting, which matters for accessibility — someone who's increased their default text size gets a proportionally bigger result too. You can switch to px output if you specifically need it.

The font size locks to your minimum or maximum value — clamp() only interpolates between the two breakpoints, it never goes smaller or larger than what you set.


Need more than a free tool?

If you're ready for a real project — website, branding, or something custom — let's talk.

Get in touch