Myth check, tested
How do you reduce an image to 100 KB?

Short answer
Turning the quality down until the file fits is the usual advice, and on four test pictures it failed 9 times out of 16: a 5184 × 3456 px photo was still 143,920 bytes at the lowest quality the Koldflux tool tries, over a 100 KB limit. When quality runs out, the picture itself has to get smaller. With that allowed, the tool reached all 16 limits. Count the bytes yourself afterwards, because a 100 KB limit can mean 102,400 bytes or 100,000.
Shrink an image to an exact KB target (free, in your browser)
Key takeaways
- Quality alone missed 9 of 16 targets (4 pictures × 20, 50, 100 and 200 KB). Letting the tool shrink the picture too fit 16 of 16.
- The tool shrank the 5184 × 3456 px photo (2,915,869 bytes) to 1260 × 840 px to land at 101,046 bytes; at full size the lowest quality the tool tries still gave 143,920. The ffmpeg script fit the same photo at 1554 × 1036 px.
- The tool counts 1 KB as 1,024 bytes, so its 100 KB is 102,400 bytes. Against a limit of 100,000 bytes only 1 of the four 100 KB results fit.
- A text page at 100 KB kept readable headlines and a faint body; at 20 KB (248 × 374 px) only the masthead and big headlines survived.
- Check the result in bytes (wc -c, or file Properties on Windows), not by eye. A small ffmpeg script reached 16 of 16 limits too, for 1,024-byte and for decimal limits.
Why lowering the quality stops working
Your JPEG has two sizes that matter: the number of pixels and how hard those pixels are compressed. The quality slider only touches the second one. Below some point the slider has nothing left to give, and you are left with a file as big as the pixel count makes it.
We ran four pictures through the Koldflux target-size tool with its "shrink the dimensions" box unticked, so only quality could change. The pictures were three public-domain images from Wikimedia Commons (a landscape photo, a portrait photo, a scanned Wilnaer Zeitung front page) and a screenshot of our own tools page. Each got four limits.
| Picture | Original | Pixels | Smallest by quality alone | Limits met |
|---|---|---|---|---|
| Landscape photo | 2,915,869 bytes | 5184 × 3456 | 143,920 bytes | 200 KB only |
| Portrait photo | 1,208,505 bytes | 3175 × 3920 | 82,043 bytes | 200 and 100 KB |
| Newspaper page scan | 1,010,293 bytes | 2120 × 3200 | 127,971 bytes | 200 KB only |
| Screenshot (PNG) | 221,015 bytes | 1440 × 2200 | 47,849 bytes | 200, 100 and 50 KB |
Smallest file the tool reached, and which of the four limits (200, 100, 50, 20 KB) it met.
Seven of the 16 limits were met and nine were missed. The landscape photo is the clearest case: the tool searched quality all the way down to 5%, and the smallest file was still 143,920 bytes. That is 140.5 KB, more than 40% over a 100 KB limit. Even the screenshot, small to begin with at 221,015 bytes, bottomed out at 47,849.
So when you meet a form that says "maximum 100 KB" and your phone photo is 3 MB, the quality slider is the wrong lever by itself. The photo has too many pixels to describe in 100 KB at any quality the tool tries.
What do you do when quality is not enough?
Make the picture smaller as well, and let the tool pick how much. Fewer pixels means less to store, so the file shrinks even at a quality that still looks fine. The Koldflux target-size tool does this itself when its box "Shrink the dimensions when quality alone cannot reach the target" is ticked: it tries quality from 95% down to 50% first, and only then reduces the picture. You do not have to guess a width.
Each choice costs something. Unticked, you keep every pixel, but the compression is heavy and the target can be missed: with it unticked the tool met 7 of our 16 limits. Ticked, it met all 16, but it gives up pixels even when quality alone would have fit: the portrait at 100 KB came out at 3175 × 3920 px and 94,028 bytes unticked, and at 1667 × 2058 px and 100,517 bytes ticked.
- Open the target-size tool and pick a preset (20, 50, 100, 200 KB, 500 KB, 1 MB or 2 MB) or type your own number in the custom field.
- Try it first with the shrink box unticked, so every pixel stays and only quality drops. Choose your picture; it stays in your browser and is not uploaded. If the result is still above your limit, tick the box and run it again.
- Read the result panel: the actual result, how far under the target it is, the JPEG quality used and the new picture size.
- Download the JPEG, then count its bytes (see the last section) before you submit it.
| Picture | 100 KB target | 50 KB target | 20 KB target |
|---|---|---|---|
| Landscape photo | 101,046 bytes, 1260 × 840 | 51,015 bytes, 875 × 583 | 20,106 bytes, 529 × 352 |
| Portrait photo | 100,517 bytes, 1667 × 2058 | 51,067 bytes, 1007 × 1243 | 19,278 bytes, 536 × 662 |
| Newspaper page scan | 97,312 bytes, 515 × 778 | 50,970 bytes, 358 × 540 | 20,009 bytes, 248 × 374 |
| Screenshot (PNG) | 100,663 bytes, 842 × 1286 | 51,108 bytes, 542 × 828 | 19,467 bytes, 329 × 502 |
File size and picture size the tool produced (bytes counted with wc -c on the downloaded file).
With shrinking allowed, every one of the 16 targets was met. The tool reported 16 of 16 for our pictures; its own page reports 24 of 24 for its test set of four photos and six targets, where quality alone missed 12 of 24. We did not rerun that set, so that number is the tool page's own.

