How to Compress an Image to a Target Size (Like 100KB)
Need an image under 100KB for a form or a faster site? Learn how image compression works and how to hit an exact file size while keeping quality.
"Images must be under 100KB." Government online applications, school admission forms, job-portal resume photos: an astonishing number of systems impose strict file-size limits. A photo from your phone is usually 3–8MB, so it gets rejected outright. This guide explains how to reliably compress an image down to a target like 100KB, from the underlying mechanics to a step-by-step workflow.
1Why File-Size Limits Exist
Limits are not arbitrary. They cut server storage and cost, shorten upload times, and keep pages fast, all of which matter to whoever runs the service. Government systems and older enterprise software in particular handle millions of attachments, so they cap each file tightly.
It can feel frustrating as a user, but once you understand how compression works you can fit inside the limit without ruining the image.
2The Three Things That Determine File Size
File size is driven mainly by three factors:
- Resolution (pixel count): width × height. Scaling a 4000×3000px photo down to 1000×750px alone cuts the data by roughly 16×.
- Compression level (quality setting): dropping JPEG quality from 100% to 80% shrinks the file dramatically while being nearly invisible to the eye.
- File format: use JPEG/WebP for photos, PNG for diagrams and screenshots. Choosing the right format matters.
3Lossless vs. Lossy Compression
There are two kinds. Lossless compression shrinks the file with zero quality loss, but the savings are modest. Lossy compression discards detail the human eye barely notices to achieve much larger reductions.
To hit an aggressive target like 100KB, lossy compression (mainly JPEG or WebP quality adjustment) is the realistic route. For photographs, lowering quality somewhat has little visible impact but a huge effect on size.
4Step-by-Step: Compressing to 100KB
Here is the basic flow using our Image Compressor:
- 1. Load the image: upload the photo (processing happens in your browser — nothing is sent to a server).
- 2. Revisit the resolution: if it is larger than needed for display, scale the width to around 1000–1600px first. This alone often gets you close.
- 3. Adjust quality: use the slider to lower quality, watching the preview, and find the minimal degradation that lands under 100KB.
- 4. Export and check: after downloading, confirm the file size is within the limit; if not, drop quality one more notch.
5How to Stay Small Without Looking Bad
Cutting smartly preserves appearance better than just slashing quality:
- Crop out dead space: removing areas around the subject reduces pixel count.
- Start from the right resolution: if you are not printing, you do not need huge dimensions.
- Consider WebP: at the same quality, WebP is typically 25–35% smaller than JPEG, a strong option when the form accepts it.
- Adjust gradually: do not jump straight to 10% quality. Step down 80 → 70 → 60% to find the smallest acceptable size.
6The Right Format for the Job
- Photos and people: JPEG or WebP, with lots of gradients, where lossy compression shines.
- Logos, icons, shapes: PNG (or SVG if possible), for crisp edges and few colors.
- Screenshots: PNG if text-heavy, JPEG if photographic.
- Transparency needed: PNG or WebP (JPEG does not support transparency).
7Common Mistakes
The most frequent error is slashing quality without revisiting resolution. Drop a 4000px monster to 20% quality and it shrinks but turns into a block of artifacts. The right order is to scale resolution sensibly first, then fine-tune quality.
The second is saving photos as PNG. Photos balloon as PNG; switching to JPEG can shrink them many times over. Pick the wrong format and no amount of compression will reach your target.
8A Bonus: Faster Websites
Beyond fitting size limits, image compression directly affects site speed. Images often make up the bulk of a web page's total weight, and compressing them improves Largest Contentful Paint (LCP), which lifts both SEO and user experience. If you run a site, make optimizing images before upload a habit with our Image Compressor. Pair it with the Image Resizer and Image Converter to fix resolution, format, and weight in one pass.
9A Note on Privacy
Application documents and resume photos can contain personal information. Our Image Compressor does all processing inside your browser and never uploads your image to a server, so even sensitive pictures stay private.
10Conclusion
Compressing an image to a target like 100KB really comes down to three moves: scale the resolution sensibly, choose the correct format, and adjust quality gradually. Rather than blindly lowering quality, cut with an understanding of the mechanics and you can respect the limit while keeping the image looking good. Start by trying your own image in the free Image Compressor.