// DESIGN TOOL

CSS clamp() fluid typography calculator

Generate fluid font sizes and spacing with CSS clamp(). Set the minimum and maximum, preview across screen widths and build a full type scale.

  • Free
  • No sign-up
  • Private: runs in your browser
// HOW IT WORKS

4 steps, no sign-up.

Built and maintained by Ruchira Sachinthana. Spotted a bug or want a feature? Tell me.

  1. 01Enter the smallest and largest size you want, and the screen widths they apply at.
  2. 02Drag the preview slider to see the size at any width.
  3. 03Optionally build a type scale from a base size and ratio.
  4. 04Copy the clamp() values as CSS, Tailwind classes or variables.
// FAQ

CSS clamp() calculator: questions, answered.

Something else? Ask on WhatsApp.

A rem part keeps the size responsive to the user's browser font setting, which matters for accessibility. Pure vw sizes ignore zoom preferences.

More free tools

All tools
// CUSTOM TOOLS

Need a tool like this built for your team?

Chat on WhatsApp