Formula
cm = px × 2.54 ÷ 96
16px = 0.4233cm. CSS defines this ratio as fixed.
Same fixed relationship as millimetres, one order of magnitude up.
Converter
—
px to cm conversion table
| px | cm | Rounded |
|---|---|---|
| 1px | 0.02646cm | 0.03cm |
| 2px | 0.05292cm | 0.05cm |
| 4px | 0.10583cm | 0.11cm |
| 6px | 0.15875cm | 0.16cm |
| 8px | 0.21167cm | 0.21cm |
| 10px | 0.26458cm | 0.26cm |
| 12px | 0.3175cm | 0.32cm |
| 14px | 0.37042cm | 0.37cm |
| 16px | 0.42333cm | 0.42cm |
| 18px | 0.47625cm | 0.48cm |
| 20px | 0.52917cm | 0.53cm |
| 22px | 0.58208cm | 0.58cm |
| 24px | 0.635cm | 0.64cm |
| 28px | 0.74083cm | 0.74cm |
| 32px | 0.84667cm | 0.85cm |
| 36px | 0.9525cm | 0.95cm |
| 40px | 1.05833cm | 1.06cm |
| 44px | 1.16417cm | 1.16cm |
| 48px | 1.27cm | 1.27cm |
| 56px | 1.48167cm | 1.48cm |
| 64px | 1.69333cm | 1.69cm |
| 72px | 1.905cm | 1.91cm |
| 80px | 2.11667cm | 2.12cm |
| 96px | 2.54cm | 2.54cm |
| 112px | 2.96333cm | 2.96cm |
| 128px | 3.38667cm | 3.39cm |
| 144px | 3.81cm | 3.81cm |
| 160px | 4.23333cm | 4.23cm |
| 192px | 5.08cm | 5.08cm |
| 224px | 5.92667cm | 5.93cm |
| 256px | 6.77333cm | 6.77cm |
| 320px | 8.46667cm | 8.47cm |
| 384px | 10.16cm | 10.16cm |
| 448px | 11.85333cm | 11.85cm |
| 512px | 13.54667cm | 13.55cm |
Questions
How do I convert px to cm?
cm = px × 2.54 ÷ 96. So 16px = 0.4233cm.
Is the px to cm conversion exact?
Yes, for CSS. The specification fixes 1in = 96px, which pins every absolute unit to a fixed ratio regardless of the physical display. It is not a physical measurement — a CSS inch on a phone is not an inch of glass. For real-world output size use the DPI calculator instead.
Other conversions
Conversions follow the CSS Values and Units specification, in which 1in is defined as exactly 96px. Values are computed, not tabulated by hand.