CSS Unit Converter

Reference Sizes

Conversion Table

Type a value in any row — every other unit recomputes from the field you edited.

Unit Value Copy
Pixels px
Root em rem
Relative em em
Percent %
Points pt
Picas pc
Inches in
Centimeters cm
Millimeters mm
Viewport width vw
Viewport height vh

px → rem Quick Reference

follows your root and context font-size above
px rem em
4 0.25 0.25
8 0.5 0.5
12 0.75 0.75
14 0.875 0.875
16 1 1
18 1.125 1.125
20 1.25 1.25
24 1.5 1.5
28 1.75 1.75
32 2 2
40 2.5 2.5
48 3 3
56 3.5 3.5
64 4 4