CSS Unit Converter
Convert between px, rem, em, vw, vh, and more CSS units.
Convert CSS Units
1
16px = 1remConversion 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
| From | To | Note |
|---|---|---|
1rem | 16px | At 16px base |
1em | 16px | At 16px parent |
100% | 16px | At 16px base |
1in | 96px | Fixed ratio |
1cm | 37.7953px | Fixed ratio |
1mm | 3.7795px | Fixed ratio |
1pt | 1.3333px | Fixed ratio |
1vw | 19.2px | At 1920px viewport |
1vh | 10.8px | At 1080px viewport |
62.5% | 10px | 10px 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.