How to Compress a Photo to 20 KB for Official Forms (Free, No Upload)
Exam, visa and job portals keep asking for a photo 'under 20 KB'. Here's how to compress a photo to 20 KB and still pass the check — free, private, in your browser.
You’re filling in an exam registration, a visa application or a government job portal and you reach the upload box: “Photograph: JPG format, maximum 20 KB.” Your phone photo is 3 MB. That’s 150 times too big — and if you just crank a random compressor to maximum, you get a pixelated face that the portal (or the human checking it) rejects anyway.
The good news: 20 KB is plenty for an ID-style photo if you do it in the right order. Here’s the method that works first time.
The short version
- Crop the photo to head and shoulders (if it isn’t already).
- Resize it to the pixel dimensions the form asks for — or around 300×400 px if it doesn’t say.
- Compress it to 20 KB with a target-size tool, not a quality slider.
- Check the result: format JPG, under 20 KB, face clearly visible.
Every step runs in your browser with PDFAgent — your photo is never uploaded to any server, which matters when the image is going onto an ID application.
Step 1 — Why dimensions come before compression
File size depends mostly on how many pixels the image has. A modern phone photo is around 4000×3000 pixels — 12 million pixels. To fit that into 20 KB, a compressor has to throw away almost all the detail, which is where the blocky, smeared look comes from.
A form photo only needs a few hundred pixels on each side. A 300×400 image has 120,000 pixels — 100 times fewer. Compressing that to 20 KB barely touches the quality, because there’s so much less information to store.
So before anything else, open Resize image:
- If the form states dimensions (e.g. “200×230 pixels” or “3.5 cm × 4.5 cm at 200 DPI”), enter those exact numbers.
- If it only gives a KB limit, use something like 300 px wide and leave the height empty so it’s calculated from the proportions.
- Choose Fit (keep proportions) unless the form demands an exact size. If your photo isn’t the right shape, crop it first on your phone rather than using “Exact”, which stretches faces.
Quick conversion for forms that give centimetres: pixels = cm ÷ 2.54 × DPI. At 200 DPI, 3.5 × 4.5 cm is about 276 × 354 pixels.
Step 2 — Compress to exactly 20 KB
Now open Compress image:
- Add your resized photo (JPG, PNG or WebP).
- Type 20 in the target size (KB) field.
- Click Compress image.
- Download the result.
Unlike a normal “quality: low/medium/high” compressor, this tool works backwards from your limit. It re-encodes the photo as JPEG and steps the quality down until the file fits under 20 KB, keeping the highest quality that still fits. Only if quality alone isn’t enough does it reduce the dimensions — which is exactly why doing Step 1 yourself gives you better control: you decide the dimensions, the tool just finds the best quality for them.
Need to do several photos at once — say, a photo and a signature for the same application? Select them together; they download as a ZIP, each under the target.
Step 3 — Fix the format if the portal rejects it
A surprising number of rejections have nothing to do with size. Watch out for:
- WebP files. Images saved from websites or messaging apps are often WebP, and most official portals only accept JPG/JPEG. Run them through Convert image and choose JPG.
- PNG screenshots. If you screenshotted your photo, it’s probably a PNG. PNG is lossless and often can’t get down to 20 KB at all. The compress tool outputs JPG automatically, but if you only need the format change, use Convert image.
- “.jpeg” vs “.jpg”. They’re the same format. If a picky portal refuses one extension, renaming the file usually works.
- HEIC from iPhone. Export or share it as JPG first (see the FAQ below).
Typical photo requirements you’ll see
Every portal is different, so always follow the exact wording of yours, but these ranges come up again and again:
| Type of upload | Typical size limit | Typical dimensions |
|---|---|---|
| Exam / recruitment photo | 10–50 KB | 200×230 to 350×450 px |
| Signature image | 10–20 KB | 140×60 to 300×120 px |
| Visa / e-visa photo | 20–240 KB | 350×350 up to 600×600 px |
| Profile photo on job sites | 50–500 KB | 400×400 px or larger |
Notice the minimums: many exam portals require the photo to be between, say, 10 KB and 20 KB. If your file comes out at 6 KB because the image was tiny, it’ll be rejected for being too small. Fix that by resizing to slightly larger dimensions and compressing again with a target of 18–19 KB.
Does a 20 KB photo still look acceptable?
For its purpose, yes. At 300×400 px, a 20 KB JPEG shows a clear face with natural skin tones. What ruins small photos isn’t the KB limit — it’s:
- A bad starting photo. Dim lighting, a busy background or a face that fills only a small part of the frame all look worse after compression. Stand facing a window against a plain light wall.
- Compressing twice. Each JPEG save loses a bit more detail. Always start from the original photo, not from a previously compressed copy.
- Screenshots of photos. They add borders and change the dimensions. Use the original file.
After downloading, zoom in on the result. If the eyes and outline of the face are sharp, you’re done.
Why do it in the browser instead of an “online compressor”?
Most free image compressors upload your photo to their server, process it there and send it back. For a holiday picture that’s fine. For a photo that’s going on a passport, exam or visa application, alongside your name and date of birth in the same session, it’s worth avoiding.
PDFAgent’s image tools run entirely on your device: the photo is processed by your own browser and nothing is sent anywhere. It also means there’s no upload wait on a slow connection and no daily limit on how many times you can try.
Common problems and quick fixes
- “File size exceeds limit” but the file shows 20 KB on your computer. Some systems count 1 KB as 1,000 bytes, others as 1,024. Aim for 19 KB to be safe.
- “Invalid dimensions”. Resize to the exact pixels requested using “Exact” mode after cropping the photo to the right shape.
- The photo looks blurry. You probably compressed a huge image directly. Resize first, then compress.
- Signature is too faint after compressing. Scan or photograph it with dark ink on white paper, crop tightly around the signature, and then compress.
- You need it as a PDF instead. Some portals want the photo inside a PDF. Convert it with JPG to PDF and, if there’s a size cap on the PDF, use Compress PDF to size.
Summary
To compress a photo to 20 KB without it looking terrible: crop, resize to a few hundred pixels, then let Compress image find the best quality under 20 KB. Make sure it’s a JPG, check for a minimum size, and leave a 1 KB margin. It takes under a minute, it’s free, and your photo never leaves your device.