Fluid clamp() between two viewport widths, verified at real widths
Responsive Font Size Calculator
See what your text will measure on a phone, tablet and desktop before you ship a fluid size.
Loading tool…
How to use responsive font size calculator
Pick a preset such as Body copy or Display heading, or type your own sizes.
Set the line height you want on small and on large screens.
Enter the small and large screen widths and your root size.
Read the device table and warnings, preview any width, then copy the CSS.
What this tool does
- Generates matching clamp() values for both font-size and line-height.
- Shows the font size and line height on seven common screen widths.
- Warns when the largest size is more than 2.5 times the smallest, a rule of thumb for text that still enlarges under 200% zoom.
- Includes the same real-width proof table as the clamp generator.
How the result is verified
The proof table lays out the font size in hidden frames at real widths and compares the browser's computed size with the expected line.
Frequently asked questions
How is this different from the clamp() generator?
The clamp generator is for any length. This one is for text: it pairs font size with line height, lists common devices and checks the zoom rule of thumb.
Should line height shrink on big screens?
Usually a little for headings: large type looks loose at the same ratio as body text. Body copy often stays near 1.5 everywhere.
Is my data uploaded to a server?
No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.
Related tools
Modular type scale with common ratios, fluid option and CSS variables
px, rem and em both ways with any root size, plus bulk CSS rewrite
vw, vh, vmin and vmax to px and back for any screen size