Convert photo size to pixels
Turn 35 × 45 mm at 300 DPI into pixels, or a pixel size into the size it prints at, in millimetres, centimetres and inches.
Pixel size at 300 DPI
413 × 531 px
- 3.5 × 4.5 cm
- 1.38 × 1.77 in
35 mm ÷ 25.4 × 300 DPI = 413.4 px
1 inch is 25.4 mm. Pixels are rounded to the nearest whole pixel.
Sizes in mm, forms in pixels
Photo rules give a printed size; upload forms and apps work in pixels.
This free photo size converter turns millimetres, centimetres or inches into pixels at any DPI, and pixels back into a printed size. Type 35 × 45 mm at 300 DPI and it shows 413 × 531 pixels, with the formula it used, as you type and without uploading anything.
Passport and visa rules give a photo's printed size, such as 35 × 45 mm or 2 × 2 inches, while online application forms and photo apps ask for pixels. The Photovisa editor already makes your photo at your document's exact size, so the converter shows what that size is in pixels, and whether a photo you already have has enough of them.
It's useful when a form asks for a minimum size in pixels but the rules give millimetres, to check a photo has enough pixels before you print it at passport size, to set up a canvas in another photo app, and to see how large a photo will print at your printer's DPI.
How to convert a photo size
Four steps from the size a form gives you to the one your photo needs.
Choose your unit
Pick mm, cm or inch to enter a printed size, or px to enter a size in pixels.
Enter the width and height
Type the size you have, such as 35 × 45 mm for a passport photo.
Set the resolution
300 DPI is the usual resolution for a printed photo. Use the one your form or printer gives.
Read and copy the size
See the size in pixels, or printed in every unit, with the formula used, then copy it.
The arithmetic, shown
An inch is 25.4 mm, and DPI is how many pixels fit into each inch.
Size to pixels
Pixels are millimetres ÷ 25.4 × DPI. 35 mm at 300 DPI is 413.4, so 413 px.
Pixels to printed size
Millimetres are pixels ÷ DPI × 25.4. 600 px at 300 DPI prints 2 inches, or 50.8 mm.
Whole pixels
An image can't hold part of a pixel, so a pixel size is rounded to the nearest whole one.
Works as you type
It's a calculator in your browser: no photo is needed, and nothing is uploaded.
Questions about photo sizes.
Pixels, DPI and printed sizes, and how they fit together.
At 300 DPI, 413 × 531 pixels. At 600 DPI, 827 × 1063 pixels.