What Is Fluid Typography?
Fluid typography scales a font size smoothly between two points as the viewport width changes, instead of jumping abruptly at fixed media-query breakpoints. CSS's clamp(MIN, PREFERRED, MAX) function makes this a one-line solution: it picks the PREFERRED value (a viewport-width-based calculation) but never goes below MIN or above MAX, so text stays readable on both a small phone and an ultra-wide monitor without a single media query.
The math behind it is just the equation of a straight line between two (viewport width, font size) points - this tool does that algebra for you and outputs a ready-to-paste clamp() declaration.
Why Use clamp() Over Media Queries
Frequently Asked Questions
No - the entire clamp() formula is computed with plain JavaScript arithmetic in your browser. Nothing you type is sent anywhere.
vw (viewport width) is what makes the value scale with screen size, and rem keeps the offset consistent with the user's root font-size setting (accessibility-friendly) instead of a fixed pixel value that ignores browser zoom/font preferences.
clamp() automatically holds the font size at exactly your Min font size or Max font size value outside that range - you don't need extra media queries to cap it.
Yes - the same clamp() formula works for any CSS length property (padding, margin, gap, border-radius, and more). Just paste the generated value into whichever property you need to scale fluidly.