Web
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
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
| Unit | Value | Copy result |
|---|---|---|
| pxPixels | 96 | |
| ptPoints | 72 | |
| pcPicas | 6 | |
| cmCentimeters | 2.54 | |
| mmMillimeters | 25.4 | |
| inInches | 1 | |
| remHTML font size | 6 | |
| emElement font size | 6 | |
| %Percent | 96 | |
| vwViewport width | 5 | |
| vhViewport height | 8.888889 | |
| vminSmaller viewport dimension | 8.888889 | |
| vmaxLarger viewport dimension | 5 |