CSS Clamp() Calculator
Generate fluid typography clamp() CSS from min/max viewport and size.
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 viewportOutput
font-size: clamp(16px, 0.8889rem + 2.9630vw, 32px);Related tools
Border Radius Generator
HTML & CSS
Fine-tune per-corner border radii visually.
Box Shadow Generator
HTML & CSS
Layer multiple box-shadows with a live preview.
Clip Path Generator
HTML & CSS
Design polygon clip-path shapes with a live preview.
CSS Animation Generator
HTML & CSS
Build keyframe animations visually with a live preview.
CSS Aspect Ratio Calculator
HTML & CSS
Simplify ratios and compute matching dimensions.
CSS Filter Playground
HTML & CSS
Tune blur, brightness, contrast, and more with a live preview.
Frequently asked questions
Version 1.0.0 · Updated 2026-08-11 · Runs entirely in your browser