How to Compress an Image to 100KB (or Any Size Limit)
The upload form says “maximum file size 100KB” and your photo is 3.4 MB. Job applications, exam registrations, visa portals, school systems and forum avatars all draw lines like this, and they rarely tell you how to get under them. The good news is that a photo can lose 97% of its bytes and still look fine on the screen where someone will actually view it. You just need to adjust the right two settings in the right order.
The fast way: let a tool search for the size
Open Compress Image to Size, drop in the image, click the 100 KB preset (or type any limit), and press Compress. The tool tries quality settings until it finds the highest one that fits, and if quality alone cannot get there, it reduces the pixel dimensions just enough. It runs in your browser, so there is no upload wait even for large phone photos. The rest of this guide explains what it is doing, which is useful when a form has extra rules about dimensions or format.
Why your photo is so big in the first place
File size comes from two things: how many pixels the image has, and how many bytes each pixel costs after compression. A modern phone shoots 12 to 50 megapixels. A 12 MP photo is 4000×3000 pixels, and at the high quality phones save by default it typically weighs 2–5 MB. Screenshots saved as PNG can be just as heavy, because PNG never discards detail. Getting under 100 KB means attacking both factors: fewer pixels, and fewer bytes per pixel.
Lever 1: quality (bytes per pixel)
JPEG and WebP have a quality setting, usually 0–100. It does not map to a percentage of anything; it controls how aggressively the encoder throws away fine detail your eye is unlikely to notice. The relationship between quality and size is steep at the top: going from 100 to 85 often halves the file with no visible change, while going from 70 to 50 saves much less and starts to show blocky patches in skies and smudges around edges.
- 85–90: visually identical to the original for nearly all photos.
- 70–80: the sweet spot for upload limits; differences need side-by-side zooming to spot.
- 50–65: acceptable for small display sizes, artifacts visible on close inspection.
- Below 40: obvious blockiness. If you are here, shrink the dimensions instead.
Lever 2: dimensions (number of pixels)
Halving the width and height cuts the pixel count to a quarter, and the file size drops roughly in proportion. That makes resizing the most powerful lever, and for size-limited forms it costs almost nothing: an application portal displays your photo at a few hundred pixels wide at most. As a rough starting point, a typical photo at quality 75–80 costs about 1–2 bits per pixel, which puts these targets in reach:
| Target size | 4:3 photo dimensions that usually fit at quality ~75 |
|---|---|
| 20 KB | About 330×250 to 470×350 |
| 50 KB | About 520×390 to 740×555 |
| 100 KB | About 740×555 to 1050×790 |
| 200 KB | About 1050×790 to 1480×1110 |
| 500 KB | About 1650×1240 to 2340×1755 |
These are estimates, not guarantees. A photo of a blue sky compresses far better than one of gravel or foliage, because fine random texture is expensive to encode. Scans of documents with lots of text also cost more than you would expect.
The right order: resize, then compress
If you only turn down quality, a 4000-pixel photo has to drop to a quality of 10 or so to reach 100 KB, and it will look terrible. If you resize to 1000 pixels wide first, quality 80 fits comfortably and the result looks clean. So the manual workflow is:
- Resize to the largest dimensions the form needs (or around 1000 px on the long side if it does not say) with the Image Resizer.
- Save as JPEG. If the original is a PNG screenshot or scan, this switch alone can cut the size by 80% or more.
- Lower the quality in the Image Compressor until the size readout is under the limit, staying at 70 or above if you can.
If the form specifies exact dimensions, such as a 600×600 passport photo, crop and resize to those first, then compress with resizing switched off so the dimensions stay put.
Which format to save in
Use JPEG unless the form says otherwise. It is accepted everywhere, and for photos it is far smaller than PNG. WebP is smaller still, but many government, exam and job portals reject it outright, and a rejected upload wastes more time than the extra kilobytes would have. Keep PNG for cases where the form demands it, and expect those limits to be hard to hit with photos. Our comparison of PNG vs JPEG vs WebP goes deeper, and if a form insists on “.jpg” while your file ends in “.jpeg”, see JPG vs JPEG; they are the same format.
KB, KiB and why your file got rejected at 99 KB
“100 KB” can mean 100,000 bytes or 102,400 bytes depending on who wrote the form. Windows shows sizes in units of 1024 bytes; macOS Finder uses 1000. A file Finder calls 101 KB is about 98.6 KB in Windows terms. When you are close to the line, aim for 95% of the limit and both definitions pass. Our tool treats 1 KB as 1024 bytes but stops under the target, so it errs on the safe side.
When the form also wants 300 DPI
Some portals ask for a maximum size and a minimum DPI, which sounds contradictory until you know that DPI is just a number in the file header. It does not change the pixels or the size. Compress first, then set the DPI with the Image DPI Changer, which adds only a few bytes. Re-encoding through most compressors (ours included) resets the DPI field, so do the DPI step last. Our guide to DPI vs PPI explains why.
Common mistakes
- Compressing a screenshot of a photo. Taking a screenshot to make an image smaller adds the interface around it and saves as PNG. Compress the original instead.
- Compressing the same JPEG repeatedly. Each save throws away more detail. Always start from the original, not the previous attempt.
- Renaming the extension. Changing photo.png to photo.jpg does not convert it; the bytes are still PNG and some portals will reject the mismatch. Use a real image converter.
- Forgetting location data. Phone photos often carry GPS coordinates in their EXIF metadata. Browser-based re-encoding generally drops it, but if you are sending the original anywhere, read how to remove EXIF data first.
The short version
Resize to around 1000 pixels on the long side, save as JPEG at quality 70–80, and nearly any photo lands under 100 KB looking good. If you would rather not do the arithmetic, the Compress Image to Size tool does all three steps at once and picks the best quality that fits.