DPI to pixels: the conversion, as a table
Skip the explanation if you already know how it works — the tables below are the answer. Everything on this page is arithmetic, and every row was computed rather than copied, so the numbers agree with each other.
The formula, if you only need one line:
pixels = millimetres ÷ 25.4 × dpi
For inches it is shorter: pixels = inches × dpi. If you would rather have the tool do the crop and resize, the ID photo tool works backwards from a printed size.
Passport and ID photo sizes, at four common resolutions
The same physical size produces wildly different pixel counts depending on the resolution asked for. This is the table that makes that concrete.
| Physical size | 72 dpi | 150 dpi | 300 dpi | 600 dpi |
|---|---|---|---|---|
| 25 × 35 mm (China 1 inch) | 71 × 99 | 148 × 207 | 295 × 413 | 591 × 827 |
| 33 × 48 mm (China passport) | 94 × 136 | 195 × 283 | 390 × 567 | 780 × 1134 |
| 35 × 45 mm (UK, Schengen, Japan) | 99 × 128 | 207 × 266 | 413 × 531 | 827 × 1063 |
| 50 × 70 mm (Canada passport) | 142 × 198 | 295 × 413 | 591 × 827 | 1181 × 1654 |
| 2 × 2 in = 50.8 mm (US passport) | 144 × 144 | 300 × 300 | 600 × 600 | 1200 × 1200 |
| 3.5 × 4.5 in (wallet print) | 252 × 324 | 525 × 675 | 1050 × 1350 | 2100 × 2700 |
Worth noticing: 50 × 70 mm at 150 dpi and 25 × 35 mm at 300 dpi both land on 295 × 413. Identical pixel counts, completely different physical results. The pixel count alone never tells you how big something prints — you always need the resolution with it.
Ordinary print sizes at 300 dpi
| Print size | Pixels needed at 300 dpi |
|---|---|
| 4 × 6 in | 1200 × 1800 |
| 5 × 7 in | 1500 × 2100 |
| 8 × 10 in | 2400 × 3000 |
| 6 × 6 in square | 1800 × 1800 |
| A4 (210 × 297 mm) | 2480 × 3508 |
The reverse: what a pixel count actually prints as
This direction is the more useful one in practice, because forms usually tell you the pixels and you want to know whether your existing photo is far off.
| Pixel dimensions | Printed at 300 dpi | At 150 dpi |
|---|---|---|
| 600 × 600 | 50.8 mm square (2 in) | 101.6 mm (4 in) |
| 1200 × 1200 | 101.6 mm (4 in) | 203.2 mm (8 in) |
| 2000 × 2000 | 169.3 mm (6.67 in) | 338.7 mm (13.3 in) |
| 3000 × 3000 | 254 mm (10 in) | 508 mm (20 in) |
| 4032 × 3024 (a phone photo) | 341 × 256 mm | 683 × 512 mm |
That last row is why phone photos are almost never the limiting factor for a passport application. A standard 12-megapixel photo has far more pixels than any ID requirement asks for; the usual problem is the crop, not the resolution.
Rounding, and why the numbers do not round-trip
Millimetres and pixels do not divide neatly by 25.4, so every number in the tables above is rounded. That is worth knowing because the error is visible if you convert back, and a careful reviewer may check.
| Spec | Exact pixels at 300 dpi | Published figure | Converting back |
|---|---|---|---|
| 25 mm | 295.276 | 295 | 24.98 mm |
| 35 mm | 413.386 | 413 | 34.97 mm |
| 45 mm | 531.496 | 531 | 44.96 mm |
| 48 mm | 566.929 | 567 | 48.01 mm |
| 50 mm | 590.551 | 591 | 50.04 mm |
Every error here is under 0.05 mm — a twentieth of a millimetre, far below what a printer or a human with a ruler can resolve. The practical consequence: always use the published pixel figure if one is given, and only do your own conversion when it is not. Recomputing 413 as 414 because you rounded differently is the kind of difference that makes a form reject an otherwise perfect file.
When the form gives pixels and the spec gives millimetres
This mismatch is the single most common source of confusion, and it has a simple resolution: the pixel figure is the one that goes on the file.
Say a consulate publishes "35 × 45 mm, 300 dpi" and the upload form says "minimum 400 × 500 px". Both are describing the same photograph. The millimetre pair is what the printed result must measure; the pixel pair is what the digital file must contain. If the form states a pixel minimum, meet the pixel minimum — it has already done the conversion for you.
The awkward case is when the two disagree: a spec asking for 35 × 45 mm at 300 dpi (413 × 531) alongside a form demanding at least 600 × 600 square. Those cannot both be satisfied, because one is portrait and the other is square. When that happens, the form wins — it is the thing that will actually accept or reject the upload, and the printed measurement is usually checked from the submitted file rather than from your own print.
If the instructions name no resolution
Then you are choosing, and the choice is narrower than it looks:
- Something that will be printed — use 300 dpi. It is the commercial default and the figure almost every print shop assumes.
- Something that will only be viewed on screen — ignore dpi completely and match the pixel dimensions the platform displays at. A marketplace that shows a 1000 px image does not benefit from a 300 dpi tag on a 600 px file.
- Something that will be scanned or enlarged — 600 dpi, and expect the file size to be roughly four times larger for the same physical size, since pixel count scales with the square of the resolution.
That last point is the one people underestimate. Doubling dpi quadruples the pixels, not doubles them. A 35 × 45 mm photo at 300 dpi is about 220,000 pixels; at 600 dpi it is about 880,000. If a form has both a resolution requirement and a file size ceiling, those two constraints pull against each other, and the ceiling usually wins in practice.
One number worth ignoring on purpose: 72 dpi. It is a leftover convention from early screen displays, not a quality setting, and a photo tagged 72 dpi at 3000 × 3000 px contains exactly the same detail as one tagged 300 dpi at the same dimensions. If a piece of software reports your file as 72 dpi and you were expecting 300, nothing is wrong with the image — only with how a layout program would place it.
The two-second check
You do not need a calculator for most of this. Hold two numbers in your head:
- 1 inch = 300 pixels at 300 dpi. So a 2-inch photo needs 600 px, and a 4-inch print needs 1200 px.
- 1 mm ≈ 11.8 pixels at 300 dpi. So 35 mm is about 413 px, and 45 mm is about 531 px.
Everything else on this page follows from those two. The rest is rounding.
Related
- What 300 dpi actually means — the concept behind these numbers
- Make an ID or passport photo at an exact size
- Resize product photos to exact pixel dimensions
- Passport photo requirements: size, background, head height
- Printing a photo at an exact size — the other half of the problem
- Image and title limits across marketplaces
Every figure on this page is computed from the conversion 1 inch = 25.4 mm. Published ID photo specifications are set by each issuing authority and should be checked against that authority's current guidance, since requirements change.