Photo Printing

Centimetres to Pixels at Any DPI

Type a print size in centimetres and get the pixels it needs at 300 DPI, or type pixels and get the centimetres back.

Local browser processing · No upload · No account required

Changing the tag keeps the picture data of a JPEG or PNG unchanged. It does not add pixels.

How to convert cm to pixels

The page starts at 300 DPI with a 10 × 15 cm print, the size of a standard photo print.

  1. Keep the print unit on cm. Type the print width or height in centimetres; the pixel field beside it fills in.
  2. Change the DPI if your lab gives one. The pixels follow at once, and the print fields show what the new pixels give.
  3. To go the other way, type pixels in the pixel fields. The print field shows the centimetres they make at the DPI you set.
  4. Press a paper button, such as A4, to set the pixels for a whole sheet at the current DPI.

Why I start at 10 × 15 cm

I start the page at 10 × 15 cm because it is the print most people order first. At 300 DPI it needs 1181 × 1772 px. A 12-megapixel frame of 4032 × 3024 px is far larger than that, and at 300 DPI it prints at 34.14 × 25.60 cm, so most phone photos give a 10 × 15 cm print with pixels to spare.

The cm field is the one to trust. I wrote the conversion to divide by 2.54 first, because a centimetre is that fraction of an inch, and then to multiply by the DPI. Every number on this page comes from that one line of arithmetic.

Common sizes in centimetres

Print size (cm)Pixels at 300 DPIPixels at 150 DPI
10 × 151181 × 1772591 × 886
13 × 181535 × 2126768 × 1063
15 × 201772 × 2362886 × 1181
20 × 252362 × 29531181 × 1476
20 × 302362 × 35431181 × 1772
A4, 21 × 29.72480 × 35081240 × 1754
A3, 29.7 × 423508 × 49611754 × 2480
50 × 705906 × 82682953 × 4134

Each pixel count is the centimetres divided by 2.54, times the DPI, rounded to a whole pixel. It is the same formula the calculator runs in your browser.

The formula, and why 10 cm is not exactly 1181 px

Pixels equal centimetres divided by 2.54, times the DPI. Ten centimetres is 3.937 inches, and 3.937 times 300 is 1181.1 pixels. The page rounds to 1181, because a picture has whole pixels only.

Going back, 1181 pixels at 300 DPI is 9.9991 cm. That reads as 10.00 cm to two decimals. The gap of under a tenth of a millimetre is the rounding to a whole pixel, not an error in the formula.

Choosing the DPI

The DPI is the only setting that changes the pixel count for a given size. Halve the DPI and the pixels halve, so 10 × 15 cm needs 591 × 886 px at 150 DPI, against 1181 × 1772 px at 300 DPI. The printed size of a fixed file moves the other way: 1181 px printed at 150 DPI is 20.00 cm wide.

Use the DPI your lab names. If it names none, 300 DPI is the figure this page starts from, and the rows above show what a lower value asks for.

Checks before you type a size

  • Set the unit and the DPI before you type the size. Changing the unit recalculates the print fields from the pixels.
  • Check the pixel count of your file against the pixels above. A cropped photo has fewer pixels, and so a smaller print.
  • Keep the pixel count of the file you send. A 10 × 15 cm print needs 1181 × 1772 px at 300 DPI, and a smaller file prints smaller.
  • Read the 150 DPI row as the largest sensible print for the same pixels, not as extra detail.

Privacy

Your photo never leaves your device. The page reads its size and DPI in your browser, and a changed photo is saved straight from this page.

Frequently asked questions

How many pixels is 10 cm at 300 DPI?

It is 1181 pixels. Ten centimetres is 3.937 inches, and 3.937 times 300 is 1181.1, rounded to 1181. The same 1181 pixels at 150 DPI would print 20.00 cm wide instead, so check the DPI before you crop.

How do I convert pixels back to centimetres?

Type the pixels in the pixel field. The print field shows the pixels divided by the DPI, times 2.54. For 1181 pixels at 300 DPI the result is 10.00 cm to two decimals.

Why are the pixel counts whole numbers?

An image has whole pixels only, so the page rounds to the nearest one. At 300 DPI one pixel is 0.0085 cm wide, so the rounding moves a print size by less than that. The print field shows the exact size the rounded count gives.

What is the difference between a centimetre and a pixel?

A centimetre is a length on paper, and a pixel is one dot in the file. The DPI links them: at 300 DPI each inch of paper takes 300 pixels, and each centimetre takes about 118.

Does the conversion depend on the photo I choose?

No. The conversion uses only the DPI and the size you type. A photo is needed only on the separate change DPI page, where the tag of a file is written. Here no file is opened or sent anywhere.

Related tools and guides