Skip to main content

CM to PX Converter

Convert centimeters to pixels with adjustable PPI or DPI. Calculate pixel values and image dimensions for CSS, design, and print.

Centimeters
cm
Pixels
px

Unit Relationship

At 96 PPI
1 px = 0.026458 cm  
1 cm = 37.795276 px
      

CM to PX Conversions 96 PPI

CMPX
1cm37.795276px
2.54cm96px
3.5cm132.283465px
4.5cm170.07874px
10cm377.952756px
21cm793.700787px

Your tool input is processed locally in your browser—not uploaded to or stored by Bitty Coder. Privacy Policy

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

  1. Enter a centimeter value, or choose Dimensions for width and height.
  2. Use 96 PPI for CSS, 300 for a common print target, or enter the required PPI.
  3. 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:

Centimeters96 PPI150 PPI300 PPI
1cm37.795276px59.055118px118.110236px
2.54cm96px150px300px
3.5cm132.283465px206.692913px413.385827px
4.5cm170.07874px265.748031px531.496063px
10cm377.952756px590.551181px1181.102362px
21cm793.700787px1240.15748px2480.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.