Photo size calculator: mm, pixels and dpi
An online form often asks for pixels, while an office or print shop asks for millimetres. This calculator converts one into the other at the dpi you choose, and below you will find ready values for the most common documents. It runs in your browser and sends nothing anywhere.
Crop your photo to the format No account. Your photo stays in your browser.
Convert a size
Enter the dimensions and dpi - the result appears at once. For print, 300 dpi is the usual choice.
Did it help? Buy us a coffee
LegiPhoto is free and needs no account. A voluntary coffee helps us keep improving it.
Buy us a coffeeHow is it calculated?
An inch is 25.4 mm. Pixels = millimetres ÷ 25.4 × dpi, and millimetres = pixels ÷ dpi × 25.4.
Example: 35 mm at 300 dpi is 35 ÷ 25.4 × 300 ≈ 413 px, and 45 mm is ≈ 531 px.
dpi describes print density. When uploading a file the pixels usually matter, and the requirements on gov.pl are stated in pixels; still, check the recipient’s requirements.

Ready values for documents
Sizes and pixels of each LegiPhoto format. “min.” means a minimum resolution, “typically” a usual value that depends on the recipient, and “~” next to dpi a value derived from pixels and size. Details are on each document’s page.
| Format | Size | Pixels | dpi |
|---|---|---|---|
| Student ID card (ELS) | 20 × 25 mm | typically 400 × 500 px | ~508 dpi |
| ELS - higher resolution | 20 × 25 mm | typically 500 × 625 px | ~635 dpi |
| ELS - ID-card size | 35 × 45 mm | typically 413 × 531 px | 300 dpi |
| School ID card / e-ID | 35 × 45 mm | min. 492 × 633 px | ~357 dpi |
| Engineer’s diploma | 45 × 65 mm | 531 × 768 px | 300 dpi |
| Master’s diploma | 45 × 65 mm | 531 × 768 px | 300 dpi |
| Diploma - HD print | 45 × 65 mm | 1063 × 1535 px | 600 dpi |
| ID card | 35 × 45 mm | min. 492 × 633 px | ~357 dpi |
| Passport | 35 × 45 mm | 413 × 531 px | 300 dpi |
| Passport - digital file | 35 × 45 mm | min. 492 × 633 px | ~357 dpi |
| Passport online (child under 12) | 35 × 45 mm | min. 768 × 1004 px | ~562 dpi |
| Military ID / WCR | 35 × 45 mm | min. 492 × 633 px | ~357 dpi |
| Military ID - duplicate | 30 × 40 mm | 354 × 472 px | 300 dpi |
| Driving licence | 35 × 45 mm | 480 × 615 px | ~348 dpi |
| Schengen visa | 35 × 45 mm | 413 × 531 px | 300 dpi |
| Biometric HD (print) | 35 × 45 mm | 827 × 1063 px | 600 dpi |
| US passport / visa | 51 × 51 mm | typically 600 × 600 px | 300 dpi |
| CV / profile | 40 × 40 mm | typically 800 × 800 px | ~508 dpi |
Frequently asked questions
Short answers about converting photo sizes.
How many pixels is a 35 × 45 mm photo?
At 300 dpi it is 413 × 531 px, which is a print size. Files for online applications have their own requirements: a Polish ID card online - at least 492 × 633 px (up to 2.5 MB), a passport for a child under 12 online - at least 768 × 1004 px (up to 2.5 MB).
What pixel size is a driving licence photo?
The gov.pl page gives 480 × 615 px for the file, JPEG with an EXIF header (including the capture date), sRGB, file up to 100 KB.
Does dpi matter in a digital file?
When uploading a file online the pixels usually matter, not the dpi, but check the recipient’s requirements. dpi matters in print, because it decides how large the photo will be on paper.
How do I print a photo at its true size?
Use the print sheet in LegiPhoto and print at 100% size, without the “Fit to page” option.
Sources and note
LegiPhoto is an independent tool and is not an official government service. Requirements of offices and universities can change — before you apply or upload the file, confirm dimensions, format and file-size limits with the recipient.
Photos for other documents
Published: · Last updated: