CSS Clamp() Calculator

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

Support
Works Offline
Privacy First
No Login
No API

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);

Keyboard shortcuts

  • Copy the main outputCtrl / ⌘ + Shift + C
  • Download the resultCtrl / ⌘ + S
  • Share this toolCtrl / ⌘ + Shift + S
  • Reset the inputsAlt + R
  • Open the tool search paletteCtrl / ⌘ + K

Related tools

Frequently asked questions

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