Resolution-aware conversion

CM to Pixels Converter

Convert centimeters to pixels at the resolution your project needs. Set the DPI and the tool returns the exact pixel width, with the formula shown so you can check it yourself.

Resolution
0

How do you convert cm to pixels?

To convert cm to pixels, divide the centimeters by 2.54 to reach inches, then multiply by your resolution in DPI. The formula is pixels = cm / 2.54 x DPI. At 96 DPI, 1 cm is about 38 pixels, and at 300 DPI it's about 118 pixels.

Here's why the math works that way. There are exactly 2.54 centimeters in one inch, so dividing by 2.54 converts your metric length into inches. DPI means dots per inch, so multiplying by DPI tells you how many pixels fit inside that span. A 10 cm box, for example, comes out to 378 pixels at 96 DPI and 1,181 pixels at 300 DPI. That's a big gap, and it's the single thing people miss when their export looks wrong.

You don't have to memorize any of this. The converter above runs the same equation live, so you can type a value, switch the DPI, and watch the pixel count update. It's the fastest way to size a metric layout for the web or for print without second-guessing your figures.

One detail trips people up: the 2.54 figure is exact, not rounded. One inch is defined as 25.4 millimeters, which is 2.54 centimeters, so the cm-to-inch step never introduces error. Any rounding you see comes from the final pixel value, because you can't draw a fraction of a pixel. That's why 1 cm shows as 38 pixels rather than 37.795 pixels at 96 DPI. The tool rounds to the nearest whole pixel, which is exactly what your design software does when it rasterizes a metric measurement.

Why does the pixel count change with DPI?

A pixel has no fixed physical size, so the same length in centimeters maps to different pixel counts at different resolutions. Higher DPI packs more pixels into each centimeter, which means sharper detail and a larger file. That's the honest answer most quick converters skip.

Think of DPI as a density dial. At 96 DPI you're spreading roughly 38 pixels across each centimeter; at 300 DPI you're cramming about 118 into the same space. Neither value is "more correct" on its own, it's just tuned for a different output. So you can't convert cm to pixels until you've decided where the artwork will live. Pick the resolution first, then read the number, and you won't get caught out by a blurry print or a bloated PNG.

This is the part thin converters won't tell you, and it's the difference between a clean export and a reprint. If a print shop asks for a 15 cm wide graphic, that's 1,772 pixels at 300 DPI, not the 567 pixels you'd get at the screen-default 96 DPI. Hand over the smaller file and the press will stretch it, so edges go fuzzy. The reverse mistake hurts too: building a 96 DPI web banner at 300 DPI triples the pixel dimensions and balloons the file for no visible gain. Matching DPI to the medium keeps both quality and file size where they belong.

CM to pixels conversion chart

Here's how common centimeter values land at the two resolutions designers reach for most: 96 DPI for screens and 300 DPI for print. These are computed with the same formula above, so they'll match the tool exactly.

Cm 72 DPI96 DPI150 DPI300 DPI600 DPI
1 28 px38 px59 px118 px236 px
5 142 px189 px295 px591 px1,181 px
10 283 px378 px591 px1,181 px2,362 px
20 567 px756 px1,181 px2,362 px4,724 px
30 850 px1,134 px1,772 px3,543 px7,087 px
CentimetersPixels at 96 DPIPixels at 300 DPI
1 cm38 px118 px
5 cm189 px591 px
10 cm378 px1,181 px
20 cm756 px2,362 px
21 cm (A4 width)794 px2,480 px
30 cm1,134 px3,543 px

That A4 row is worth a look. A full A4 page is 21 cm wide, which is 2,480 pixels at 300 DPI, the standard for a print-ready file. If you're working at screen resolution instead, the same page is only 794 pixels, and that's why a layout that looks crisp in the browser can print soft.

How do you use the cm to pixels converter?

It's a three-step job, and you'll have a pixel value in a couple of seconds.

  1. Type the length in centimeters into the converter.
  2. Pick a DPI preset, or enter a custom resolution if your spec calls for one.
  3. Read the pixel result and copy it straight into your design tool.

If you're not sure which resolution applies, don't guess. Match it to where the artwork ends up, and the section below spells out the safe defaults.

What DPI should you use for cm to pixels?

The right DPI depends on viewing distance and output. Here are the values that cover almost every job:

Metric print files are the one place people slip up, so it's worth saying plainly: keep print artwork at 300 DPI even when you're working in centimeters. The unit doesn't change the rule. If you want the full breakdown of which resolution suits each medium, our DPI guide walks through screens, print and large format with examples you can copy.

Frequently asked questions

How do you convert cm to pixels?

Divide the centimeters by 2.54 to get inches, then multiply by your DPI. The formula is pixels = cm / 2.54 x DPI. At 96 DPI, 1 cm is about 38 pixels; at 300 DPI it's about 118 pixels, so the resolution you pick decides the result.

How many pixels is 1 cm?

At 96 DPI, 1 cm is about 38 pixels. At 300 DPI it's about 118 pixels. There's no single answer, because a pixel doesn't have a fixed physical size. You'll get a different count at every resolution.

What DPI should I use for cm to pixels?

Use 96 DPI for screens, 300 DPI for print, and 150 DPI for large-format work that's viewed from a distance. If you're building a metric print file, keep it at 300 DPI so it doesn't look soft.

Is cm to px the same at 72 and 96 DPI?

No, it isn't. At 72 DPI, 1 cm is about 28 pixels; at 96 DPI it's about 38 pixels. Older Mac software assumed 72 DPI, but today's browsers treat 96 DPI as the CSS reference, so that's what you'll usually want on screen.

How do I convert pixels back to cm?

Divide the pixels by your DPI, then multiply by 2.54: cm = pixels / DPI x 2.54. Our pixels to cm converter does it for you instantly, so you don't have to redo the math by hand.

Last updated: June 14, 2026