How to Compress an Image to Under 20KB
20KB is a common file size limit for profile pictures, government portal uploads, forum avatars, and some mobile app upload fields. Getting a photo under 20KB without making it look broken requires a specific combination of resizing, format choice, and compression level. This guide gives you the exact steps to hit the 20KB target reliably.
Quick Answer
20KB is a common file size limit for profile pictures, government portal uploads, forum avatars, and some mobile app upload fields. Getting a photo under 20KB without making it look broken requires a specific combination of resizing, format choice, and compression level.
Try it now — free, no signup
Your images stay on your device. Nothing is uploaded to any server.
Step-by-Step Guide
5 steps · takes under 1 minute
Resize to the smallest acceptable dimensions
For a profile picture or avatar under 20KB, start with 200×200px or 300×300px. A 200×200 JPG at 75% quality typically lands at 6–12KB. Open the Resize tool and resize before compressing.
Convert to JPG if not already
JPG produces the smallest files for photos. If your image is PNG, convert it to JPG first — PNG at 200×200px can be 30–60KB even with compression, while JPG at the same size is typically under 15KB.
Compress at 65–70% quality
Drop the resized JPG into the compressor and set quality to 65–70%. At this level, a 200×200 or 300×300 photo will be well under 20KB. Check the before/after sizes displayed by the tool.
Check the output file size
Download the compressed image and check its file size: right-click → Properties (Windows) or Get Info (Mac). If it's still above 20KB, lower the dimensions or reduce quality to 60%.
Verify it still looks acceptable
Open the image at its actual display size. At 200×200px, 65% JPG quality looks clean for most photos. Avoid zooming in — judge at the size it will actually be displayed.
Before vs After Compression
Typical result on a 1080×1080px product photo
100% Private — Zero Uploads
ImgToolkit runs entirely in your browser using the Canvas API. Your images are never sent to a server, never stored in the cloud, and never seen by anyone else. This makes it safe for sensitive documents, client work, medical imagery, and confidential screenshots.
Pro tip
Use 75–85% quality for web images — you get 60–80% smaller files with no visible difference at normal screen sizes.
Format & File Size Comparison
Same 1080×1080px photo processed four ways
| Format | Quality | File Size | Notes |
|---|---|---|---|
| PNG (original) | Perfect | 4.2 MB | No compression — too large for web |
| Compressed PNG | Visually identical | 1.1 MB | −74% — transparency preserved |
| JPG (85% quality) | Excellent | 310 KB | −93% · Best for photos |
| WebP (85%)BEST | Excellent | 205 KB | −95% · Recommended for web |
Based on a 1080×1080px photo. Results vary by image content and complexity.
Related Free Tools
All tools run in your browser — no account or upload needed
Frequently Asked Questions
4 questions answered
Ready to get started?
Free, instant — your files stay on your device. Always.
Compress to Under 20KB