CSS Clamp Calculator
Type the text size you want on a small screen and on a big screen, and get the CSS clamp value that grows smoothly between them.
1 Fill in the boxes
2 Your answer
Your answer shows here as you type.
How to use the CSS Clamp Calculator
- Type the size on small screens and the size on big screens.
- Type the screen width where each of those sizes applies.
- Copy the CSS value into your CSS.
Frequently asked questions
What does clamp do?
It sets a value that grows with the screen, but never goes below the smallest size or above the biggest size.
Why is there a vw part in the middle?
vw is a percentage of the screen width, so the middle part grows as the screen grows. That is what makes the change smooth.
Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.