CSS clamp() calculator

Fluid typography in one CSS function. Pick the size you want at a narrow viewport and at a wide one — get the clamp(min, intercept + slope·vw, max) expression that scales linearly between them and clips at the edges. Live preview included.

Input

Preview

The quick brown fox jumps over the lazy dog
Computed size at this viewport:

Generated CSS


        
      

Size vs viewport

clamped output raw linear (without clamp)

Presets

What the math does