Clamp Generator

Generate responsive font-size clamp() CSS.

šŸ“ Fluid Typography clamp generator

Min Size (px)
Max Size (px)
Viewport Min (px)
Viewport Max (px)
Unit
Decimals
Property
Presets
Helpers

Formula: clamp(min, calc(slope * 100vw + intercept), max)

Result

font-size: clamp(16px, calc(0.833vw + 13.333px), 24px);
Show Pieces
min: 16px
max: 24px
slope: 0.833vw
intercept: 13.333px

šŸ‘€ Live preview

W: 1440px • H: 900px
Simulate width (px)

Try resizing with the sliders above.

Fluid sample: The quick brown fox jumps over the lazy dog 0123456789 — AĆ Ć‚Š‘Š²Ć‡Ć§ĆŠĆŖÄžÄŸĆŽĆ®Ć‘Ć±Ć–Ć¶ÅžÅŸĆœĆ¼Åø.

The simulator scales down to fit the panel; CSS values still use the exact simulated width/height in calculations.