To compress a passport photo to 20KB online, crop and resize it to the exact pixel size the form asks for first, then lower JPG quality until it fits. At 413 × 531 px (35 × 45 mm at 300 DPI), a well-lit photo on a plain background usually lands just under 20 KB and still looks clean. Do both steps in one go with the free Compress Passport Photo to 20KB tool. It runs in your browser, so your photo never gets uploaded anywhere.
My opinion, plainly: don’t hand an ID photo to a website that uploads it to a server when a browser tool can do the same job on your own device. And never try to hit 20 KB by dragging a quality slider on a full-size phone photo. That is how you get a blocky face and a rejected form.
Why a phone photo won’t fit under 20 KB
A phone selfie is usually 2–5 MB. The form wants 20 KB, which is 100 to 250 times smaller. People blame the quality setting, but the real problem is the number of pixels.
A 20 KB file is about 164,000 bits. Here is how far that stretches:
- 4032 × 3024 phone photo (about 12.2 million pixels): 163,840 ÷ 12,192,768 ≈ 0.013 bits per pixel. Nothing survives that. Your face turns to mush.
- 413 × 531 passport size (about 219,000 pixels): 163,840 ÷ 219,303 ≈ 0.75 bits per pixel. About 55 times more room for every pixel, which is plenty for a face on a plain wall.
Same 20 KB, very different photo. The form doesn’t want a big photo. It wants a small, sharp one at the right size. This is the same rule I use for product images in Compress a Product Photo to 100KB Without Blur: fewer, better pixels first, then compress.
The right order, step by step
- Crop to the right shape. 35 × 45 mm is a tall rectangle. 2 × 2 inch is a square. Cropping first means you don’t spend kilobytes on the background beside your shoulders.
- Resize to the exact pixels. 413 × 531 px for 35 × 45 mm at 300 DPI, 600 × 600 px for 2 × 2 inch, or whatever pixel size the form lists.
- Find the highest quality that still fits. The tool tries quality settings until it finds the best one under your limit. Doing this by hand takes five or six exports. The tool does it in a second.
- Save as JPG. Almost every passport, visa and exam form accepts JPG. Many reject PNG and WebP, and PNG is far too big for 20 KB anyway.
Worked example: a 35 × 45 mm photo for an online form
Say you take a photo against a white wall with your phone. The original is 4032 × 3024 and about 3.5 MB. The form asks for a 35 × 45 mm photo, JPG, under 20 KB.
- Compress straight to 20 KB at full size: the quality has to drop so low that your eyes and hairline break into blocks. Some forms also check pixel size, so a 4032 px photo can be rejected even if it does get under 20 KB.
- Crop to 35:45, resize to 413 × 531, then compress: the plain wall costs almost nothing, so most of the 20 KB goes to your face. Quality can stay fairly high, and the file usually comes out somewhere around 17–20 KB.
One trap: the tool crops from the centre. If you stood off to one side, your face gets cut. Frame your head in the middle of the shot before you start.
Worked example: where “compress harder” is the wrong fix
Take a form that says 200 × 230 px, between 10 KB and 20 KB. That is only 46,000 pixels. A clean photo at this size can come out under 10 KB, even at high quality, and the form rejects it for being too small.
The “obvious” answer is to keep fiddling with compression. That doesn’t help, because the problem is now the other way round. What I’d do instead:
- Set max 20 KB and min 10 KB in the tool. It flags the result if it lands below the minimum.
- If it is still under 10 KB, check whether the form also accepts a larger pixel size, and use it. More pixels means more kilobytes.
- Don’t add noise, filters or a busy background to bulk the file up. That makes the photo worse and can break the form’s photo rules.
What changes the file size at a fixed pixel size
| Change | From → to | Effect at 20 KB |
|---|---|---|
| Pixel size | 4032 px wide → 413 px wide | About 55× more room per pixel. The biggest win by far. |
| Background | Busy room → plain light wall | Flat areas take almost no space, so your face keeps more detail. |
| Lighting | Dim and grainy → even daylight | Grain is detail the file has to store. Good light means a smaller file. |
| Source photo | WhatsApp copy → original from the camera | Every re-save loses quality. Start from the best file you have. |
| Hidden photo data | Kept → removed | Re-saving strips location and camera data. Saves a little space and keeps your location private. |
Which size should I choose?
35 × 45 mm is the usual passport and visa shape in Pakistan, India, the UK, the EU and many other countries. 2 × 2 inch (600 × 600 px) is the US format. If the form lists exact pixels, use those. They beat any general rule. The tool handles file size and pixel size only. Background colour, face position and expression are set by the official rules, so check the form before you take the photo.
What I’d do
- Get the photo right before you compress it. Plain light wall, daylight from the front, head in the middle of the frame, phone at eye level. A good original is what makes 20 KB look sharp.
- Use the passport photo compressor with the form’s exact numbers. Pick the size, set max KB to the limit and set a minimum if the form gives a range. Download the JPG and check it at normal size, not zoomed in.
- Keep the original and the final file together. Name them clearly, for example passport-original.jpg and passport-20kb.jpg. Forms time out and get resubmitted, and you don’t want to compress a compressed copy next time.
If you also need images sized for a store, Resize Shopify Product Image to 2048px explains the same resize-first rule for product photos.
Work with me
I’m Faraz, a Shopify and AI automation consultant. If your store or team needs simple, repeatable image and upload standards, or small browser tools like this one built for your own workflow, I can set them up with you. Get in touch at farazhussain.com or WhatsApp +92 334 3454747.
Figures are illustrative. Actual file sizes vary by photo, lighting and settings, and photo rules vary by country and form, so always check the official requirements.