Tell the calculator how big your text should be on a phone and on a desktop, and it writes one CSS font-size that grows smoothly in between. Drag the screen width to watch the headline resize, check the size at common screen widths, and copy the clamp() value. No media queries needed.
16 unless your site changes html { font-size }
Headline that fits every screen
| Screen width | 360 | 768 | 1024 | 1280 | 1440 | 1920 |
|---|---|---|---|---|---|---|
| Size (px) | 32 | 42.6 | 49.3 | 56 | 56 | 56 |
font-size: clamp(2rem, 1.413rem + 2.6087vw, 3.5rem);
Calculating runs in your browser. What you type never leaves this device.
Font size on phones and on desktops, in px
Choose where growing starts and stops (default 360 to 1280 px)
Live headline preview at any screen width
Size table at 360, 768, 1024, 1280, 1440 and 1920 px
rem-based output that respects browser zoom and font settings
A 56 px desktop headline that drops to 32 px on phones without breaking onto five lines.
17 px on phones growing to 19 px on wide screens for comfortable reading.
Big pricing figures that stay prominent but never overflow their cards.
The value looks like clamp(2rem, 1.413rem + 2.6087vw, 3.5rem). The first and last parts are your phone and desktop sizes in rem; the middle part grows with the screen. Paste it as the font-size of the element.
As text grows, tighten the line height a little for headings (1.1 to 1.2) and keep body text lines to about 60 to 75 characters with max-width: 65ch.
CSS clamp() Generator
Fluid font sizes, padding and gaps between two screen widths
Type Scale Generator
Modular or fluid type scales as CSS variables or Tailwind
Font Pairing Tool
Try Google Font heading and body pairs in English or Hindi
PX to REM Converter
Pixels to rem and em, and back, for any root font size
JSON Formatter
Format and validate JSON
JSON Sort Keys
Alphabetize JSON keys at every level
JSON Flatten
Nested JSON to dot-path keys
JSON Unflatten
Dot-path keys back to nested JSON
Built by Edesy
Edesy builds AI products for Indian businesses. Start self-serve, no demo call needed.
AI agents that answer and make phone calls 24/7. Handle appointments, inquiries and support in Indian and global languages.
₹50 free credit. No demo call needed.