Compress an image to any size limit
Resize first, then encode to the target size. A 4000-pixel photo squeezed to 20 KB looks broken; the same photo resized to 600 pixels at 20 KB looks normal. The number is a budget, and dimensions decide how far it goes.
Open the Compress to Size tool
An image has two independent costs: how many pixels it contains, and how carefully each pixel is stored. A file-size limit constrains the product of the two, so you choose which one to spend.
Pick your limit
| Limit | Typical use | Realistic dimensions |
|---|---|---|
| 20 KB | Exam forms, some visa portals | 600 px portrait |
| 50 KB | Job applications, university forms | 800 px |
| 100 KB | ID uploads, insurance claims | 1000–1200 px |
| 200 KB | Document photos, certificates | 1600 px |
| 1 MB | Marketplace listings, blog images | 2000–3000 px |
Why resizing comes first
Halving the width and height of an image removes three quarters of its pixels. That is a 4× reduction before any compression happens, and the remaining pixels stay clean. Dragging a JPEG quality slider instead keeps every pixel and damages each one.
This is why two files at the same 50 KB can look completely different: one was resized to 800 pixels and gently encoded, the other was a 4000-pixel original squeezed until it gave up.
Format, in one table
| Format | Use for | At a fixed byte budget |
|---|---|---|
| JPEG | Photographs | Best quality per byte for photos |
| PNG | Logos, screenshots, flat art | Sharp edges, but far larger for photos |
| WebP | Web images | Roughly 25–35% smaller than JPEG at similar quality |
Upload forms usually accept only JPEG or PNG. If the destination is the web rather than a form, WebP is the better default.
The order that works
- Decide the pixel dimensions the destination actually needs. A form that displays a photo at 300 px does not need 3000.
- Resize to that, keeping the aspect ratio.
- Set the byte target with a small margin — 48 KB for a 50 KB cap.
- Inspect the face, or the smallest text, at 100%.
When the limit is impossible
20 KB is below what a detailed photograph can hold. If a form demands it and rejects the result, the problem is usually the dimensions rather than the encoder: crop tighter to the subject, or re-shoot with the phone closer so fewer pixels are needed to describe the same face.
Questions
What is the difference between resizing and compressing?
Resizing changes the pixel dimensions; compressing changes how those pixels are stored. A byte limit is best met by doing both, in that order.
Which format should I use?
JPEG for photographs, PNG for graphics and screenshots, WebP for the web when the destination supports it.
Can I compress several images at once?
Yes, and batch mode keeps each file's name so an application set stays in order.
Are my images uploaded?
No. Everything happens in the browser tab.
Updated 2026-11-16 · written for this site, no trackers, no account.