Skip to content

CSS Clamp Calculator

Generate CSS clamp() values for fluid, responsive typography and spacing

Presets

Settings

px
rem
rem
rem
rem

Viewport values are in rem (e.g. 20 = 320px, 80 = 1280px at 16px root)

CSS Output

clamp(1.0000rem, 0.8333vw + 0.8333rem, 1.5000rem)

Live Preview

@ 20remAa16px
@ 50remAa20.0px
@ 80remAa24px

Viewport Reference Table

ViewportValue (px)Value (rem)Status
320px16.00px1.0000remclamped
375px16.46px1.0286remfluid
414px16.78px1.0490remfluid
640px18.67px1.1667remfluid
768px19.73px1.2333remfluid
1024px21.87px1.3667remfluid
1280px24.00px1.5000remclamped
1440px24.00px1.5000remclamped
1920px24.00px1.5000remclamped

Frequently asked questions

What does CSS Clamp Calculator do?

Generate CSS clamp() values for fluid, responsive typography and spacing

What should I check in the result?

Preview the result with your actual content and at different screen sizes. Check readability and compatibility in the browsers you support.