⚡ Instant, in-browser🔒 Never uploaded

DPI Calculator: Convert cm, mm & Inches to Pixels

Convert centimeters, millimeters and inches to pixels (and back) at any DPI. Then check whether your photo is sharp enough for a print size, or save it with the DPI you need.

Convert between size and pixels

Type in any box — the others update. Change the DPI and the side you did not type in last is recalculated.

Quick DPI
Width
Height

Check my image for printing

Add a photo to see the DPI it reaches at common print sizes — or just type its pixel size. Your file is never uploaded.

Drop an image here, click to choose, or paste from clipboardJPG, PNG, WebP, HEIC, TIFF and more · processed entirely on your device

Rule of thumb: 300 DPI or more looks sharp in the hand, 150–200 DPI is fine for posters seen from a distance. Prints are cropped to fill the paper when the shapes differ.

DPI to pixels: how the calculation works

One inch is 2.54 centimeters, or 25.4 millimeters. The number of pixels is the size in inches multiplied by the DPI, so pixels = inches × DPI. To go the other way, divide: inches = pixels ÷ DPI. For example, 10 cm at 300 DPI is 10 ÷ 2.54 × 300 ≈ 1181 pixels.

cm, pixels and PPI/DPI — what the words mean

Worked examples

  1. Pixels needed for a 10 × 15 cm photo print at 300 PPI. 10 cm ÷ 2.54 = 3.94 in, × 300 = 1181 pixels. 15 cm ÷ 2.54 = 5.91 in, × 300 = 1772 pixels. You need at least 1181 × 1772 pixels.
  2. Pixels needed for an A3 poster (29.7 × 42 cm) at 300 PPI. 29.7 ÷ 2.54 × 300 = 3508 pixels and 42 ÷ 2.54 × 300 = 4961 pixels, so 3508 × 4961 pixels, about 17.4 megapixels.
  3. Largest print of a 3000 × 2000 pixel photo. At 300 PPI: 3000 ÷ 300 = 10 in and 2000 ÷ 300 = 6.67 in, which is 25.4 × 16.9 cm. At 150 PPI the same photo prints at 50.8 × 33.9 cm, still fine for a poster seen from a distance but less sharp up close.

cm to pixels — quick reference

Pixels = centimeters ÷ 2.54 × DPI. The table shows how many pixels a length needs at three common resolutions.

Centimeters to pixels at 300, 150 and 72 DPI
Length in cmAt 300 DPIAt 150 DPIAt 72 DPI
5 cm591 px295 px142 px
10 cm1181 px591 px283 px
15 cm1772 px886 px425 px
20 cm2362 px1181 px567 px
21 cm2480 px1240 px595 px
29.7 cm3508 px1754 px842 px
30 cm3543 px1772 px850 px
42 cm4961 px2480 px1191 px
50 cm5906 px2953 px1417 px
70 cm8268 px4134 px1984 px
100 cm11811 px5906 px2835 px

Common sizes in pixels

Pixels needed for common print sizes at 300 and 150 DPI
SizeInchesAt 300 DPIAt 150 DPI
Photo prints
9 × 13 cm3.54 × 5.12 in1063 × 1535 px531 × 768 px
10 × 15 cm3.94 × 5.91 in1181 × 1772 px591 × 886 px
4 × 6 in4 × 6 in1200 × 1800 px600 × 900 px
5 × 7 in5 × 7 in1500 × 2100 px750 × 1050 px
13 × 18 cm5.12 × 7.09 in1535 × 2126 px768 × 1063 px
15 × 20 cm5.91 × 7.87 in1772 × 2362 px886 × 1181 px
8 × 10 in8 × 10 in2400 × 3000 px1200 × 1500 px
20 × 30 cm7.87 × 11.81 in2362 × 3543 px1181 × 1772 px
30 × 40 cm11.81 × 15.75 in3543 × 4724 px1772 × 2362 px
40 × 60 cm15.75 × 23.62 in4724 × 7087 px2362 × 3543 px
50 × 70 cm19.69 × 27.56 in5906 × 8268 px2953 × 4134 px
70 × 100 cm27.56 × 39.37 in8268 × 11811 px4134 × 5906 px
Paper
A6 (105 × 148 mm)4.13 × 5.83 in1240 × 1748 px620 × 874 px
A5 (148 × 210 mm)5.83 × 8.27 in1748 × 2480 px874 × 1240 px
A4 (210 × 297 mm)8.27 × 11.69 in2480 × 3508 px1240 × 1754 px
A3 (297 × 420 mm)11.69 × 16.54 in3508 × 4961 px1754 × 2480 px
A2 (420 × 594 mm)16.54 × 23.39 in4961 × 7016 px2480 × 3508 px
US Letter (8.5 × 11 in)8.5 × 11 in2550 × 3300 px1275 × 1650 px
US Legal (8.5 × 14 in)8.5 × 14 in2550 × 4200 px1275 × 2100 px
ID photos & cards
Passport photo 35 × 45 mm (EU)1.38 × 1.77 in413 × 531 px207 × 266 px
US passport photo 2 × 2 in2 × 2 in600 × 600 px300 × 300 px
Business card 85 × 55 mm (EU)3.35 × 2.17 in1004 × 650 px502 × 325 px
Business card 3.5 × 2 in (US)3.5 × 2 in1050 × 600 px525 × 300 px

