DPI Calculator: Convert cm, mm & Inches to Pixels
Check whether your photo has enough pixels for a print size, work out how many pixels a print needs, or change the DPI label of a JPG or PNG. The advanced converter turns centimeters, millimeters and inches into pixels and back.
Advanced size converterMore resolution tools
Free. No account, no card, no trial — nothing to cancel. Your images stay on your device. No download limits, no watermark.
No photo added: the numbers below use these pixel sizes. To prepare a file, add your photo above.
Enter a print size
This checks pixel resolution, not focus, noise, compression damage or printer quality.
Opens the Image Resizer with this size and PPI. Your image goes along and stays on your device.
Standard sizes for this image
| Print size | PPI reached | Against your target | Note | Use this size |
|---|
The table uses the image, the fit and the target above. Sizes are turned to the better orientation for the image when the orientation is automatic. “Enough pixels” is not the same as sharp.
Type the print size and the PPI you need. You get the pixels the image must have.
Enter a print size
Opens the Image Resizer with this size and PPI. If you added an image above, it goes along. Otherwise you choose one next, and the size stays.
Changing the DPI label changes the suggested print size. It does not add pixels or restore detail.
Add a JPG or PNG above to change its DPI label. Other formats can be saved as a new JPG or PNG with the label.
Advanced size converter
Convert between size and pixels
Type in any box — the others update. Choose what stays fixed when you change the DPI.
Opens the Image Resizer with this size. If you added an image above, it goes along and stays on your device.
More resolution tools
Smaller calculators for other jobs. They are separate from the photo check above.
Bleed for printing
Adds a bleed (extra image around the trim edge, cut off after printing) to a finished size. A common example is 3 mm, but your print shop’s requirement comes first. This is a size specification — it does not create the extra picture content.
Scanning resolution
At what resolution should you scan an original to print it at a larger size? Optical and interpolated DPI are not the same — a higher software setting does not add detail.
Screen PPI
The physical pixel density of a screen — not the DPI label inside an image file. Use the panel’s own pixel count, not the browser’s CSS pixels, and note that zoom and operating-system scaling change CSS pixels only.
DPI and line interval
Converts between a resolution and the distance between lines, for example for engraving. It is a unit conversion — not a recommendation for any machine or material.
Technical details of an image
Aspect ratio, megapixels and the size of the raw, uncompressed pixels. This is not the size of a JPG, PNG or TIFF file.
Raw size ignores compression, the several copies of a picture a browser may hold in memory, and file container overhead.
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.
Change the DPI of a JPG or PNG to 300 (without changing the pixels)
Add your picture in “Check my image for printing”, set the DPI label to 300 and download the copy. In a JPG or PNG the label is replaced in the file header and the picture is not encoded again, so the pixels and the quality stay exactly as they were. Only the print size on paper changes, because the same pixels are spread over fewer or more inches.
A larger print with the same sharpness needs more pixels, not a bigger number. Work out the pixels you need with the calculator, then use the Image Resizer, where you can also write the DPI label into the new file.
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 |
| 18 × 24 cm | 7.09 × 9.45 in | 2126 × 2835 px | 1063 × 1417 px |
| 11 × 14 in | 11 × 14 in | 3300 × 4200 px | 1650 × 2100 px |
| 16 × 20 in | 16 × 20 in | 4800 × 6000 px | 2400 × 3000 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 |
| 24 × 36 in | 24 × 36 in | 7200 × 10800 px | 3600 × 5400 px |
| 70 × 100 cm | 27.56 × 39.37 in | 8268 × 11811 px | 4134 × 5906 px |
| Paper | |||
| A7 (74 × 105 mm) | 2.91 × 4.13 in | 874 × 1240 px | 437 × 620 px |
| 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 |
| A1 (594 × 841 mm) | 23.39 × 33.11 in | 7016 × 9933 px | 3508 × 4967 px |
| A0 (841 × 1189 mm) | 33.11 × 46.81 in | 9933 × 14043 px | 4967 × 7022 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 |
From the pixel size to a finished image
Once you know the pixels you need, press “Continue with these dimensions”. The Image Resizer opens with that size already set. If you added a photo in “Check my image for printing”, it goes along and stays on your device.
When the photo has a different shape than the print, choose “Fit whole image” (nothing is cut, margins fill the rest) or “Fill frame” (the edges are cropped). The resizer shows the original and the new size in pixels and warns you when the photo has to be enlarged, because enlarging adds pixels, not detail.
The DPI number can also be saved as a label inside a JPG or PNG. It only tells software how large the picture should print; it does not change a single pixel. Very large sizes such as 70 × 100 cm at 300 DPI (about 98 megapixels) are calculated correctly, but may be more than a phone or an older computer can process. The page tells you before anything is attempted.
Need to cut the photo to the right shape first? Use the Crop tool.
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.
How do I change the DPI of an image to 300?
Add the image in “Check my image for printing”, enter 300 as the DPI label and download the copy. A JPG or PNG keeps its pixels exactly; only the label changes. If you need more pixels for a larger print, resize it in the Image Resizer and enter 300 in its “DPI label” field.
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.