Front-end
clamp() generator.
Generate fluid typography between two sizes and viewport widths, with CSS ready to copy.
Calculation inputs
Live conversionWorked example
- Minimum font size
- 16 px
- Maximum font size
- 48 px
- Minimum viewport width
- 360 px
- Maximum viewport width
- 1,440 px
- Root font size
- 16 px
- Highlighted width
- 900 px
Size in PX: 32 px
Size in REM: 2 rem
px
px
px
px
px
px
Size in PX32 px
Size in REM2 rem
Visual preview
32 px · 2 rem
Ideas taking shape.
Generated CSS
font-size: clamp(1rem, calc(0.333333rem + 2.962963vw), 3rem);CSS uses a decimal point in every language.
EXPLORE, COMPARE, CREATE
Reference table
Keeps the other project dimensions unchanged to compare scenarios.
| Highlighted width px | Result |
|---|---|
| 360 | 16 px |
| 630 | 24 px |
| 900 | 32 px |
| 1,170 | 40 px |
| 1,440 | 48 px |
✦
Less calculating, more creating. Leave the numbers to us.