Maaz Zindani

Loading the index…

↑↓ move↵ openesc close3993 pages

Free tool · Image tools

Resize image to KB

Type the size you need, such as 50 KB, and get a photo at or under it. The tool says exactly what it did to get there.

  • Free
  • No sign-up
  • Runs in your browser

By Maaz Zindani · Updated

JPG, PNG or WebP. You can also drop a file on this box. It stays on your device.

Save as
Count 1 KB as
Example result
Example: a 4,000 x 3,000 px photo
100 KB or lessThe picture is saved at lower quality first. If that is not enough, its pixels are reduced until the file fits.
  • JPG
  • Example: choose a photo to see yours
Target
100 KB
Original
4,000 x 3,000 px
Result
shown for your photo
Quality
shown for your photo

How to use the Resize Image to KB

  1. Choose a photo under Photo. The tool starts working at once.
  2. Type the Target size in KB or tap 20 KB, 50 KB, 100 KB, 200 KB or 500 KB.
  3. Choose JPG or WebP (smaller) under Save as, and tick Keep the pixel size (only lower the quality) if the form needs the original width and height.
  4. Read the size reached, quality and pixel size in the result card, then press Download.

How do I resize an image to 50 KB or 100 KB?

File size depends on two things: how many pixels the picture has, and how much detail is kept for each one. This tool changes them in that order of preference. First it saves the picture at lower and lower quality and finds, by bisection, the highest quality whose file still fits. It starts at 60% and, if that fits, tries 95%. Each trial is a real save, so the size it reports is the size of the file you download, not an estimate. If 60% is still too big, it scales the width and height down together, then raises the quality again as far as the target allows.

Worked example: a 1,200 x 800 px test photo of 359.3 KB (368 KB on the 1,000-byte count). With a 50 KB target the page returned 49.25 KB, at 741 x 494 px (62%) and quality 76%. With 100 KB it returned 97.64 KB. With a 1,000 KB target it said the file was already under the target and left it exactly as it is: 368 KB.

The result card shows what happened. Quality gives the setting used. Result gives the new pixel size and its share of the original width and height. The size is always at or just under the target, never over it, unless the card says Closest.

What do 20, 50, 100 and 200 KB look like for one photo?

The table runs the preset targets (20, 50, 100, 200 KB) on the same photo, once with pixels allowed to shrink and once with Keep the pixel size ticked. Every figure was read from the result card.

1,200 x 800 px test photo, JPG output, 1 KB counted as 1,000 bytes
TargetSize reachedPixelsQualitySize, pixels keptQuality, pixels kept
20 KB19.65 KB469 x 313 px (39%)81%18.4 KB15%
50 KB49.25 KB741 x 494 px (62%)76%48.6 KB28%
100 KB97.64 KB1,049 x 699 px (87%)72%98.24 KB55%
200 KB194 KB1,200 x 800 px, unchanged79%194 KB79%

Notice how quality and pixels trade off. At 50 KB, letting the pixels shrink to 62% of the width and height kept quality at 76%. Keeping all 1,200 x 800 pixels forced quality down to 28%. Both files are under 50 KB, but they spend the bytes differently: one has fewer pixels at a higher quality, the other keeps every pixel at a much lower quality, which usually shows as blocky detail. Which is better depends on what the form needs. If it asks for a minimum width and height, keep the pixels. If it only asks for a file size, let them shrink.

At 200 KB the photo needed no pixel change at all, and both settings gave the same file. Your photo will land on different numbers: more detail or more pixels needs more bytes. The result card gives your own figures.

Is 1 KB 1,000 or 1,024 bytes?

Both are used. Some programs count a KB as 1,024 bytes and others as 1,000 bytes, and web forms differ. The choice Count 1 KB as sets which one the tool uses. A 50 KB target is 50,000 bytes on the 1,000 count and 51,200 bytes on the 1,024 count, a gap of 2.4%. A file of 51,200 bytes is exactly 50 KB on the 1,024 count but 51.2 KB on the 1,000 count, so it passes one 50 KB limit and fails the other.

If you do not know which your form uses, choose 1,000 bytes: it gives the smaller file, which fits under both limits. The same photo with a 50 KB target gave 49.38 KB (the 1,024 count, at 750 x 500 px) against 49.25 KB (the 1,000 count, at 741 x 494 px), so the difference in the picture is small.

Why is my file still bigger than the target, and should I use JPG or WebP?

There are two cases. One is Keep the pixel size with a target too small for the picture. The tool then only lowers quality, down to 5%. For a 5 KB target on the test photo it showed Closest: 8.2 KB at quality 5%, and said it could not reach 5 KB at the lowest quality. Unticking the box gave 4.93 KB at 234 x 156 px. The other case is a target so small that the picture would have to shrink below 32 pixels on its long side, which is not useful. In both cases the tool shows the closest file it could make and says why.

A PNG has no quality setting to lower, because PNG is lossless, so this tool always saves a JPG or WebP: a PNG you choose is converted, and transparent areas are filled with white in a JPG. WebP files are usually smaller at the same quality. At 50 KB the test photo came out as WebP at 604 x 403 px and quality 87%, against 741 x 494 px and 76% as JPG. Google's comparison of lossy WebP and JPEG found WebP files 25% to 34% smaller at the same measured quality, using an encoder from 2011. Not every form or program accepts WebP, so use JPG when in doubt.

To change the file type without a size target, use the WebP to JPG or JPG to PNG tool. To cut the picture down first, use the crop image tool: fewer pixels means fewer bytes before any compression starts.

Use it with

Questions

How do I reduce a photo to exactly 50 KB?

Type 50 as the target. The tool finds the highest quality whose file is 50 KB or smaller, and reduces the pixels if quality alone is not enough. A 1,200 x 800 px test photo came out at 49.25 KB.

Will the file be exactly the target size?

It will be at or just under it. The quality is searched in small steps, so the result is usually within a few percent below the target. A picture that is already under the target is left as it is.

What is the difference between 1,024 and 1,000 bytes per KB?

Some programs count a KB as 1,024 bytes and others as 1,000. A 50 KB limit is 50,000 or 51,200 bytes, a gap of 2.4%. If you do not know which your form uses, choose 1,000 bytes: the file is then the smaller of the two.

Can I keep the original width and height?

Yes. Tick Keep the pixel size. The tool then only lowers the quality, and says so if the target cannot be reached that way. For the test photo, 50 KB was reached at quality 28% with all pixels kept.

Does it work on a PNG?

Yes, but the result is a JPG or WebP, because PNG has no quality setting to lower. Transparent areas become white in a JPG.

Is my photo uploaded?

No. Every trial save runs in your browser, so the photo stays on your device.

How this page was made: the tool's results are computed in your browser by the code on this page, using the sources listed above; the explanations were drafted with AI help and checked against the tool's own output.