SlimIO › Guides

Pakistan online passport photo: 35×45 mm, white background, under 20KB, and how to keep it sharp

By SlimIO · Updated · 7 min read

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 rules below come from DGI&P's pages and guides at onlinemrp.dgip.gov.pk (checked November 2026). Apply only there: the portal warns it has no collaboration with any other website. You pay online by card, and DGI&P has a no-refund policy for any application once it is started or submitted, so prepare your files first.

The photo rules at a glance

RuleWhat the portal asks for
File sizeNot more than 20KB
File type.jpg, .jpeg or .png
Photo size35 mm wide × 45 mm high
PixelsNot stated (see below)
Head sizeAt least 29 mm, no more than 34 mm of the 45 mm height
BackgroundPlain white, in clear contrast to you, no shadows
FramingClose-up of your full head and shoulders, nobody and nothing else in it
Age of photoNot more than 6 months old
FaceFacing forward, looking at the camera, neutral expression, mouth closed, eyes open, nothing covering the face, no red eye
GlassesThe photo page rejects glare from glasses and frames over the eyes; the PDF photo guide says no glasses. Take them off.
File nameOnly 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:

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.

Zoomed crops of three photo files under 20KB: a 413×531 JPG of 19.2 KB from a clean photo looks sharp, a 200×257 JPG of 10.4 KB looks soft when enlarged, and a 413×531 JPG of 19.3 KB made from a grainy copy looks blotchy
Three files under 20KB, zoomed to the same area. Left: clean photo, 413 × 531. Middle: the same photo at 200 × 257, enlarged. Right: the same photo with added grain, 413 × 531. Sample photo of a fictional person.

So, to get the clearest 20KB file:

Make the photo with SlimIO

  1. 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.
  2. Add your photo. JPG, PNG and iPhone HEIC files all work.
  3. 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.
  4. Check the line under the result: it should read 413×531 · 300dpi with a size under 20KB. Then press Download.
  5. 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

UploadLimitWhat to do
Supporting documents1MB each, JPEG/JPG/PNGColour 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 form3MB, ideally 2–2.5MBPrint 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

Try it free

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.

Make your 20KB passport photo →
Make your 20KB passport photo →

Questions

What is the Pakistan passport photo size for the online application?

35 mm wide by 45 mm high, on a plain white background, as a JPG, JPEG or PNG file of no more than 20KB. The head must measure at least 29 mm and no more than 34 mm of the 45 mm height, and the photo must show your full head and shoulders and be no more than 6 months old.

What is the Pakistan passport photo size in pixels?

The passport portal's pages give no pixel size, only 35 × 45 mm and 20KB. 413 × 531 pixels is 35 × 45 mm at 300 dpi and keeps the right shape. Going much larger forces heavier compression to stay under 20KB; going much smaller leaves less detail.

What background colour is needed for a Pakistani passport photo?

Plain white. The photo page asks for a plain white background, a clear contrast between you and the background, and no shadows anywhere in the picture.

Why does my photo become blurry when I compress it to 20KB?

20KB is about 3% of the raw data in a 413 × 531 photo, so the compression has to throw away fine detail. Grain from dim light and busy backgrounds use up the same budget, and tools that shrink the pixels instead make the photo soft. Take the photo in good light against a white wall, keep 413 × 531 pixels and save it as JPG.

Is the Pakistan passport photo limit 20KB or 5MB?

Build it to 20KB. The current portal pages (home page, photo page and document upload page) all say 20KB. Two PDF guides linked from the site say 5MB. A 20KB file meets both numbers.

What size should the fingerprint form and documents be?

The fingerprint form may be up to 3MB, scanned at 600 dpi in greyscale as JPEG (2–2.5MB is called ideal). Each supporting document may be up to 1MB. All uploads must be JPEG, JPG or PNG.