CSS Clamp() Calculator

Generate fluid typography clamp() CSS from min/max viewport and size.

Works Offline
Privacy First
No Login
No API

Live preview

Resize your browser window to see this text scale fluidly between 16px and 32px.

Preview uses your live browser width — resize the window to test the full range.

Generated CSS

About the CSS Clamp() Calculator

Enter a minimum and maximum font size along with a minimum and maximum viewport width to generate a fluid clamp() CSS value, with a live preview and copy-ready output in px or rem.

Examples

16px to 32px

375px-1440px viewport

Output

font-size: clamp(16px, 0.8889rem + 2.9630vw, 32px);

Related tools

Frequently asked questions

Version 1.0.0 · Updated 2026-08-11 · Runs entirely in your browser