Passport Photo Size in Pixels - Resize Online
Published 2026-10-22 · Updated 2026-11-29 · By Tech Seekers
Passport and visa forms ask for exact pixel sizes, and the print size is not the same as the online upload size. Here are the verified numbers for Pakistan and the US, and how to resize a photo to match them.
A passport form asks for a photo in pixels, and the number on the form is rarely the number you expect. Print size and upload size are two different things, and mixing them up is the most common reason a photo gets rejected. A print is measured in millimetres. An upload is measured in pixels. This guide gives you both numbers for the forms people in Pakistan use most, and shows you how to resize a photo to match the one your form actually asks for.
Start with the Pakistan passport print. The print size is 35 by 45 millimetres. At 300 DPI, which is the print resolution most labs use, that is 413 by 531 pixels. At 600 DPI it is 827 by 1063 pixels. The maths is simple division and multiplication: 35 millimetres is 1.38 inches, times 300 dots per inch gives 413 pixels, and 45 millimetres is 1.77 inches, times 300 gives 531 pixels. Double the DPI and both numbers double. The print size never changes, only the pixel count that describes it.
The DGIP e-Services online upload asks for something different, and this is where people trip. Independent reads of the portal agree it wants 350 by 467 pixels as a JPEG, with a maximum file size of 3 MB. That is not the print size, and a file sized for print will not match it. If the form you are filling in is the DGIP online upload, use 350 by 467. If you are printing the photo at a lab, use 413 by 531. Read the form in front of you and use the number it shows, because the two numbers belong to two different steps. Reads of two DGIP pages disagree on the file size cap: the e-Services page says 3 MB, while the portal photo page says 5 MB. Build the file to 3 MB and test it in the portal checker before you submit. The portal also asks for the head to measure 29 to 34 millimetres from chin to crown, a photo taken within the last 6 months, and a picture that has not been edited in software or cut down from a larger photo.
NADRA Pak-ID is a different route, and its numbers do not come from NADRA itself. NADRA publishes no pixel size for uploaded photos, and it captures the photo itself at the office or live in the Pak-ID app, except for children under 3, for whom a parent uploads a photo and NADRA publishes no size for that file either. Third-party tools quote 354 by 472 pixels for a CNIC photo with a 50 KB cap, not 300 KB. Other third-party tools quote 60 KB instead, so treat any third-party number as a quote, not a NADRA rule, and follow the size the Pak-ID app itself shows you.
The US visa photo works on a different scale again. The print size is 2 by 2 inches, which is 51 by 51 millimetres. The digital upload must be a square JPEG from 600 by 600 to 1200 by 1200 pixels, no larger than 240 KB, with the head taking 50 to 69 percent of the image height. Any square size in that range works, so 600 by 600 is the simplest choice. That range is for the DS-160 nonimmigrant upload. A Diversity Visa entry needs exactly 600 by 600 pixels. Do not use 1200 by 1200 for it. The head rule is the part people miss: measure the head from the top of the hair to the bottom of the chin, and check that it fills between half and just over two thirds of the frame. The eyes must sit 56 to 69 percent of the image height from the bottom. The photo must have been taken within the last 6 months, saved as a JPEG in 24-bit sRGB colour, with a compression ratio of 20:1 or less.
Resizing changes pixel size only, and that limit matters more for ID photos than for any other kind of image. It does not fix background colour, lighting, head size, or framing. A passport photo still needs a plain white background, a centred face looking at the camera, no shadows on the face or the wall, and no glasses for US photos. If the background is cream or the head is too small in the frame, resizing will not save it. Fix the photo first, then resize it.
To resize, crop the photo to the target shape first, then resize it to the exact pixels, with the aspect lock off. A normal phone photo is not shaped 35 to 45, so the lock has to be off for the tool to set both sides freely. Use 413 by 531 for a print, 350 by 467 for a DGIP online upload, or 600 by 600 for a US visa photo. Never force exact pixels with the lock off on a photo of the wrong shape: that stretches the face, and a stretched ID photo gets rejected. Crop first, so the head stays centred and the shoulders stay level, then resize.
DPI is the number that confuses people most, so here is the short version. For online forms, the pixel size is what matters, and DPI changes nothing about the upload. DPI only controls how large the image prints. At 300 DPI, 413 by 531 pixels print at exactly 35 by 45 millimetres. At 150 DPI, the same pixels would print twice as large. The portal does not read DPI, it reads pixels, so set the pixels right and let the lab worry about DPI when you print.
Before you submit, check the photo the way the portal will. Open the downloaded file, confirm the pixel size matches the form, and look at the face. The head should fill the frame the way the rules ask, the background should be plain white, and the lighting should be even on both sides of the face. If anything looks off, fix the photo and resize again. Everything runs in your browser, so the photo is never uploaded to a server, which matters for an ID photo more than for any other file you resize.
Confirm the current requirements with the issuing authority before you submit, because the numbers change. For a Pakistan passport, check the DGIP online portal. For a US visa, check the US State Department photo pages. The numbers on this page were last verified on 30 November 2026: the US State Department photo page, its digital image requirements page and its photo composition template were read directly, and the DGIP figures were cross-checked against several independent reads of the DGIP pages, which agree on 350 by 467 pixels. Where two DGIP pages disagree, this guide follows the smallest limit and says so in the text above.
Sources
How it works
- 1Upload your photo. Drop a JPG, PNG or WebP photo into the box. Files up to 50 MB are supported.
- 2Enter the exact pixels. 413 x 531 for a print, 350 x 467 for a DGIP online upload, or 600 x 600 for a US visa photo. Crop to the target shape first, then resize with the aspect lock off. Do not force exact pixels on a photo of the wrong shape.
- 3Download the result. Your photo downloads at exactly the pixel size you entered.
- 4Check it against the photo rules. Open the file, confirm the pixel size matches the form, and check the head size, background, and lighting before you submit.
Frequently asked questions
What size is a Pakistan passport photo in pixels?
For a print: 35x45 mm, which is 413x531 pixels at 300 DPI (827x1063 at 600 DPI). For the DGIP e-Services online upload, cross-checked reads of the portal agree on 350x467 pixels, JPEG, maximum 3 MB. These are different numbers, so use the one your form asks for. Note the conflict: the portal photo page says 5 MB, so build to the 3 MB limit and test the file in the checker. The head must measure 29 to 34 mm from chin to crown.
What about NADRA Pak-ID uploads?
NADRA publishes no pixel size for Pak-ID uploads, and it captures the photo itself except for children under 3. Third-party tools quote 354x472 pixels with a 50 KB cap, but others quote 60 KB, so treat any third-party number as a quote, not a NADRA rule. Follow the size the Pak-ID app itself shows you.
What size is a US visa photo in pixels?
Print: 2x2 inches (51x51 mm). Digital upload: a square JPEG from 600x600 to 1200x1200 pixels, no larger than 240 KB, with the head taking 50 to 69 percent of the image height. Glasses are not allowed in US visa photos. The eyes must sit 56 to 69 percent of the image height from the bottom, the photo must be less than 6 months old, and the file must be a 24-bit sRGB JPEG at a compression ratio of 20:1 or less.
Does resizing fix the background or framing?
No. It only changes the pixel size. Background color, lighting and head position still need to meet the official photo rules.
Does DPI matter for uploads?
For online forms, the pixel size is what matters. DPI only controls how large the image prints: at 300 DPI, 413x531 pixels print at exactly 35x45 mm.
Is my ID photo uploaded anywhere?
No. The resize runs in your browser, which matters for an ID photo: the picture never leaves your device.