Document Photo Pixel Dimensions

Convert your required physical photo dimensions into whole pixels at an entered DPI.

Width in whole pixels, rounded up
414
Height in whole pixels, rounded up
532
Physical width-to-height ratio
0.7777777778

Calculation and assumptions

W_px = ⌈W_mm DPI/25.4⌉; H_px = ⌈H_mm DPI/25.4⌉; r = W_mm/H_mm.

Example dimensions are not verified requirements for any visa or document. Obtain width, height and pixel rules from the issuing authority. Rounding up may slightly alter the pixel aspect ratio. This tool does not crop or inspect an image, improve its detail, check head size, file format or background, or guarantee acceptance.

Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.

Frequently asked questions

How is the result calculated?

W_px = ⌈W_mm DPI/25.4⌉; H_px = ⌈H_mm DPI/25.4⌉; r = W_mm/H_mm.

What assumptions apply?

Example dimensions are not verified requirements for any visa or document. Obtain width, height and pixel rules from the issuing authority. Rounding up may slightly alter the pixel aspect ratio. This tool does not crop or inspect an image, improve its detail, check head size, file format or background, or guarantee acceptance.

How precise are the results?

Results show up to ten significant digits. Display precision does not improve the accuracy of the measurements or model. Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.

How we verified this calculator

The calculator is checked against 3 reference cases computed independently from the sources below. Last passed: .

# Inputs Expected result
1
Required physical width (mm) = 35
Required physical height (mm) = 45
Chosen pixel density (DPI) = 300
Width in whole pixels, rounded up: 414
Height in whole pixels, rounded up: 532
Physical width-to-height ratio: 0.7777777778
2
Required physical width (mm) = 50.8
Required physical height (mm) = 50.8
Chosen pixel density (DPI) = 300
Width in whole pixels, rounded up: 600
Height in whole pixels, rounded up: 600
Physical width-to-height ratio: 1
3
Required physical width (mm) = 35
Required physical height (mm) = 45
Chosen pixel density (DPI) = 600
Width in whole pixels, rounded up: 827
Height in whole pixels, rounded up: 1063
Physical width-to-height ratio: 0.7777777778

Sources

How we test our calculators →

Also try:

Back to category →