The KB trap: 1,000 or 1,024 bytes per KB
Look again at the table. Several results sit a little above 100,000 or 50,000 or 20,000 bytes, and every one of them is still under the tool's target. The tool counts 1 KB as 1,024 bytes, and says so in the panel: the exact target for 100 KB is 102,400 bytes. If the form means 100,000 bytes, you will see it reject a file of 100,517.
We checked that against all 16 shrink results, using each target times 1,000 as a stricter limit. Five of 16 fit that decimal limit. At the 100 KB row only the newspaper scan did (97,312 bytes); the landscape (101,046), the portrait (100,517) and the screenshot (100,663) did not.
The tool has a way around this. Its custom field takes any number, so asking for 97 KB gives an exact target of 99,328 bytes. The portrait photo at that setting came out at 97,975 bytes, under 100,000. We tried that on one picture only. When the form does not say which KB it means, assume the smaller limit and aim 2 or 3 KB under it.
| Picture | Bytes at the 100 KB target | Over 100,000 by | Fits 100,000? |
|---|---|---|---|
| Landscape photo | 101,046 | 1,046 | No |
| Portrait photo | 100,517 | 517 | No |
| Newspaper page scan | 97,312 | under the limit | Yes |
| Screenshot (PNG) | 100,663 | 663 | No |
The four 100 KB results against a limit of 100,000 bytes.
How do you reach a limit with ffmpeg, and check it in bytes?
If you would rather not use a web tool, you can run a short script that does the same job: it keeps the full width and tries to fit under the limit at the lowest allowed quality, then steps the width down 10% at a time until it fits, and finally picks the best quality that still fits at that width. The floor is a draft setting of ours (ffmpeg quality 12 on its 2 to 31 scale, where 2 is best), not a platform figure. Save the file to-kb.sh (published at /hub-media/reduce-image-to-kb-limit/to-kb.sh and listed in the sources) next to your picture; it needs bash, ffmpeg and ffprobe.
On our four pictures it reached 16 of 16 limits for 1,024-byte limits and 16 of 16 for decimal limits. For comparison, plain ffmpeg at its worst quality (ffmpeg -i photo.jpg -q:v 31 out.jpg, a test-only command) and the full original size left all four pictures over 100 KB: 451,007, 236,877, 216,078 and 108,291 bytes. The ffmpeg and tool routes pick different widths for the same limit: for the landscape at 100 KB the script stopped at 1554 × 1036 px (95,305 bytes) and the tool at 1260 × 840 px (101,046 bytes). We do not rank them.
You need three commands, and they were run as written on the portrait photo. The script printed 96,351 bytes at 1904 px wide for a 102,400-byte limit.
We also tried the script on bad input. A missing file and an empty file each stopped with a one-line message and a non-zero exit code, and so did a text file with Windows line breaks (exit 1, "ffprobe could not read a picture"). A file name with Cyrillic letters and an umlaut worked, a 300-byte limit was refused, and a limit that is not a number was refused. A picture already under the limit is not passed through: the script re-encodes it at the best quality and it can come out larger (a 4,501-byte JPEG became 5,119 bytes), so do not run it on a file that already fits. It also refuses a picture narrower than 16 px, and an odd width loses 1 px (1001 became 1000). All of it is in the commands log.
Count bytes with wc -c on macOS or Linux. On Windows, PowerShell prints the exact size with (Get-Item .\out.jpg).Length, and file Properties shows "Size" in bytes, not "Size on disk" (we did not run the Windows commands). A file manager that rounds to whole kilobytes can hide that you are 400 bytes over.
bash to-kb.sh photo.jpg 102400 out.jpg # shrink to at most 102,400 bytes
wc -c < out.jpg # count the bytes of the result
ffprobe -v error -show_entries stream=width,height -of csv=p=0 out.jpg # its size in pixelsWhat a text scan keeps at 100, 50 and 20 KB
Shrinking has a price: fewer pixels cannot show small details. We cannot rank the three files with a similarity score, since that score is only meaningful between pictures of equal size. So here are the three results of the newspaper scan at their actual pixels, side by side.
| Limit | Pixels | Bytes | What you can read |
|---|---|---|---|
| 100 KB | 515 × 778 | 97,312 | Large headlines clear, body text a faint grain |
| 50 KB | 358 × 540 | 50,970 | Headlines fine, body text a grey texture |
| 20 KB | 248 × 374 | 20,009 | Masthead and the biggest headlines only |
The last column is our own reading of the figure, not a measurement.
So for a scan of a document, decide first whether anyone has to read the small print. If they do, a 20 KB limit cannot hold it at this page size. Crop to the part that matters, or ask the form for a higher limit, before you shrink everything.

