Test the two viewport boundaries
For a font that should grow from 16 px at 360 px viewport width to 24 px at 1200 px, use the example values. The middle calc expression interpolates between the two sizes. At a 780 px viewport, the result is about 20 px.
Compare the computed font-size near 360 and 1200 pixels in browser devtools. Then check wrapping and zoom with real text. This calculator outputs px-based bounds. If your design system uses rem, review root font scaling before adopting the declaration.
Try an example
Enter minimum and maximum font sizes, then the smaller and larger viewport widths, in pixels.
16, 24, 360, 1200
Expected output
font-size: clamp(16px, calc(0.95238vw + 12.57143px), 24px);
Common questions
- What happens outside the viewport range?
- The clamp minimum or maximum limits the preferred value outside the chosen interval.
- Does the output replace responsive typography testing?
- Check narrow, wide, and zoomed layouts in the browser. Line length and wrapping depend on other layout rules.
The tool processes your input in this browser. It does not upload the input itself.