CSS Unit Converter

Convert between px, rem, em, vw, vh, and more CSS units.

Convert CSS Units
1
16px = 1rem

Conversion formula

Divide px by 16 (base font size) to get rem

SettingsConversion Context

Used for rem, em, % conversions

Used for vw conversions

Used for vh conversions

Quick Reference
FromToNote
1rem16pxAt 16px base
1em16pxAt 16px parent
100%16pxAt 16px base
1in96pxFixed ratio
1cm37.7953pxFixed ratio
1mm3.7795pxFixed ratio
1pt1.3333pxFixed ratio
1vw19.2pxAt 1920px viewport
1vh10.8pxAt 1080px viewport
62.5%10px10px base trick

About CSS Unit Converter

Convert between CSS units instantly. Relative units like rem and em depend on the base font size (typically 16px in browsers). Viewport units (vw, vh) are relative to the browser window dimensions. Absolute units like px, pt, cm, mm, and in have fixed ratios to each other (1in = 96px = 72pt = 2.54cm). Adjust the settings above to match your project's configuration for accurate conversions.