CSS clamp() Generator
Calculate fluid CSS clamp() values interpolating smoothly between two viewport widths.
clamp(1.125rem, 0.7826rem + 1.5217vw, 2rem)At 360px: 18px·At 1280px: 32px
The quick brown fox jumps over the lazy dog
Runs in this browser. Nothing is uploaded.
How to use CSS clamp() Generator
Enter your Min and Max sizes along with From and To viewport breakpoints and Root font size.
Drag the Preview viewport slider between 320px and 1920px to see exact interpolated pixel values live.
Copy the generated CSS clamp() expression straight into CSS.
Frequently asked questions
Does clamp() support reverse or negative slopes?
Yes. Exact min/max arguments and negative viewport slopes are formatted cleanly while the live preview clamps between the bounds.