CSS clamp() Calculator

Generate responsive clamp(min, preferred, max) values for font-size and spacing.

The quick brown fox jumps over the lazy dog. Resize the window to see fluid type.

font-size: clamp(1rem, 0.9rem + 1vw, 1.25rem);

Fluid typography without breakpoints

clamp(min, preferred, max) keeps a value between bounds while scaling with viewport width.

Typical font-size pattern

font-size: clamp(1rem, 0.9rem + 1vw, 1.25rem);
  • min: smallest readable size on mobile
  • preferred: formula with vw for smooth scaling
  • max: cap on large screens

Enter your min, vw factor, and max — the tool outputs the full clamp() expression.