CSS clamp() generator

Generate a CSS clamp() for fluid font sizes and spacing that grow smoothly between two screen widths - in rem.

Free · No sign-up · Your files are processed on your device and never uploaded

How to use CSS clamp() generator

  1. Fill in a few fields…
    1

    Paste or type

    Put your content in the box - or try the example.

  2. Result appears instantly
    2

    Watch the result

    Pick the options you want - the defaults suit most files.

  3. TXTCopy the result
    3

    Download the result

    Ready in seconds. Your file never left your device.

Features

  • Min/max size and screen widths.
  • rem output that respects zoom.
  • Works for font-size, padding, gap…

Free and private

Everything runs in your browser. Nothing you paste is uploaded, logged or stored.

Questions

Why clamp()?

One line replaces several media queries and scales smoothly on every screen.

Is it free?

Yes - free and unlimited, with no sign-up and no watermark.

More developer tools

All tools →