What is a CM to PX converter?
A CM to PX converter calculates how many pixels are needed for a centimeter length at a chosen PPI. The result depends on pixel density: one centimeter requires more pixels at 300 PPI than at the CSS reference density of 96 PPI.
At 96 PPI, 1cm equals about 37.795276px. At 300 PPI, the same centimeter equals about 118.110236px.
How to convert centimeters to pixels
- Enter a centimeter value, or choose Dimensions for width and height.
- Use 96 PPI for CSS, 300 for a common print target, or enter the required PPI.
- Copy the exact pixel result.
The PX panel remains editable, so the same tool can check the reverse conversion without opening another page.
CM to PX formula and example
Use this formula:
Pixels = Centimeters × PPI ÷ 2.54
For 3.5 centimeters at 300 PPI:
3.5 × 300 ÷ 2.54 = 413.385827px
The converter keeps the exact value visible and available to copy.
Common centimeters to pixels conversions
The interactive table above updates with the selected PPI. These values compare common densities:
| Centimeters | 96 PPI | 150 PPI | 300 PPI |
|---|---|---|---|
| 1cm | 37.795276px | 59.055118px | 118.110236px |
| 2.54cm | 96px | 150px | 300px |
| 3.5cm | 132.283465px | 206.692913px | 413.385827px |
| 4.5cm | 170.07874px | 265.748031px | 531.496063px |
| 10cm | 377.952756px | 590.551181px | 1181.102362px |
| 21cm | 793.700787px | 1240.15748px | 2480.314961px |
CSS centimeters and print dimensions
CSS defines 1in = 96px and 1in = 2.54cm. Under that unit relationship, 1cm is approximately 37.795276px.
For a printed image, use the PPI requested by the printer or publishing workflow. A CSS centimeter is a calculated unit and may not measure as one physical centimeter on every screen.
Converting width and height
Dimensions mode converts both sides with the same PPI. For example, 3.5 × 4.5cm becomes approximately 413.385827 × 531.496063px at 300 PPI.
The converter does not lock aspect ratio or resize an image. Width and height remain independent measurements.
PPI vs. DPI
PPI describes pixels per inch and is used to calculate pixel dimensions. DPI usually describes printer dots per inch. Print instructions often use DPI when referring to image resolution, so the interface accepts the familiar wording while the calculation uses PPI.
Need the reverse direction? Use the PX to CM Converter. To work in inches, use the Inches to Pixels Converter.
CM to PX FAQ
How many pixels are in one centimeter?
At 96 PPI, one centimeter is about 37.795276px. At 300 PPI, it is about 118.110236px.
What is 3.5 × 4.5cm in pixels?
At 300 PPI, it is approximately 413.385827 × 531.496063px.
Why does changing PPI change the pixel result?
PPI defines how many pixels fit into each inch. A higher target density needs more pixels for the same physical size.
Is 96 PPI always correct?
It is correct for the CSS unit relationship. Images and print jobs can require a different target PPI.
Can I enter a negative centimeter value?
No. The converter accepts zero and positive physical dimensions.