Pakistan online passport photo: 35×45 mm, white background, under 20KB, and how to keep it sharp
Many Pakistanis renewing a passport from abroad on the DGI&P e-Services Portal get stuck at the photo. It must be no more than 20KB, a phone photo is often 2–5MB, and squeezing it down tends to blur the face. Below are the official rules, the reason some official files say 5MB, and a way to get a sharp 20KB photo. The fingerprint form and documents come at the end.
Make your 20KB passport photo →Crops to 35×45 mm, saves 413×531 px at 300 dpi as a JPG under 20,000 bytes. Runs in your browser; the photo is not uploaded.
The photo rules at a glance
| Rule | What the portal asks for |
|---|---|
| File size | Not more than 20KB |
| File type | .jpg, .jpeg or .png |
| Photo size | 35 mm wide × 45 mm high |
| Pixels | Not stated (see below) |
| Head size | At least 29 mm, no more than 34 mm of the 45 mm height |
| Background | Plain white, in clear contrast to you, no shadows |
| Framing | Close-up of your full head and shoulders, nobody and nothing else in it |
| Age of photo | Not more than 6 months old |
| Face | Facing forward, looking at the camera, neutral expression, mouth closed, eyes open, nothing covering the face, no red eye |
| Glasses | The photo page rejects glare from glasses and frames over the eyes; the PDF photo guide says no glasses. Take them off. |
| File name | Only letters, numbers, dashes and underscores: no spaces, periods or other symbols |
20KB or 5MB: which number counts?
Both numbers appear in official DGI&P material:
- 20KB: the home page ("Photograph up to 20KB"), the photo page ("should not exceed 20KB"), and the document upload page ("Photograph: 20KB"). The photo page's checker says "JPG / PNG max 20KB".
- 5MB: two PDF guides still linked from the site, the Photo Capture Guide ("maximum up to 5MB") and the document upload guide ("PHOTOGRAPH: 5MB"). That photo guide also wants "professionally printed" photos with "no ink marks or creases", wording meant for paper prints.
Make your file for 20KB: every current web page says so, and a 20KB file meets a 5MB limit too, not the other way round. The portal doesn't say whether 20KB means 20,000 or 20,480 bytes, so stay under 20,000 bytes and you pass under either reading. Windows and many apps count 1KB as 1,024 bytes, so a 20,000-byte file is listed as about 19.5KB.
The photo page's checker has two error messages worth knowing: "Only Files of type JPG/PNG are allowed." means the file is something else (often an iPhone HEIC or a WebP), and "Size of the file must not be greater than 20KB." means it is too big.
Which pixel size?
No official page or guide gives a pixel size, only 35 × 45 mm and 20KB. SlimIO's Pakistan preset uses 413 × 531 pixels, which is 35 × 45 mm at 300 dpi, a standard print resolution, and it keeps the exact 35:45 shape. A larger image would need harder compression to fit 20KB; a smaller one starts with less detail.
At 531 pixels high, the 29–34 mm head rule works out to a head 342–401 pixels tall. The PDF photo guide asks for the face to fill 70–80% of the photo, so a head of about 32–33 mm (around 380 pixels) satisfies both.
"Cut down from larger pictures": what that rule means
The photo page says you can't use photos cut down from larger pictures, and that photos must not be edited in software such as Photoshop. The same page demands a file of 20KB at most, so resizing and compressing are expected. What the rule targets is cutting your face out of another picture (a group shot, a wedding photo, an old portrait) and retouching. The page also says photos must be professionally taken. Start from a fresh photo shot as a passport photo, head and shoulders against a plain white wall, then crop lightly, resize and compress. No skin smoothing, background swaps or filters.
Why 20KB looks blurry, and how to keep it sharp
A 413 × 531 photo holds about 219,000 pixels. Stored raw, that is roughly 658KB, so 20KB keeps only about 3% of the data. JPEG does this by smoothing away fine detail, and everything in the picture competes for the same 20KB.
We tested SlimIO's sample photo (a fictional person against a plain wall) and a copy with added grain, like a phone shot in a dim room. At the tool's top quality the clean photo was 20.8KB, nearly under the limit; the grainy copy was 62.9KB and had to shrink to a third to fit. Saved at 200 × 257 pixels instead, the clean photo was 10.4KB but looked soft at the same display size. As a PNG, the 413 × 531 crop was 211.9KB, over ten times the limit: PNG is lossless, so it can't get near 20KB at this size.
So, to get the clearest 20KB file:
- Use good light. Stand facing a window in daylight. Dim light adds grain, and grain eats the 20KB budget.
- Use a plain white wall. A flat background costs almost nothing, which leaves more of the 20KB for your face.
- Start from the camera's original file. Screenshots and copies forwarded through messaging apps are often already shrunk.
- Don't enlarge a small photo. Scaling it up adds pixels, not detail.
- Save as JPG, not PNG, and keep 413 × 531 rather than shrinking the pixels.
- Compress once. A second pass through another compressor adds blur.
Make the photo with SlimIO
- Open the ID photo tool with the Pakistan passport preset. Pakistan passport (online) 35×45 mm, 413×531 px, Under 20KB and JPG are already selected.
- Add your photo. JPG, PNG and iPhone HEIC files all work.
- Drag the green frame and use Zoom until your head, from the top of the head to the chin, fills the dashed oval. The oval is 70% of the height, about 31.5 mm.
- Check the line under the result: it should read 413×531 · 300dpi with a size under 20KB. Then press Download.
- Rename it, for example to passport_photo.jpg. The download keeps your original file name plus "_slimio", and phone file names often contain spaces or extra periods, which the portal says to avoid.
Our sample came out at 413 × 531 pixels and 19,668 bytes (shown as 19.2 KB). All of this happens on your phone or computer: the photo isn't sent anywhere, and its EXIF location tags are stripped. The tool crops, scales and compresses, nothing more, so there is no background whitening or face retouching. Acceptance is DGI&P's decision and no tool can promise it, but you can try the file in the Photograph Verification box on the official photo page before you start. For how millimetres, pixels and KB relate, see KB, pixels, cm and DPI explained.
Fingerprint form and supporting documents
| Upload | Limit | What to do |
|---|---|---|
| Supporting documents | 1MB each, JPEG/JPG/PNG | Colour scans or phone photos of your CNIC or NICOP (both sides), current passport (first two pages plus one random page the system asks for) and visa, iqama or residence permit. Over 1MB? Use Compress Image with Under 1MB; convert iPhone HEIC files with HEIC to JPG. PDF is not accepted. |
| Fingerprint form | 3MB, ideally 2–2.5MB | Print the form, take the four impressions with a black stamp pad, and scan it at 600 dpi, greyscale, JPEG. |
Don't run the fingerprint form through SlimIO or any other compressor. The FAQ says the 600 dpi must come from the scanner setting, not from software, and re-saving can change the resolution and colour mode. If the scan is over 3MB, scan again at 600 dpi with a lower JPEG quality setting in the scanner software. The home page adds that you can now verify fingerprints in NADRA's PakID app at the fingerprint upload stage instead of using the paper form.
Keep documents readable: the portal warns that low-quality scans can slow processing. If an upload still fails, the FAQ suggests a current browser and a screen of at least 1280 × 720; the help address is [email protected] (include your tracking ID, passport number and phone number).
Sources
- DGI&P e-Services Portal, Photograph Requirements: 20KB, 35 × 45 mm, head 29–34 mm, white background, the "cut down from larger pictures" note and the photo checker (checked November 2026) — onlinemrp.dgip.gov.pk
- DGI&P e-Services Portal, Document Upload Guidelines: JPEG/JPG/PNG; supporting document 1MB, fingerprint form 3MB, photograph 20KB; file naming rules (checked November 2026) — onlinemrp.dgip.gov.pk
- DGI&P e-Services Portal, home page: what to have ready, scanner at 600 DPI greyscale, PakID fingerprint verification, no-refund policy (checked November 2026) — onlinemrp.dgip.gov.pk
- DGI&P e-Services Portal, Fingerprint Requirements: 600 dpi, JPEG, greyscale, up to 3MB, ideal 2–2.5MB (checked November 2026) — onlinemrp.dgip.gov.pk
- DGI&P e-Services Portal, F.A.Q: fingerprint form scanned at 600 dpi and not converted in software, browsers, 1280 × 720 screen, help e-mail (checked November 2026) — onlinemrp.dgip.gov.pk
- DGI&P e-Services Portal, supporting documents list (checked November 2026) — onlinemrp.dgip.gov.pk
- DGI&P, Photo Capture Guide (PDF): "maximum up to 5MB", face 70–80% of the photo, no glasses (checked November 2026) — onlinemrp.dgip.gov.pk
- DGI&P, Attaching Documents guide (PDF): "PHOTOGRAPH: 5MB" (checked November 2026) — onlinemrp.dgip.gov.pk
Crops to 35×45 mm, saves 413×531 px at 300 dpi as a JPG under 20,000 bytes. Runs in your browser; the photo is not uploaded.