CSS Clamp() Fluid Type Calculator
Generate a clamp() value that scales font size smoothly between two screen widths. Free, no sign-up, runs in your browser.
Loading tool…
About this tool
Set the smallest and largest size and the screen widths where they apply. The calculator writes a clamp() rule using rem and vw.
How to use it
- Enter or paste your values in the fields above.
- The result updates as you type.
- Use the Copy button to copy the result.
Frequently asked questions
Why use clamp() for typography?
It scales text smoothly with screen size without media queries, while keeping a minimum and maximum.
Let’s talk
Need a team to build it?
We build the software behind tools like this: web apps, APIs, SaaS products and AI features.