Start with the limit the form actually means
“Under 100 KB” describes a maximum, not a requirement to land on exactly 100 KB. If the form gives a byte count or defines its units, use that. NIST distinguishes decimal kilobytes (1 kB = 1,000 bytes) from kibibytes (1 KiB = 1,024 bytes); a form that says only “KB” leaves that detail unclear, so leave room below the ceiling instead of aiming at the last byte. NIST's binary-prefix reference explains the distinction.
Keep the original untouched. Work on a copy, and keep the format the destination accepts. A smaller WebP is no help if the form rejects WebP and asks for JPEG.
Why a quality number cannot promise a file size
An image encoder turns pixels into a file. The output size depends on the image, its dimensions, the chosen format, and the encoder's settings. A quality value is an input to some lossy encoders, not a byte target.
In the browser, HTMLCanvasElement.toBlob() can request a format and, for formats such as JPEG or WebP, a quality value from 0 to 1. It returns a Blob. The API does not accept “make this exactly 100,000 bytes.” Measure the returned blob's size to know its actual bytes. See MDN's toBlob() reference and Blob.size.
That is why two pictures saved with the same quality setting can have very different sizes. Fine texture, noise, and detail are harder to compress than a simple, flat image. The same number in two different encoders is not a reliable visual-quality comparison either.
A practical way to get below a ceiling
- Check the destination. Note the byte limit if it is available, accepted formats, and any maximum width or height. Do not change format just to save bytes unless the destination accepts it.
- Make a copy of the source. Re-encoding a photo can discard information. Avoid repeatedly opening and saving the already-compressed result; start again from the original if you need another attempt.
- Try a modest quality change, then measure. Look at the actual output size. Check fine details at the size where the image will be viewed, especially text, hair, foliage, and edges. A slider value alone cannot tell you whether the file passed.
- If it is still too large, consider dimensions. Reducing pixel width and height can cut much more data than squeezing quality further. Choose dimensions that still suit the destination: an avatar, a document upload, and a photo intended for printing do not need the same pixel count.
- Leave a margin below the limit. If a service reports a strict maximum, aim comfortably below it. This avoids ambiguity in the unit and gives you a little room for differences in how the file is packaged or checked.
If the target cannot be met without making the picture unusable, stop. A size ceiling can be incompatible with the source detail and minimum dimensions. Ask whether the destination accepts another format or a larger limit instead of repeatedly degrading the only copy.
If the file is personal and you are choosing a browser-based converter, see our guide to checking whether an image tool sends your file.
Verify the saved file, not just the preview
After download, check the actual file's size and open it once. Confirm that it has the extension the form accepts, the dimensions you intended, and no visible damage. Some browsers can fall back to PNG if a requested canvas output format is unsupported, which may make the result larger than expected; check the actual output type as well as its byte count.
For a measured workflow, EkkySoft's Image Compressor can be a useful next step when the current page supports the format and ceiling you need. Compare the resulting bytes and appearance before uploading. Keep the original until the form accepts the copy.