Need to hit an exact size? Crop to the right shape with the Crop tool, then set the pixels with the Image Resizer.

Frequently asked questions

How do I convert DPI to pixels?

DPI alone is not a size — you also need the print size. Pixels = inches × DPI. A print that is 20 cm wide at 300 DPI needs 20 ÷ 2.54 × 300 = 2362 pixels in width. Type the size and the DPI into the calculator above and it shows width and height in pixels.

How many pixels do I need for a 50 × 70 cm or 70 × 100 cm poster?

A 50 × 70 cm poster needs 5906 × 8268 pixels at 300 DPI and 2953 × 4134 pixels at 150 DPI. A 70 × 100 cm poster needs 8268 × 11811 pixels at 300 DPI and 4134 × 5906 pixels at 150 DPI. Posters are seen from a distance, so 150 DPI is often enough.

How do I convert cm to pixels?

Divide the length in centimeters by 2.54 to get inches, then multiply by the DPI. At 300 DPI, 10 cm is 10 ÷ 2.54 × 300 = 1181 pixels. The calculator above does this for width and height at once, and works in the other direction too.

How many pixels is an A4 page?

At 300 DPI an A4 page (210 × 297 mm) is 2480 × 3508 pixels. At 150 DPI it is 1240 × 1754 pixels, and at 72 DPI it is 595 × 842 pixels.

What is the difference between DPI and PPI?

PPI (pixels per inch) says how many image pixels are spread over one inch. DPI (dots per inch) strictly counts the ink dots a printer puts on paper — a printer uses many dots to build one pixel. In everyday use, and in the resolution label inside JPG and PNG files, “DPI” is used for pixels per inch as well. That is why this page says DPI in its name, but always means pixels per inch when it converts between pixels and centimeters.

Does changing the DPI make my image sharper or bigger?

No. DPI is only a label that says how large the picture should print. The number of pixels stays the same, so a 3000 × 2000 pixel photo is always 3000 × 2000 pixels. A higher DPI simply means a smaller print at the same sharpness. To really change the pixel size, use the Image Resizer.

Which DPI do I need for printing?

For photos and documents held in your hand, 300 DPI is the usual target. Posters, banners and large prints are seen from further away, so 100–150 DPI is often enough. Use the “Check my image for printing” section above to see the DPI your photo reaches at each print size.

Which DPI is right for websites and screens?

None — on screens only the pixel dimensions matter, not the DPI label. The 72 and 96 DPI values you may see are historical defaults. A 1200 pixel wide image looks the same on a website whether it is labelled 72 or 300 DPI.

What pixel size does a passport photo need?

A 35 × 45 mm passport photo, the common size in Europe, is 413 × 531 pixels at 300 DPI. Requirements differ by country, so check the exact size and background rules of the authority that will receive it. Use the Crop tool to cut the photo to the right proportions.

Can I set the DPI of a JPG or PNG here?

Yes. Add your image in “Check my image for printing”, choose the DPI and download a copy with that label. The picture itself is not resampled. For a JPG or PNG you can save the same file with only the label replaced — no re-encoding at all. Other files (WebP, HEIC, TIFF…) are saved again as JPG at 95% quality or as lossless PNG.

Can I undo a change?

Yes. Each of the two panels has its own Undo and Redo buttons (or press Ctrl+Z and Ctrl+Shift+Z in the panel you are working in). They step back through the sizes, the DPI, the print size preset and the settings for saving a file.

Is my image uploaded anywhere?

No. The calculator and the image check run entirely in your browser. Your file never leaves your device.