Skip to content
Menu

Centimeters to Pixels

Centimeters (cm) to pixels (px) at any resolution. Pick the DPI that matches your screen or print job.

Result793.701px

Resolution (DPI / PPI)

Precision (significant figures)

Formula

px = cm ÷ 2.54 × DPI

1 cm = 37.7953 px at 96 DPI

To know how many pixels a physical size needs, multiply the size in inches by the resolution. In centimeters that is pixels = cm ÷ 2.54 × DPI. The DPI you choose sets how sharp the result will look when printed or displayed.

Formula

px = cm ÷ 2.54 × DPI

Worked example

  1. Start with 21 cm.
  2. Divide by 2.54 cm per inch: 21 ÷ 2.54 = 8.26772 in.
  3. Multiply by the DPI (96): 8.26772 × 96 = 793.701 px.

Cm to px chart

Values in pixels at the four most common resolutions (DPI).

Centimeters (cm)7296150300
0.514.173218.897629.527659.0551
128.346537.795359.0551118.11
256.692975.5906118.11236.22
2.547296150300
5141.732188.976295.276590.551
10283.465377.953590.5511,181.1
14.8419.528559.37874.0161,748.03
15425.197566.929885.8271,771.65
20566.929755.9061,181.12,362.2
21595.276793.7011,240.162,480.31
25708.661944.8821,476.382,952.76
29.7841.891,122.521,753.943,507.87
30850.3941,133.861,771.653,543.31
421,190.551,587.42,480.314,960.63
501,417.321,889.762,952.765,905.51
1002,834.653,779.535,905.5111,811

When you need this conversion

You have a physical size, such as a flyer, a sticker or a photo print, and you need to create or export an image that fills it without looking soft. Design tools ask for pixel dimensions, so you convert the centimeters you were given into pixels at the resolution the output needs.

Picking a resolution

  • 300 DPI for anything held in the hand: photos, flyers, business cards, packaging.
  • 150 DPI for large posters and banners seen from a few meters away.
  • 96 DPI when the “centimeters” are CSS centimeters on a web page. CSS defines 1 cm as 37.7953 px.

Worked approach for print

  1. Take the trimmed size, for example 10 × 15 cm.
  2. Add bleed if the design touches the edge: 10.6 × 15.6 cm.
  3. Convert at 300 DPI: 1252 × 1843 px (rounded up).
  4. Export at those dimensions and set the file’s DPI metadata to 300.

If you are going the other way, from an existing image to its printed size, use the pixels to centimeters converter.

Common mistakes

Designing at screen resolution for print. A 794 px wide A4 design is fine on screen, but printed at 300 DPI it only covers 6.7 cm.

Forgetting that CSS centimeters are not real centimeters on screen. Browsers treat 1 cm as 37.8 CSS pixels, but a phone or monitor will not show exactly 1 cm on a ruler. The mapping is exact on paper, not on glass.

Questions

How many pixels is 1 cm?

At 96 DPI (the CSS reference), 1 cm = 37.7953 px. At 300 DPI, which is typical for print, 1 cm = 118.11 px.

How many pixels do I need for an A4 page?

A4 is 21 × 29.7 cm. At 300 DPI that is 2480 × 3508 px; at 150 DPI it is 1240 × 1754 px; at 96 DPI it is 794 × 1123 px (rounded to whole pixels).

Should I round the result?

Yes. Images only have whole pixels, so round to the nearest whole number. For print, rounding up is safer so the artwork fully covers the area, including any bleed.

Do I need to add bleed?

For print that runs to the edge of the page, most printers ask for 3 mm of bleed on each side. Add 0.6 cm to each dimension before converting.

Sources

Last reviewed 2026-09-23. How we check values · Report a problem with this page