Compress JPEG to 20KB Online Without Losing Quality
A 20KB JPEG limit is common for government portal uploads — Indian visa applications, IBPS bank job forms, UPSC, SSC, and railway recruitment portals all specify a maximum of 20KB for the photo. The challenge is compressing the image small enough to pass the size check while keeping it clear enough to be accepted. This guide explains exactly how to do it.
How to Compress a JPEG to 20KB Free Online
Step 1: Go to iFormat.io Image Compressor.
Step 2: Upload your JPEG file by clicking Choose File or dragging it in.
Step 3: Set the target size. Enter 20 in the target KB field if the tool supports target-size compression, or reduce the quality slider to approximately 60–70%.
Step 4: Download the compressed image and check the file size. If it's still over 20KB, reduce quality further or resize the dimensions first.
What Dimensions Should a 20KB Photo Be?
File size depends on two things: image dimensions and JPEG quality setting. To reliably hit 20KB or below, your image should be no larger than 200 × 200 pixels at 80% quality for a portrait/headshot, or 150 × 200 pixels at 85% quality. A 600 × 800 pixel photo at 90% quality will be around 80–120KB — you need to reduce dimensions, quality, or both.
20KB Photo Size Rule of Thumb
Dimensions: Keep width and height under 200px for headshots
Quality: 60–75% JPEG quality is typically fine for ID photos
Color mode: RGB (not CMYK) — CMYK adds overhead
No metadata: Strip EXIF data to save 5–15KB
Why Is My Image Still Over 20KB After Compression?
Three common reasons:
1. Dimensions are too large. A 1000 × 1000px image at 60% quality can still be 40–60KB. Resize the image to 200 × 200 or smaller first, then compress.
2. The photo has complex content. Images with lots of fine detail — hair, fabric patterns, outdoor backgrounds — compress less efficiently than plain backgrounds. A photo taken against a plain white or grey wall will be smaller at the same dimensions and quality than one taken outdoors.
3. EXIF metadata. Camera photos store GPS location, camera model, and date in the file — this can add 10–20KB. Use a tool that strips EXIF data, or specifically enable the 'remove metadata' option if available.
How to Resize and Compress in One Step
For government portal photo requirements (typically 20KB max, 35mm × 45mm or similar), the most reliable approach is:
1. Use the resize tool to set exact pixel dimensions first.
2. Then compress the resized image to reduce file size to under 20KB.
This two-step process gives you more control than trying to hit both dimension and size targets at once.
Does Compressing to 20KB Reduce Photo Quality Too Much?
For typical passport or ID photos (200 × 200px), a 20KB file looks acceptable on screen and is sufficient for document verification purposes. The reviewing officer sees the photo at small scale on a screen — they don't zoom into pixel-level detail. The main quality check is that the photo is clear, the face is identifiable, and there's no obvious pixelation or blurriness.
If you compress a 200 × 200px image down to 15KB and it looks noticeably blurry, try reducing the dimensions slightly more (to 180 × 180px) and keeping quality at 75% rather than pushing quality down to 50%.
Frequently Asked Questions
Can I compress a PNG to 20KB?
PNG files are typically larger than JPEG at equivalent quality because PNG uses lossless compression. For a 20KB target, convert the PNG to JPEG first, then compress. Use the PNG to JPG converter before compressing.
What if the portal says 'file must be between 10KB and 20KB'?
Compress to around 15–18KB to stay safely within the range. Avoid going below 10KB as the image quality at that size is usually unacceptable for ID verification.
Should I compress before or after cropping to the required dimensions?
Resize first, then compress. Set the pixel dimensions to the portal's requirement (or the maximum allowed), then apply compression to bring the file size below 20KB. Compressing a large image and hoping it meets both the size and dimension requirements simultaneously is less reliable.
My photo looks blurry after compression — what should I do?
Blurriness at 20KB usually means the dimensions are too large. A 500 × 600px image compressed to 20KB will look noticeably blurry because too much quality has been squeezed out of too many pixels. Reduce dimensions to 200 × 240px first, then compress — the result will be clearer at the same file size.