Centimeters to Pixels Calculator
Choose Print/Image for PPI-based raster conversion or Web/CSS for the W3C 96 CSS px-per-inch reference relationship.
Choose what the pixels are for
Web/CSS pixels use the CSS reference relationship of 96 px per inch. Raster print pixels depend on the PPI you choose for the final physical size.
Waiting for real job values
Enter a value to convert. No demo number is prefilled.
CSS pixels and print pixels are not the same question
For CSS absolute lengths, the W3C reference relationship is 1 in = 96 px and 1 cm = 96 ÷ 2.54 px. For a raster print, pixel count depends on the chosen PPI. The calculator above lets you choose the context instead of silently assuming one.
| Centimeters | CSS reference | 150 PPI print | 300 PPI print |
|---|---|---|---|
| 1 | 38 px | 59 px | 118 px |
| 2 | 76 px | 118 px | 236 px |
| 5 | 189 px | 295 px | 591 px |
| 10 | 378 px | 591 px | 1,181 px |
| 20 | 756 px | 1,181 px | 2,362 px |
What the result is useful for
Use this when a metric physical size must become either raster pixels for print or CSS reference pixels for web layout; the answer changes with PPI in print mode but not in CSS reference mode.
How the calculation works
Print pixels = centimeters ÷ 2.54 × PPI. In Web/CSS mode, 1 cm = 96 ÷ 2.54 CSS px.
What this calculator cannot know
The math can describe pixels, PPI and geometry, but it cannot judge subject detail, sharpening, resampling quality, printer process, media or viewing distance. Use the output provider’s requirement when one exists.