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.
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.
| Print size | DPI reached | Print quality | Note |
|---|
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.
Save a copy with a DPI label
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
- Centimeters, millimeters, inches measure the size of the print on paper. One inch is 2.54 cm.
- Pixels are the tiny squares the picture is made of. A photo of 3000 × 2000 pixels has 6 million of them (6 megapixels), whatever size it is printed at.
- PPI (pixels per inch) is how many of those pixels are spread over one inch of paper. More pixels per inch means a smaller but sharper print.
- DPI (dots per inch) is the printer’s own unit — the ink dots it places per inch. Photo software and image files usually write DPI where they mean PPI, and this calculator treats the two as the same number.
Worked examples
- 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.
- 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.
- 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.
| Length in cm | At 300 DPI | At 150 DPI | At 72 DPI |
|---|---|---|---|
| 5 cm | 591 px | 295 px | 142 px |
| 10 cm | 1181 px | 591 px | 283 px |
| 15 cm | 1772 px | 886 px | 425 px |
| 20 cm | 2362 px | 1181 px | 567 px |
| 21 cm | 2480 px | 1240 px | 595 px |
| 29.7 cm | 3508 px | 1754 px | 842 px |
| 30 cm | 3543 px | 1772 px | 850 px |
| 42 cm | 4961 px | 2480 px | 1191 px |
| 50 cm | 5906 px | 2953 px | 1417 px |
| 70 cm | 8268 px | 4134 px | 1984 px |
| 100 cm | 11811 px | 5906 px | 2835 px |
Common sizes in pixels
| Size | Inches | At 300 DPI | At 150 DPI |
|---|---|---|---|
| Photo prints | |||
| 9 × 13 cm | 3.54 × 5.12 in | 1063 × 1535 px | 531 × 768 px |
| 10 × 15 cm | 3.94 × 5.91 in | 1181 × 1772 px | 591 × 886 px |
| 4 × 6 in | 4 × 6 in | 1200 × 1800 px | 600 × 900 px |
| 5 × 7 in | 5 × 7 in | 1500 × 2100 px | 750 × 1050 px |
| 13 × 18 cm | 5.12 × 7.09 in | 1535 × 2126 px | 768 × 1063 px |
| 15 × 20 cm | 5.91 × 7.87 in | 1772 × 2362 px | 886 × 1181 px |
| 8 × 10 in | 8 × 10 in | 2400 × 3000 px | 1200 × 1500 px |
| 20 × 30 cm | 7.87 × 11.81 in | 2362 × 3543 px | 1181 × 1772 px |
| 30 × 40 cm | 11.81 × 15.75 in | 3543 × 4724 px | 1772 × 2362 px |
| 40 × 60 cm | 15.75 × 23.62 in | 4724 × 7087 px | 2362 × 3543 px |
| 50 × 70 cm | 19.69 × 27.56 in | 5906 × 8268 px | 2953 × 4134 px |
| 70 × 100 cm | 27.56 × 39.37 in | 8268 × 11811 px | 4134 × 5906 px |
| Paper | |||
| A6 (105 × 148 mm) | 4.13 × 5.83 in | 1240 × 1748 px | 620 × 874 px |
| A5 (148 × 210 mm) | 5.83 × 8.27 in | 1748 × 2480 px | 874 × 1240 px |
| A4 (210 × 297 mm) | 8.27 × 11.69 in | 2480 × 3508 px | 1240 × 1754 px |
| A3 (297 × 420 mm) | 11.69 × 16.54 in | 3508 × 4961 px | 1754 × 2480 px |
| A2 (420 × 594 mm) | 16.54 × 23.39 in | 4961 × 7016 px | 2480 × 3508 px |
| US Letter (8.5 × 11 in) | 8.5 × 11 in | 2550 × 3300 px | 1275 × 1650 px |
| US Legal (8.5 × 14 in) | 8.5 × 14 in | 2550 × 4200 px | 1275 × 2100 px |
| ID photos & cards | |||
| Passport photo 35 × 45 mm (EU) | 1.38 × 1.77 in | 413 × 531 px | 207 × 266 px |
| US passport photo 2 × 2 in | 2 × 2 in | 600 × 600 px | 300 × 300 px |
| Business card 85 × 55 mm (EU) | 3.35 × 2.17 in | 1004 × 650 px | 502 × 325 px |
| Business card 3.5 × 2 in (US) | 3.5 × 2 in | 1050 × 600 px | 525 × 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.