Skip to content

CSS Clamp Generator

Fluid sizes with clamp() between two screen widths

Runs on your device

How to use CSS Clamp Generator

  1. Set the options: “Smallest size”, “Largest size”, “From screen width”, “To screen width” and more. Reset puts them back.

  2. Press Generate, then copy or download the result.

About CSS Clamp Generator

Fluid sizes with clamp() between two screen widths.

CSS Clamp Generator: common questions

Is CSS Clamp Generator free?

Yes. There's no sign-up, no limit on how often you use it and no watermark.

Is what you enter uploaded anywhere?

No. CSS Clamp Generator works on this device only, so what you enter stays private. You can even turn off the internet once the page is open.

What can I change?

6 settings, including “Smallest size”, “Largest size”, “From screen width”, “To screen width”, “Root font size” and “Output in rem”. Every setting has a sensible default, and Reset puts them all back.

Does it work on a phone?

Yes, in any current browser on Android, iPhone, iPad and desktop.

More design tools

All 46 design tools