cd .. (all tools)

clamp() calculator

Fluid sizes, and px to rem.

// Runs in your browser. Nothing you type here is sent anywhere.

Fluid size

What 1rem is: 16 px in every browser, unless the site or the visitor changes it.

Write in

rem grows along when the visitor sets a larger font size; px does not.

px and rem

With the root font size above.

clamp()

clamp(1rem, 0.8333rem + 0.8333vw, 1.5rem)

As font-size

font-size: clamp(1rem, 0.8333rem + 0.8333vw, 1.5rem);

Size per screen width

ScreenSize
320 px16 px
375 px16.4583 px
768 px19.7333 px
1024 px21.8667 px
1280 px24 px
1440 px24 px
1920 px24 px

800 px wide: 20 px

Fluid text