To calculate pixels for a passport or ID photo, first get the required physical dimensions from the current official authority, convert those dimensions to inches, then multiply by the target PPI. The math is straightforward. The harder part is making sure you are using the correct rule for the exact country, document and submission method.
There is no universal passport-photo DPI or universal passport-photo size.
The calculation formula
For inches:
pixels = inches × PPI
For millimeters:
inches = millimeters ÷ 25.4
Then:
pixels = (millimeters ÷ 25.4) × PPI
Round according to the delivery workflow.
35 × 45 mm example
A 35 × 45 mm photo is common in a number of identification systems, but it is not universal.
Convert to inches:
35 mm ÷ 25.4 ≈ 1.37795 inches
45 mm ÷ 25.4 ≈ 1.77165 inches
At 300 PPI:
width ≈ 413.39 pixels
height ≈ 531.50 pixels
If the workflow requires integer pixel dimensions and you do not want to fall below the calculated sampling target, rounding upward gives approximately:
414 × 532 pixels.
At 600 PPI:
width ≈ 826.77 pixels
height ≈ 1062.99 pixels
A practical rounded-up raster is approximately:
827 × 1063 pixels.
Those are mathematical examples, not proof that a particular government wants those digital dimensions.
2 × 2 inch example
For a 2 × 2 inch physical photo:
At 300 PPI:
600 × 600 pixels.
At 600 PPI:
1200 × 1200 pixels.
The United States currently specifies 2 × 2 inches for printed passport photographs. Its online passport-renewal process has separate digital-photo requirements. This distinction is why you should not convert a printed-photo rule into an online-upload rule without checking the official instructions for that submission path.
UK example
Current UK government guidance for printed passport photos specifies 45 mm high by 35 mm wide.
That makes 35 × 45 mm a relevant real-world example.
But digital application requirements and composition rules must still be read from the current GOV.UK instructions. Pixel density alone cannot determine compliance.
Canada example
Current Canadian passport guidance uses a different printed photo size: 50 mm wide by 70 mm high.
At 300 PPI, the mathematical raster equivalent is:
50 mm:
50 ÷ 25.4 × 300 ≈ 590.55
70 mm:
70 ÷ 25.4 × 300 ≈ 826.77
Rounded upward:
approximately 591 × 827 pixels.
Again, this is a resolution calculation from the physical size. It is not an official digital-upload specification unless the authority explicitly says so.
Why DPI is only one part of compliance
Passport authorities can regulate:
- photo dimensions
- head size
- eye position
- expression
- background
- lighting
- shadows
- image age or recency
- editing
- clothing or head coverings
- glasses
- printing quality
- digital file dimensions
- file size
- file format
A DPI converter cannot verify all of those conditions.
That is why this website’s tool must be described as a size and density preparation utility, not a biometric approval checker.
Crop ratio comes before final pixels
A 35 × 45 mm image has a 7:9 ratio.
A 2 × 2 inch image has a 1:1 ratio.
If the source photograph has a different ratio, it must be cropped or padded before it exactly fits the required dimensions.
Do not stretch a face horizontally or vertically to force the target size.
The crop also needs to respect the authority’s head-position and framing rules.
Metadata-only versus resampling for ID photos
If a photo is already the correct pixel dimensions but contains no physical-density metadata, writing a density value may be enough for a workflow that needs a tagged print size.
If it has too few pixels for the required physical size and target PPI, maintaining the print size requires resampling.
Example:
Target: 2 × 2 inches at 300 PPI.
Required: 600 × 600.
Source after crop: 450 × 450.
A metadata-only change to 300 PPI leaves only 450 × 450. It would correspond to 1.5 × 1.5 inches at 300 PPI.
To make a 600 × 600 raster, the image must be resampled.
That enlargement still does not prove the face is sharp enough or the photo is acceptable.
Printed versus digital passport photos
This distinction deserves its own check.
A government can specify one physical size for printed photographs and a different set of pixel/file rules for online submission.
Do not assume:
- 35 × 45 mm automatically means a specific digital pixel size
- 2 × 2 inches automatically means 600 × 600 for every online application
- 300 PPI is a universal government requirement
Use official instructions for the actual application method.
A safe workflow
- Open the current official photo requirements.
- Identify whether you need printed or digital submission.
- Record the required physical size or pixel dimensions.
- Crop to the correct aspect ratio without distorting the face.
- If preparing a print, choose the required or appropriate PPI.
- Calculate required pixels.
- Resample only if necessary.
- Verify dimensions and metadata.
- Check all non-resolution requirements separately.
- Keep a copy of the uncropped source.
Related entities and semantic terms
passport photo, ID photo, 35 × 45 mm, 2 × 2 inch, 50 × 70 mm, PPI, pixels, crop ratio, biometric photo, digital upload, print size.
FAQs
Why can a valid printed passport-photo size produce several different pixel dimensions?
Physical size and pixel density are separate variables. The same 35 × 45 mm print could be represented by different pixel dimensions at 300, 400 or 600 PPI.
Should I use the printed photo dimensions when an application asks for a digital upload?
Only if the official digital instructions tell you to. Online submissions can have their own pixel, aspect-ratio, format and file-size requirements.
Why is rounding direction relevant when converting millimeters to pixels?
Millimeter-to-inch conversion often produces fractional pixels. If a workflow defines a minimum sampling density, rounding upward avoids falling just below the mathematical target, but an explicit official pixel specification takes precedence.
Can this converter determine whether my head size meets a passport authority’s biometric rule?
No. Its purpose is raster size and density preparation. Composition and biometric compliance require separate checks against the authority’s current rules.
Closing section
Use passport-photo math only after identifying the correct official requirement. Convert physical dimensions to pixels accurately, preserve aspect ratio and distinguish print rules from digital-upload rules. Resolution preparation can support an application, but it is not approval.
Source and verification notes
Current examples were checked against the U.S. Department of State, GOV.UK and Government of Canada passport-photo guidance. These examples are intentionally presented as country-specific and submission-specific, not universal rules.