How to Compress Images to Exactly 100KB (and Why You Need To)
File size limits are everywhere. Government portals, university applications, job application systems, passport photo uploads, real estate listing platforms, insurance document submissions — virtually every online form that accepts images has a maximum file size, and 100 KB is one of the most common thresholds. The problem is that modern cameras, phones, and screenshot tools produce images that are orders of magnitude larger: a single iPhone photo is typically 3–8 MB, a screenshot can be 500 KB–2 MB, and a professional DSLR shot can be 20–50 MB. PixelSqueeze's target-size feature solves this precisely.
Why Standard Compression Doesn't Hit a Precise Target
Most image compressors work by letting you choose a quality level (e.g., quality 80) and then encoding at that quality. The problem is that the relationship between quality and output file size varies enormously depending on the image content. A complex photo at quality 80 might be 450 KB; a simple portrait at the same quality might be 80 KB. There's no way to know in advance without trying. This is why setting quality to "some number" and hoping for 100 KB is unreliable — you might get 300 KB or 60 KB depending on the image.
PixelSqueeze's target-size feature solves this with a binary search algorithm. It works like this: start with a high quality guess (92), encode, check if the output is over 100 KB. If yes, reduce quality toward 46, encode again, check again. The algorithm repeats up to 12 iterations, each time halving the remaining search space, until it converges on the highest quality level that still hits your target. For most images this takes under 2 seconds and hits within 1–2 KB of the target.
Common Target Sizes and When to Use Them
Tips for Getting the Best Quality at 100 KB
Use JPEG or WebP, not PNG. PNG compression is lossless, so reaching 100 KB with PNG is only possible if the original image was already small. For photographic content, use JPEG (quality compressed automatically) or WebP (25–35% smaller than JPEG at the same quality). The target-size feature only works with JPEG and WebP — PNG is always lossless.
Resize before setting a target size. If your image is 4000×3000 px and you need it under 100 KB, the tool will have to compress very aggressively, potentially introducing visible artifacts. Use the Resize tab first to bring dimensions to a sensible display size (e.g., 1200×900 px for a web image), then apply the target KB. You'll get dramatically better quality at the same file size.
Check the before/after comparison. After processing, click any thumbnail to open the draggable comparison slider. If visible compression artifacts are unacceptable, increase the target size slightly (e.g., to 120 KB or 150 KB) — this gives the algorithm more room to preserve quality.
What If the Image Can't Reach 100 KB?
Some images — particularly those that are already small — simply can't be reduced to 100 KB while remaining viewable. For example, a 90 KB original image cannot be made smaller in JPEG format while also increasing quality. PixelSqueeze handles this gracefully: if even quality 1 produces a file over your target, it returns the smallest achievable version and notes the actual size. The "Already optimized" badge appears when the file is already at or below your target.
Privacy Note
The binary search runs entirely in your browser. Your images are decoded, re-encoded up to 12 times with different quality settings, and the result is returned locally — nothing is sent to a server at any point. This is especially important for sensitive documents: passport scans, government IDs, medical images. Everything stays on your device. Read our privacy policy for full technical details.
Related tools: Compress images (custom quality) | Convert PNG to WebP for smaller files | How to reduce image size without losing quality