Zhugeliang ToolsENTR

mm to pixels for photos: how to convert 35×45 mm and 2×2 in

Last checked: 24 October 2026. The arithmetic is exact; the size your application asks for is set by the authority you apply to. Informational only, not legal or immigration advice.

A passport or visa photo is specified in millimetres or inches, but an online upload form works in pixels. To get from one to the other you need one extra number: how many pixels fit in one inch (called DPI or PPI).

The formula

One inch is exactly 25.4 mm. So:

pixels = millimetres ÷ 25.4 × DPI, or for inches, pixels = inches × DPI.

Round to the nearest whole pixel; a fraction of a pixel cannot exist in the file.

Worked example: 35 × 45 mm at 300 DPI

Quick table

Printed size150 DPI300 DPI600 DPI
35 × 45 mm207 × 266413 × 531827 × 1063
2 × 2 in (51 × 51 mm)300 × 300600 × 6001200 × 1200
4 × 6 in (10 × 15 cm)600 × 9001200 × 18002400 × 3600

The 2 × 2 in and 4 × 6 in rows are exact (inches × DPI). The 35 × 45 mm row is rounded from the formula above.

Does DPI matter for an online upload?

For an upload form, mostly no. A web form counts the pixel dimensions (for example “at least 600 × 600”) and the file size in KB. The DPI value stored inside a JPEG is only a label that tells a printer how large to print it. Two files with the same pixel dimensions look identical on screen whatever DPI they carry. DPI matters when you print: at 300 DPI, 413 × 531 px prints at about 35 × 45 mm.

If a form states a size in millimetres and also a pixel range, trust the pixel range for the upload and the millimetres for any printed copy.

Common mistakes

Steps

  1. Find the required size on the page of the authority you apply to.
  2. Convert it with the photo size converter (or the formula above).
  3. Crop and resize to those pixels with the photo resize tool.
  4. If the form has a KB limit, run the result through compress image to KB.

Open the photo size converter