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 size72 dpi150 dpi300 dpi600 dpi
25 × 35 mm (China 1 inch)71 × 99148 × 207295 × 413591 × 827
33 × 48 mm (China passport)94 × 136195 × 283390 × 567780 × 1134
35 × 45 mm (UK, Schengen, Japan)99 × 128207 × 266413 × 531827 × 1063
50 × 70 mm (Canada passport)142 × 198295 × 413591 × 8271181 × 1654
2 × 2 in = 50.8 mm (US passport)144 × 144300 × 300600 × 6001200 × 1200
3.5 × 4.5 in (wallet print)252 × 324525 × 6751050 × 13502100 × 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 sizePixels needed at 300 dpi
4 × 6 in1200 × 1800
5 × 7 in1500 × 2100
8 × 10 in2400 × 3000
6 × 6 in square1800 × 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 dimensionsPrinted at 300 dpiAt 150 dpi
600 × 60050.8 mm square (2 in)101.6 mm (4 in)
1200 × 1200101.6 mm (4 in)203.2 mm (8 in)
2000 × 2000169.3 mm (6.67 in)338.7 mm (13.3 in)
3000 × 3000254 mm (10 in)508 mm (20 in)
4032 × 3024 (a phone photo)341 × 256 mm683 × 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.

SpecExact pixels at 300 dpiPublished figureConverting back
25 mm295.27629524.98 mm
35 mm413.38641334.97 mm
45 mm531.49653144.96 mm
48 mm566.92956748.01 mm
50 mm590.55159150.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:

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. 1 inch = 300 pixels at 300 dpi. So a 2-inch photo needs 600 px, and a 4-inch print needs 1200 px.
  2. 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

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.