CSS Clamp() Calculator

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

Support
Works Offline
Privacy First
No Login
No API

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

CSS
font-size: clamp(1.0000rem, 0.6479rem + 1.5023vw, 2.0000rem);

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

Comments

No login needed. Comments appear after a quick review.

Protected by an on-site captcha — no third-party trackers.

Optional: get an alert when your comment is published or replied to, plus new tool announcements. No sign-up.

Loading comments…

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