How-to Guide 3 min read

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.

Files never leave your device ⚡ Instant browser processing 🆓 100% free — no account 🚫 No watermark on output
By ImgToolkit Team · Updated May 2026 · 3 min read · Processed in your browser
PNGJPGWebPGIFBMP

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.

Compress to Under 20KB

Step-by-Step Guide

5 steps · takes under 1 minute

1

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.

2

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.

3

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.

4

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%.

5

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

Before 4.2 MB
📷 Original PNG
After 820 KB
🗜️ −80% smaller
Before: 4.2 MB — slow to load, rejected by email
After: 820 KB — fast loading, visually identical
🔒

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

FormatQualityFile SizeNotes
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

What resolution can I use for a 20KB image?

At 65% JPG quality: a 200×200px photo is approximately 8–14KB. A 300×300px photo is approximately 14–22KB. A 400×400px photo is approximately 20–35KB. If you need exactly under 20KB at 400px, try 60% quality. Adjust dimensions and quality together to hit your target.

Can I get a 20KB image that still looks sharp?

Yes, at small display sizes. A 200×200px JPG at 75% quality looks sharp on any screen because 200px is small enough that minor compression artifacts are invisible. The 20KB limit only becomes visually problematic when trying to compress large images (1000px+) — at those sizes, 20KB would be extremely degraded.

Why does the platform say my image is over 20KB even though my file manager shows it's smaller?

Different systems measure kilobytes differently: 1 KB = 1,000 bytes (SI) vs 1 KiB = 1,024 bytes (binary). A file that shows as 19.5 KB in binary (19,968 bytes) might be reported as 20 KB in decimal on some platforms. To be safe, aim for under 18KB to give yourself a comfortable buffer.

My image is a logo — how do I get it under 20KB?

For a simple logo: convert to PNG and apply compression. Simple logos with flat colours and transparent backgrounds compress very well. A 300×300 logo PNG with transparency can reach under 10KB with quantization. If the logo is complex, use SVG — a well-optimised SVG of a simple logo can be under 5KB.

Ready to get started?

Free, instant — your files stay on your device. Always.

Compress to Under 20KB

All Free Image Tools

Image Compressor →Background Remover →Image Resizer →Crop Image →PNG to JPG →JPG to WebP →AI Upscaler →Watermark Tool →Blur Faces →Rotate Image →