To compress an image to 100 KB, choose a maximum file size of 100 KB in an image compressor, which lowers JPEG or WebP quality until the file fits. If the quality is already low and the file is still too large, make the picture smaller in pixels, because dimensions affect file size more than any quality slider.
The fastest route is the larely image compressor. It runs in your browser, so the photo is not uploaded anywhere. The rest of this page explains what happens underneath, so you can get under 100 KB without wrecking the picture, and gives command-line alternatives.
Compress an image to 100 KB in the browser
- Open the image compressor and drop in your JPEG, PNG or WebP file.
- Set Max file size to 100 KB.
- For a photo, leave the format on Auto or pick JPEG or WebP. If the upload form accepts only JPEG, pick JPEG.
- If the result is still too big or looks soft, pick a Resize option and run it again.
- Check the size and dimensions shown on the result row, then download.
As the tool's page describes it, it tries the quality on the slider first and then steps down, and only if the lowest quality is still too big does it shrink the pixel dimensions. The result row says so if the limit could not be met. For very small targets, shrinking the image yourself first usually gives a better-looking result than compressing a full-size image hard.
Why quality alone sometimes cannot reach 100 KB
A JPEG or lossy WebP file stores the whole grid of pixels, with the fine detail rounded off to save space. Lowering quality rounds off more detail. That works until the picture turns blocky, and below that point you are only trading looks for bytes. MDN describes JPEG as lossy compression based on the discrete cosine transform, useful for photographs, and warns that lossy compression on content that needs sharpness, such as diagrams or charts, can give unsatisfactory results.
The number of pixels sets the baseline. A phone photo of 4032 by 3024 pixels has about 12.2 million pixels. A version of 1280 by 960 pixels has about 1.2 million, roughly a tenth. You can check this arithmetic yourself: 4032 × 3024 = 12,192,768 and 1280 × 960 = 1,228,800. With a tenth of the pixels to describe, the encoder needs far less data at the same quality setting, which is why resizing is the strongest lever.
The order that usually gives the best picture is:
- Resize to the size the picture will actually be shown at. A passport-style photo field or a profile picture rarely needs more than 800 pixels on the long edge.
- Pick the right format for the content (see the next section).
- Lower the quality until the file fits.
Which format gets under 100 KB most easily
| Format | Compression | Transparency | Best for a 100 KB limit |
|---|---|---|---|
| JPEG | Lossy | No | Photos, and any form that only accepts JPEG |
| WebP | Lossy or lossless | Yes | Web use, photos or graphics, when the destination accepts WebP |
| PNG | Lossless | Yes | Screenshots, logos and line art; resize rather than compress |
This follows MDN's format guide: JPEG has no alpha channel, PNG is lossless with full transparency and is preferred for precise reproduction, and lossy WebP is on average 25 to 35 percent smaller than JPEG at visually similar quality. That "on average" matters. It is not a promise for your file.
Check what the destination accepts before choosing. Many government, job and exam upload forms list JPEG or PDF only, and a WebP file will be rejected even though it is smaller. If you want background on why pixels and shapes behave so differently, see What Is a Vector Image? Vector vs Raster Explained.
What to do with a PNG
A PNG has no quality slider that discards detail, because it is lossless. A browser-based tool can only repack the same pixels, which saves little. To get a PNG under 100 KB you have three options:
- Resize it. Fewer pixels means fewer bytes in any format.
- Convert it to JPEG if it is a photo and has no transparent areas. Transparent areas become a solid colour in JPEG, usually black or white depending on the tool.
- Convert it to WebP if you need transparency and the destination accepts WebP.
How the quality setting works in a browser
Browser tools get their compression from the canvas. According to MDN, canvas.toBlob() takes a number between 0 and 1 for the quality of lossy formats such as image/jpeg and image/webp, and the browser uses its default quality if the value is missing or out of range. So a "quality 80%" slider in a web tool corresponds to a value of 0.8. A target-size feature simply tries several values and keeps the best one that fits.
Different browsers use different encoders, so the same quality value can give slightly different file sizes in Chrome and Firefox. Do not expect byte-identical results from two tools.
Compress to 100 KB with ImageMagick
If you have ImageMagick installed, you can do the same job from a terminal. Its documentation lists jpeg:extent under defines as a way to restrict the maximum JPEG file size, with 400KB given as its example value. The command below applies it with a limit of 100 KB, after shrinking the image so that its longest side is at most 1280 pixels:
magick input.jpg -resize "1280x1280>" -define jpeg:extent=100KB output.jpg
In ImageMagick's geometry syntax, widthxheight> means "shrink image only if dimensions are larger than specified bounds", and widthxheight alone keeps the aspect ratio within the given maximum values. So a smaller image is left as it is, and a larger one is scaled down proportionally. The documentation does not explain exactly how the value is parsed or how the encoder searches for the size, so check the output file's size afterwards rather than assuming it is under the limit. On Windows you can do that with:
(Get-Item .\output.jpg).Length
That prints the size in bytes. Compare it with 100,000 (or 102,400, depending on how the form counts). Older ImageMagick 6 installs use convert in place of magick.
To scale by a percentage instead, use -resize 50%. The geometry table describes this as both height and width scaled by the percentage given.
Tips for keeping the picture usable
- Crop before you compress. Removing empty background cuts pixels without touching the quality of what remains.
- Do not recompress the same file repeatedly. Each lossy save discards more detail. Keep the original and compress from it each time.
- Leave a margin. If the form's limit is 100 KB, target about 95 KB so that a difference in how KB is counted cannot reject the file.
- Look at it at 100 percent zoom. Faces, text and edges show compression damage first.
If it still will not go under 100 KB
Check the dimensions first. If the image is still more than about 1500 pixels on its long edge, reduce it further. Then check whether the picture has a lot of noise, such as a dark, grainy photo taken in low light. Noise is hard for lossy encoders to compress, so such pictures need a smaller size or lower quality than a clean daylight photo to reach the same file size. If the picture is a screenshot of text, JPEG will smear the letters. Keep it as PNG and resize it, or crop it down to the part that matters.
Frequently asked questions
- Why is my image still over 100 KB after compressing?
- Lowering quality only helps up to a point, because every pixel still has to be stored. A photo with many pixels and fine detail can stay above 100 KB even at low quality. Reduce the pixel dimensions as well, for example to 1280 pixels wide or less, and the file will drop much further.
- Is 100 KB 100,000 bytes or 102,400 bytes?
- It depends on who counts. Some programs use 1 KB = 1,000 bytes and others use 1 KB = 1,024 bytes, so 100 KB is either 100,000 or 102,400 bytes. If an upload form rejects a file that your computer reports as just under 100 KB, aim for about 95 KB to be safe.
- Can I compress a PNG to 100 KB?
- A PNG is lossless, so there is no quality setting that discards detail. The practical options are to resize it to fewer pixels, to convert it to WebP if transparency must be kept, or to convert it to JPEG if it is a photo with no transparency.
- Does compressing an image remove its EXIF data?
- Re-encoding an image in a browser through a canvas produces a new file without the original EXIF block, which includes GPS location. Desktop tools differ, so check the output if you need the metadata gone.