How-to
Compress a photo to exactly 100 KB
Some upload forms reject a photo the moment it crosses a hard byte ceiling, usually 100 KB or 200 KB, no matter how good it looks. Dragging a quality slider by eye rarely lands under that number on the first try. The image compressor has a target-size mode and optional Max dimension downscaling built for exactly this: pick 1280 px or 800 px if your camera shot is oversized, type the KB limit you were given, and it finds the highest quality that still fits under it, entirely in your browser.
Step by step
- Open the image compressor and drop your photo in. For 12 MP+ phone photos, optionally set Max dimension to 1920 px, 1280 px, or 800 px, then switch the mode toggle from "Quality" to "Target size" to reveal the KB input.
- Type the limit the form asked for, 100 in this case. The tool downscales once via WebAssembly if a Max dimension was chosen, then re-encodes at several quality levels to narrow in on the highest quality that still lands at or under 100 KB.
- Download the result. The savings summary shows the final size next to the original so you can confirm it is under the limit before you upload it to the portal that asked for it.
Why some forms demand an exact KB ceiling
Visa applications, exam board registrations and government e-forms often store the photo in a fixed-size database field or attach it to a document template with a hard byte budget. The form does not care about resolution or how sharp the photo looks; it checks one number, the file size in kilobytes, and rejects anything over it. A phone photo straight out of a 12 MP or 48 MP camera is commonly 2 to 6 MB, twenty to sixty times over a 100 KB cap, so lowering quality alone often leaves visible JPEG blocking.
| Feature | US DOS / DS-160 | India SSC / UPSC | Schengen Visa Portal |
|---|---|---|---|
| File size cap | ≤ 240 KB (Exact) | 20 KB to 50 KB | ≤ 100 KB (Strict) |
| Reference | 600x600 px (300 DPI) | 200x230 px (Color) | 35x45 mm (413x531 px) |
| Supported formats | JPEG 24-bit sRGB | JPEG (200 DPI) | JPEG Baseline 8-bit |
How the search finds a size instead of a quality
Target-size mode does not pick a quality number for you to eyeball; it runs a small search. Each attempt re-encodes the photo at a candidate quality and measures the output in bytes. When an attempt is under your limit, the tool keeps it as the best answer so far and tries a slightly higher quality; when it is over, it tries lower. After a handful of attempts it settles on the highest quality it found that stays at or under your KB limit, and re-encodes once more at that value for the file you download. The result lands under the target, not at an exact byte count: 97.4 KB for a 100 KB limit is a typical, and perfectly valid, outcome.
| Feature | Quality Step (0.01 - 1.0) | Chroma Subsampling | Pre-Resize (Image Resize) |
|---|---|---|---|
| Reference | Binary Search (Log2(N)) | YUV 4:2:0 vs 4:4:4 | Scale Down Oversized Dimensions First |
| File size cap | Converges Near Target Cap | Saves 15% to 25% Payload | Matches Required Pixel Dimensions |
| Processing mode | Client WASM Binary Search Loop | Client Canvas Context2D | OffscreenCanvas Worker |
| Result | Typically ~95–99 KB (≤ 100 KB) | Sharp Facial Geometry | Meets File-Size Cap (Check Portal Rules) |
Using Max dimension downscaling for 12 MP+ photos
When quality reduction alone cannot reach 100 KB without visible blocking on a 12 MP+ camera shot, select 1920 px, 1280 px, or 800 px in the Max dimension dropdown right inside Image Compress. The worker decodes and downscales the image once via WebAssembly while preserving its aspect ratio, then runs the target-size search on the smaller pixel grid so text and facial details stay clean under 100 KB.
The tools used in this guide
- Compress imagesBatch compress JPG, PNG, WebP, and AVIF images by quality slider or exact target KB size.
- Resize imagesResize images by dimensions or percentage, then export JPG, PNG, WebP or AVIF in your browser.
- Crop imageCrop an image with a free rectangle or preset aspect ratio, preview the selected area and download the result.
- Convert HEIC to JPGConvert HEIC or HEIF photos to JPG, PNG, or WebP individually or in batches, with optional resizing, burst frame extraction, and one-click ZIP download.
Frequently asked questions
Will the downloaded photo be exactly 100 KB?
It will be at or under 100 KB, not an exact byte count. The search stops at the highest quality it found that still fits the limit, which is usually a little under it (97 to 99 KB for a 100 KB target is typical). Portals that state a maximum, not an exact figure, accept this without issue.
Can I compress a PNG down to a 100 KB target?
Yes. When keeping PNG format, lowering quality below 100 or running target-size mode applies RGBA channel quantization via @jsquash/png WASM to shrink the file. However, for camera photographs, switching the output format to JPEG or WebP still achieves much sharper results under a strict 100 KB ceiling.