Processed locally in your browser — nothing is uploaded.
Compress Image to 20KB
Quick answer
Twenty kilobytes is not a lot of room. This tool binary-searches encoder quality to land just under the limit, and it will tell you plainly when the honest answer is to shrink the image first.
What the compress image to 20kb does
Compress to 20KB exists for a specific, annoying reason: government portals, exam boards and some scholarship applications still enforce a 20 KB cap on photo uploads, a number that dates back to dial-up era form design and never got revisited. A typical 12-megapixel phone photo lands around 3–5 MB out of the camera, roughly 150–250 times over budget.
To get there, Pixora runs a binary search: it encodes the same image at a range of quality settings, checks the resulting byte size after each pass, and narrows in on the highest quality that still fits under 20 KB. That usually takes 8–10 encode passes in a background Web Worker, so the tab stays responsive while it works.
Be honest with yourself about what 20 KB buys you at full resolution: at that budget a 12-megapixel photo will show visible blockiness, colour banding in skin tones, and smeared detail around text or hair. If the encoder cannot reach 20 KB even at the lowest quality setting, Pixora automatically scales the image down and tries again, because there is a floor below which quality alone cannot help.
How to use it
Resize first, if you can
Before compressing, shrink the photo to around 600×800 px. Most 20 KB caps exist for a small ID-style photo, not a full-resolution print.
Upload the image
Drag it into Pixora or click to browse.
Let the binary search run
Pixora tries a sequence of quality values and narrows in on the highest one that still fits under 20 KB.
Check the result at full zoom
Artefacts that vanish when an image is scaled down on a form become obvious at 100%. Look at the preview before you submit anything.
Download and submit
Save the file, then check it still meets any dimension requirement the form specifies alongside the size cap.
Your images never leave your device
The forms that impose 20 KB caps are frequently the same forms asking for identity documents: exam admit cards, passport-style photos, national scholarship portals. Processing that image entirely in your browser means the photo of your face never touches a third-party server before you deliberately upload it to the government site itself.
- No file is ever uploaded to a server
- Works offline after the first visit
- No account, no watermark, no limits
Format and quality tips
Dimensions matter more than quality at this size
A 3000×4000 px photo compressed to 20 KB will look worse than a 600×800 px photo compressed to the same 20 KB, because there are simply more pixels competing for the same byte budget. Resize down to roughly what the form actually displays before you compress.
Expect visible artefacts, not a clean photo
At 20 KB you are trading fidelity for a hard number a computer system checks automatically. Faces will still be recognisable; fine hair strands, small text in the background, and smooth skin tone gradients usually will not survive intact.
Frequently asked questions
Why do some portals still cap uploads at 20 KB?
Many government and exam-board systems were built when storage and bandwidth were expensive, and the limit was never revisited even though hosting costs have fallen sharply since.
Will my photo look blurry at 20 KB?
It will usually look blocky or smeared rather than blurry in the traditional sense; JPEG compression at very low quality shows up as visible 8×8 pixel blocks and colour bleeding, especially around edges.
Should I resize before or after compressing?
Resize first. Shrinking a smaller number of pixels down to 20 KB gives the encoder far more bytes per pixel to work with than compressing a full-resolution photo to the same size.
What image dimensions work best for a 20 KB cap?
Around 600×800 px is a common sweet spot for ID-style photos, since it matches what most forms display and leaves enough byte budget per pixel for a recognisable result.
Can I hit exactly 20,480 bytes?
The tool targets just under your limit rather than exactly at it, since encoders produce discrete file sizes. Aim for safely under the cap rather than at it.
Does PNG work for a 20 KB target?
Rarely, for a photo. PNG is lossless, so a photographic PNG resized to fit 20 KB would need to lose most of its resolution; JPEG or WebP will preserve far more visible detail at the same byte count.
Further reading
- How to Reduce a Photo to 100KBA 100KB cap is a hard wall on an upload form, not a suggestion. Here is the resize-then-compress method that gets you under it while the photo still looks like a photo.6 min read
- How to Compress an Image for EmailEmail attachment limits are smaller than the number they advertise, and your recipient is probably on a phone. Here is how to make photos that always arrive and always open.6 min read
- PNG vs JPG: Which Should You Use?The rule is short: photographs go to JPG, anything with sharp edges or transparency goes to PNG. This post explains why, so you never have to guess again.6 min read
Related tools
- Image CompressorQuality slider or exact target size · 100% local
- Bulk CompressorHundreds of images · one ZIP · zero uploads
- Image ResizerLanczos resampling · presets · nothing uploaded
- Compress to 50KBHits 50KB exactly · nothing leaves your device
- Compress to 100KBHits 100KB exactly · nothing leaves your device
- Compress to 200KBHits 200KB exactly · nothing leaves your device