Target size guide
Compress an image to 50KB — the tightest limit forms ask for
Where a 100KB limit gives you room to work, 50KB is where upload forms start biting: signature photos on exam and government forms, some visa portals, and a handful of job applications. At this target the bits-per-pixel budget is so small that the type of image decides whether the result is acceptable. This page shows measured limits per image type, then hands you a compressor preset that runs the quality search for you.
Measured limits
What 50KB actually buys, by image type
We took the six images from our published test corpus — a photograph, a product cutout, flat artwork, a gradient, a logo, and a UI screenshot — and squeezed each one to 50KB as JPEG. For images that fit at full resolution, the table shows the quality the encoder had to drop to. For the one that does not fit at any quality, it shows the largest canvas that does.
| Test image | Full size | Fits 50KB at full size? | What it took | Quality cost |
|---|---|---|---|---|
| Photograph | 1600 × 1200 | Yes — quality 45 | 49.3 KB | PSNR 34.3 dB; visibly softer at 100% zoom |
| Product cutout | 1400 × 1400 | Yes — quality 56 | 49.2 KB | PSNR 41.4 dB; edges hold up |
| Flat artwork | 1200 × 1200 | Yes — quality 55 | 49.8 KB | PSNR 34.4 dB; banding in flat fills |
| Gradient | 1200 × 1200 | Yes — quality 79 | 48.9 KB | PSNR 49.6 dB; near-transparent loss |
| Logo | 800 × 800 | Yes — quality 95 | 38.0 KB | PSNR 43.3 dB; small canvas has headroom |
| UI screenshot | 1920 × 1080 | No — at any quality | Largest canvas that fits: 653 × 367 at quality 85 | 1.71 bits per pixel; PSNR 30.9 dB |
Text-heavy images are the opposite of photographs under a byte cap: JPEG spends its budget on exactly the detail you need to keep legible. At 2.07 megapixels no quality setting reaches 50KB. Either shrink the canvas — 653 × 367 was the largest that fit at quality 85 — or keep the PNG and reduce dimensions until the lossless file itself is small enough.
Source: measured on 7 November 2026 with Pillow 12.3.0 (libjpeg-turbo) on the published corpus at ./assets/bench/. Quality values are the highest that kept the file under 51,200 bytes; PSNR is against the decoded original (for the screenshot row, against the resized reference).
Passport & exam photos
The 600 × 750 case: 50KB is comfortable there
Most visa and exam portals ask for a photo near 600 × 750 pixels (a 4:5 portrait crop) — our passport photo spec list keeps the per-country values, each with its source and verification date. Cropping our 1600 × 1200 test photograph to 4:5 and resizing to exactly 600 × 750, the JPEG fit 50KB at quality 88 — 48.1 KB. At that pixel count the budget is about 0.89 bits per pixel, which a photograph tolerates well.
So the honest sequence for form photos is not "compress harder" — it is "crop to the demanded aspect ratio, resize to the demanded pixel count, and let quality do the last step". The passport photo workflow covers the crop; the preset below then lands the bytes.
Common failure
Starting from a PNG? Convert the format first
PNG is lossless: it refuses to discard detail, so its size cannot be dialled toward a byte target the way JPEG can. On our corpus the photograph's PNG source weighed 3,167.5 KB — sixty times the 50KB budget — and even the modest UI screenshot PNG weighed 1,082.3 KB. Re-encoding that photograph as JPEG at quality 85 took it to 140.3 KB, a 95.6 percent reduction, before any resizing.
That is why the target-size search on this site only offers JPG and WebP output: with PNG selected there is no quality dial to search. Pick JPG output, and if the result still overshoots 50KB at full size, reduce the pixel dimensions — the measured table above shows where each image type lands.
Troubleshooting
When the result still does not go through
Questions
50KB FAQ
Why does my 50KB file still get rejected?
Size limits usually come with a minimum pixel dimension and a format list. A file can be under 50KB and still be rejected for being too small in pixels or for being a PNG where JPG is required. Check all three constraints before resubmitting.
The closest result is slightly over 50KB — what do I do?
The quality search lands within a few percent of the target, and "closest" can sit just above it. If the form enforces a hard "up to 50 KB" rule, set the target to 45KB instead: the result will be comfortably under the limit.
My source file is a PNG — does that matter?
Yes. PNG is lossless and cannot be dialled to a byte target. Pick JPG output so the file is re-encoded and the quality search can work; for photographs this typically shrinks the file by around 96 percent before any resizing.
Is 50KB different from just using the 100KB guide?
In mechanics, no; in feasibility, a lot. At 100KB a 1600 × 1200 photograph reaches quality 75 with barely visible loss. At 50KB the same canvas survives only at quality 45, which is why this page spends its space on cropping and resizing rather than the slider. Need the roomier target instead? See compress an image to 100KB.
Are my images uploaded?
No. Compression runs locally in your browser with the canvas API — your files are never transmitted to a server.
Hit the 50KB target now
The preset opens the compressor with the 50KB target and JPG output already set. Everything runs locally in your browser.
Open the 50KB preset