How we checked, and what this does not show
The landscape is "Lake Mountain Landscape" by Bonnie Moreland, the portrait is Arnold Genthe's photograph of Jack London (Library of Congress), and the newspaper is the front page of the Wilnaer Zeitung. All three are CC0 on Wikimedia Commons; the fourth picture is our own screenshot. The tool ran in headless Chromium; the result panel was read from the page and the downloaded files were measured with wc -c. The log has every figure.
What this does not show: we uploaded nothing, so we cannot promise that the website you are filling in accepts these files. Only JPEG output was tested. The tool puts transparent PNGs on a white background. The ffmpeg script drops transparency without painting a background: in our 64 × 64 test the hidden pixels showed their stored colour (red). We did not test photos that carry a rotation flag. Four pictures are a small sample, and a photo with less detail will fit more easily than our landscape.
| Picture | Source | Licence | Pixels |
|---|---|---|---|
| Landscape photo | Lake Mountain Landscape, Bonnie Moreland, Wikimedia Commons | CC0 | 5184 × 3456 |
| Portrait photo | Jack London, Arnold Genthe, Library of Congress via Wikimedia Commons | CC0 | 3175 × 3920 |
| Newspaper page scan | Wilnaer Zeitung front page, Wikimedia Commons | CC0 | 2120 × 3200 |
| Screenshot (PNG) | Our own koldflux.com/tools page | ours | 1440 × 2200 |
Do it in your browser
Free Koldflux tools, no account needed.
Shrink an image to an exact KB target (free, in your browser)Compress an image to 100 KB (same tool, 100 KB preset)Compress an image
Questions people ask
How do I reduce an image to 100 KB?
Use the Koldflux target-size tool with the 100 KB preset. Try it with the shrink box unticked to keep every pixel, and tick the box if the result is over the limit. With the box ticked it landed between 97,312 and 101,046 bytes on our four test pictures. Lowering quality alone failed for two of the four at 100 KB (the landscape and the newspaper scan).
Why will my photo not go under 50 KB when I lower the quality?
Quality only changes how hard the pixels are compressed. A 5184 × 3456 px photo was still 143,920 bytes at the lowest quality tried, so the picture also has to get smaller.
Is 100 KB 100,000 bytes or 102,400 bytes?
It depends on who wrote the limit. The tool counts 1,024 bytes per KB, so 100 KB is 102,400 bytes there. If the form means 100,000, aim a few KB lower, for example a custom 97 KB target.
Can I get an image under 20 KB and still read the text?
Not at full page size in our test. A newspaper page at 248 × 374 px kept only the masthead and the largest headlines. Crop to the part that must be read first.
How do I check how many bytes my file is?
Run wc -c < file.jpg in a terminal, which prints the exact byte count. Compare that number with the limit written in bytes.
Related
More guides on this topic
Sources and how we checked
- Koldflux target-size tool (our own tool, run November 24, 2026) (checked 2026-11-24)
- Koldflux test log: tool runs, ffmpeg runs, edge cases and controls (our measurement, November 24, 2026) (checked 2026-11-24)
- Commands log: each published command, the command as run, its exit code and edge cases (Koldflux) (checked 2026-11-24)
- to-kb.sh: shrink a picture to a byte limit with ffmpeg (Koldflux, shell script) (checked 2026-11-24)
- measure.sh: byte counts and similarity for the result files (Koldflux, shell script) (checked 2026-11-24)
- tool-run.cjs: drives the target-size tool in Chromium (Koldflux, Node.js with Playwright) (checked 2026-11-24)
- FFmpeg documentation: MJPEG encoder, the -q:v quality scale (checked 2026-11-24)
- NIST: prefixes for binary multiples (kibi, mebi) versus decimal kilo (checked 2026-11-24)
- Wikimedia Commons: Lake Mountain Landscape, by Bonnie Moreland, CC0 (test picture) (checked 2026-11-24)
- Wikimedia Commons: Portrait photograph of Jack London, by Arnold Genthe, CC0 (test picture) (checked 2026-11-24)
- Wikimedia Commons: Front page of newspaper Wilnaer Zeitung, April 1918, CC0 (test picture) (checked 2026-11-24)
We used three CC0 pictures from Wikimedia Commons (a 5184 × 3456 px landscape, a 3175 × 3920 px portrait and a 2120 × 3200 px newspaper scan) and one screenshot of koldflux.com/tools (1440 × 2200 px), on November 24, 2026. Each ran at 200, 100, 50 and 20 KB through the Koldflux target-size tool in headless Chromium with the shrink box ticked (16 runs) and unticked (16 runs), plus one custom 97 KB run, and through the to-kb.sh ffmpeg script (ffmpeg 6.1.1) at 1,024-byte and decimal limits (32 runs) and eleven edge cases. File sizes were counted with wc -c on the downloaded files. The similarity scores in the log were computed with ffmpeg ssim only between pictures of equal size; the page does not rely on them. The log and scripts are in the sources. The Commons file title of the newspaper says 12 April 1918, but the date printed on the page reads 16 February 1917, so we give no year.