clamp() calculator
Fluid sizes, and px to rem.
Fluid sizes, and px to rem.
// Runs in your browser. Nothing you type here is sent anywhere.
What 1rem is: 16 px in every browser, unless the site or the visitor changes it.
rem grows along when the visitor sets a larger font size; px does not.
clamp(1rem, 0.8333rem + 0.8333vw, 1.5rem)
font-size: clamp(1rem, 0.8333rem + 0.8333vw, 1.5rem);
| Screen | Size |
|---|---|
| 320 px | 16 px |
| 375 px | 16.4583 px |
| 768 px | 19.7333 px |
| 1024 px | 21.8667 px |
| 1280 px | 24 px |
| 1440 px | 24 px |
| 1920 px | 24 px |
800 px wide: 20 px
Fluid text