Advertisement
High-Precision CSS Unit Engine

CSS Unit Converter

Convert rem, px, em, and other CSS units quickly and accurately.

Default Baseline: By default, 1rem = 16px. Change the root font size to calculate custom conversions.

Live ConverterInstant

Type any number to see the instant live calculation.

Root Em
Direct Math
Pixel
16
Direct Math
Formula: 1rem × 16px (root font size) = 16px

1rem is defined as exactly 16px.

px
Presets:
How it works: rem is relative to the root (<html>) font size. With a 16px root font size, 1rem = 16px, 2rem = 32px, and 0.5rem = 8px.

Common ConversionsRoot: 16px

Click any preset to populate the converter immediately.

Clickable presets

Batch Converter

Convert multiple CSS values simultaneously into tabular format.

px
6 lines detected

Conversion Table

InputPXEMPT
0.5rem8px0.5em6pt
1rem16px1em12pt
1.25rem20px1.25em15pt
1.5rem24px1.5em18pt
2rem32px2em24pt
3rem48px3em36pt
Values calculate dynamically with root font size 16px and parent context 16px.

CSS Value Converter

Paste raw CSS code to batch convert unit values while preserving formatting.

Root Font Size:
px
8 values converted