Free website audit in 60 seconds
Skip to content
Webmaster.ae
  • Loading…
Webmaster.ae
Free website auditSpeed, SEO, security and email, with a PDF report

Follow us

Runs in your browserFree · no sign-up

CSS clamp() fluid type calculator

Enter the smallest and largest font size you want and the viewport widths they apply at. You get a ready-to-use clamp() rule and a table of the resulting sizes at common screen widths.

Live resultUpdates as you type

Press “Generate clamp()” to see the result here.

How do I use the CSS clamp() fluid type calculator?

CSS clamp() fluid type calculator: frequently asked questions

What is clamp()?

A CSS function that picks a value between a minimum and maximum, based on a preferred value — here, one that grows with the viewport width.

Why use rem?

So text still scales when users change their browser’s default font size.

Can I use it for spacing?

Yes. The same formula works for padding, margins and gaps.

Is clamp() supported?

Yes, in all modern browsers.

Does it work with Tailwind?

Yes — use an arbitrary value like text-[clamp(1.75rem,1.2rem+2.2vw,3rem)].

Is anything uploaded?

No. It runs in your browser.

Can I use the output in Figma or CSS?

Yes. Values are standard HEX, RGB, HSL and CSS that work in Figma, CSS and most design tools.

Is the css clamp() fluid type calculator free?

Yes. It is free with no sign-up and no usage limits for normal use.

Is my data sent to your servers?

No. This tool runs entirely in your browser, so what you type never leaves your device.

Does it work on my phone?

Yes. The tool works in any modern browser on iPhone, Android, tablet or computer.