Free pixels ↔ cm / mm / inches converter

The forgotten step in every passport-photo workflow: your camera gives you pixels, but the embassy spec is in millimetres. Type a value in any unit (px, cm, mm, in), pick your target DPI, and the rest fills in automatically. Useful for double-checking that a 1200×1600 file at 300 DPI really does come out to 101.6×135.5 mm on paper. The conversion formula is shown on the page so you can spot-check by hand.

Loading interactive tool…

How it works

  1. 1Type a value in any unit (px, cm, mm, in).
  2. 2Pick your DPI (300 is the safe default).
  3. 3Read the converted value in the other units.

Frequently asked

What's the formula for pixels to cm?

cm = (pixels ÷ DPI) × 2.54. Example: 1200 pixels at 300 DPI = (1200 ÷ 300) × 2.54 = 10.16 cm.

And mm to pixels?

pixels = (mm ÷ 25.4) × DPI. Example: 35 mm at 300 DPI = (35 ÷ 25.4) × 300 ≈ 413 pixels.

Why does the result have decimals?

Pixels are integers but the conversion factor (25.4 mm per inch) isn't. We round the pixel output to the nearest integer (since you can't have a fractional pixel) and show physical dimensions to 0.1 mm.

Need a fully compliant photo, not just a check?

Anfas.Pro turns any selfie into a passport-grade photo in 30 seconds. One-time €4.99, full refund if it isn't accepted.

Generate a compliant photo →

← All free tools