CSS clamp calculator
Create fluid font sizes and scrub the viewport to preview the interpolation.
How it works & useful details
How to use this tool
Set minimum and maximum font sizes with viewport endpoints. Scrub the viewport slider to see the calculated size between them.
Supported values and limitations
All endpoint inputs use CSS pixels. Rem output uses the explicit root-size assumption; changing user font settings changes endpoints. The live sample uses the calculated pixel size for the selected simulated viewport. Coefficients are rounded to six decimal places. Test zoom and text resizing in your own page.
