Convert cm to px
At the browser default root font size of 16 px, 1cm = 37.7953px. Change the base below if your project uses a different root size.
Formula
px = cm × 37.7953
cm = px × 0.026458
Both units are absolute in CSS, so this ratio never changes regardless of font size or user settings.
CM to PX conversion table
| cm | px |
|---|---|
| 8cm | 302.36px |
| 10cm | 377.95px |
| 12cm | 453.54px |
| 14cm | 529.13px |
| 16cm | 604.72px |
| 18cm | 680.31px |
| 20cm | 755.91px |
| 24cm | 907.09px |
| 28cm | 1058.27px |
| 32cm | 1209.45px |
| 36cm | 1360.63px |
| 40cm | 1511.81px |
| 48cm | 1814.17px |
| 56cm | 2116.54px |
| 64cm | 2418.9px |
| 72cm | 2721.26px |
| 80cm | 3023.62px |
| 96cm | 3628.35px |
| 128cm | 4837.8px |
About cm
One centimetre is 96/2.54 ≈ 37.795 CSS pixels. Useful in print stylesheets, misleading on screen.
About px
The CSS pixel is the reference unit of the web. It is not a physical device pixel — it is an angular measure standardised at 1/96th of an inch, which the browser scales for device pixel ratio and zoom.
Which unit should you use?
| Property | Recommended unit | Why |
|---|---|---|
| Font size | rem | Scales with the user's browser font-size preference, which px ignores — an accessibility requirement. |
| Padding and margin | rem or em | rem for a consistent global rhythm; em when the spacing should track the component's own text size. |
| Borders and hairlines | px | You almost always want exactly one crisp pixel, not a value that scales. |
| Media query breakpoints | em | Historically the most reliable across browsers when the user zooms. |
| Print stylesheets | pt, cm, mm | These map to real physical measurements on paper. |
Frequently asked questions
What is 16cm in px?
16cm equals 604.72px at a 16 px root font size.
How do I convert cm to px?
Multiply the cm value by 37.7953. Going the other way, multiply the px value by 0.026458.
Does browser zoom change the result?
No. Both units are absolute in CSS and keep the same ratio at any zoom level, though the rendered size on screen changes.
Why does CSS use 96 pixels per inch?
It is a historical convention from early desktop displays that became the fixed CSS reference. It has nothing to do with your monitor's real pixel density — the browser scales CSS pixels to physical ones for you.