Unit Converter

Convert px to cm, pt to px, px to rem and other CSS length units. Set font size, viewport dimensions and image PPI for accurate conversions.

Result
2.54cm

In CSS: 1 in = 96 px = 72 pt = 2.54 cm. Physical screen size may differ. For images, use the PPI mode.

Conversion settings

rem uses the HTML font size; em uses the element font size. Set the reference length for % for your CSS property; vw and vh use the viewport.

Common conversions

All units

UnitValueCopy result
pxPixels96
ptPoints72
pcPicas6
cmCentimeters2.54
mmMillimeters25.4
inInches1
remHTML font size6
emElement font size6
%Percent96
vwViewport width5
vhViewport height8.888889
vminSmaller viewport dimension8.888889
vmaxLarger viewport dimension5