How to convert CSS pixels to CSS centimetres
cm = px × 0.0264583333333333
Multiply the px reading by 0.0264583333333333.
Worked examples
16 px ≈ 0.4233333333 cm
16 × 0.0264583333333333 ≈ 0.4233333333
Font basis for this example: element 16 px; root 16 px.
24 px ≈ 0.635 cm
24 × 0.0264583333333333 ≈ 0.635
Font basis for this example: element 16 px; root 16 px.
Frequently asked questions
Which font or display assumption applies?
em and rem depend on the specified font context. CSS absolute units have fixed relationships to reference pixels, which do not necessarily equal physical display pixels.