Decrease image size in KB to a set limit
To reduce image size in KB, choose a photo, type a limit such as 100 KB and select Download image. The tool encodes WebP or JPEG at several quality levels, keeps the highest tested quality that fits and shows the measured file size. It runs in your browser, and your pixel dimensions stay the same unless you ask.
Files stay on your device
Compare the result
Preview both images, then choose what to keep.
No image selected.
Your result will appear here.
Actual target status and byte savings will appear after encoding.
- Actual file size
- Target file size
- Dimensions
- Quality used
- Original file size
No automatic downscaling. Dimensions change only when you enable resizing. PNG and WebP retain transparency; JPEG uses your selected background. PNG has no quality setting.
Preview images fit these panels; downloads use the reported dimensions. Each new run starts from the original decoded image.
How to reduce image size in KB
Select Choose image, or drag one image onto the box. The file name appears under the box, and the Original preview shows the picture, with its file size and its width and height below it. Type your limit into Target file size and pick a unit. The field starts at 200 KB, and the line below it gives the exact number of bytes.
Pick an Output format. WebP keeps transparent areas, JPEG fills them with a background color, and PNG uses lossless compression. Keep Minimum quality at 20 and Maximum quality at 90, then select Download image to prepare and save the file in one step.
The verdict reads Target achieved or Target not achieved. Below it you see the actual file size, the target, the dimensions, the quality used and the original file size. The new file has -target added to its name. To preview before saving, select Find a fit, then Download result.
- Choose the image to reduce
Select Choose image or drop one file onto the box. Check its name, original preview and dimensions.
- Set the byte limit
Enter Target file size and its unit. Pick an Output format and quality range. Enable Resize image only if you want fewer pixels.
- Save or compare the fit
Download image prepares and saves the file. To compare first, select Find a fit, check the measured bytes and preview, then select Download result.
How the tool finds the file size
The tool does not guess a size from a formula. It encodes the image, measures the file and tries again. The first try uses your Maximum quality. If that file is already under the limit, you get it after one encode.
If it is too large, the tool tries your Minimum quality. When that one fits, the search halves the range between the two until one quality step is left. It keeps the highest quality that fit. With the default range of 20 to 90, or with the full range of 0 to 100, this takes at most nine encodes, and the status line says how many were used.
Every file on offer was measured. File size usually grows with quality, but encoders do not follow that rule every time. A quality level that the search skipped could fit a little better. Each run starts again from the original decoded pixels, so trying a second limit does not stack losses.
KB, MB, KiB and MiB
The Size unit menu offers Bytes, KB, MB, KiB and MiB. KB and MB are decimal: 1 KB is 1,000 bytes and 1 MB is 1,000,000 bytes. KiB and MiB are binary: 1 KiB is 1,024 bytes and 1 MiB is 1,048,576 bytes.
The difference matters near a limit. A form that says 100 KB and counts 1,024 bytes per KB accepts up to 102,400 bytes, and a file at 101,000 bytes would pass there but fail a 100,000-byte check. If the site that sets your upload limit does not say which it uses, pick KB, because the smaller budget passes both checks.
The line under the field turns your entry into bytes, so a 2 MB limit reads as 2,000,000 bytes. You can type decimals, such as 0.5 MB, and a fraction of a byte is rounded down. The result list shows the actual size and the target side by side, both in bytes.
When the target is too small
A small limit such as 20 KB can be out of reach for a large photo, even at the lowest quality you allow. The tool then shows Target not achieved and offers the smaller of the files it made, so you can still see how close it came. The advice under the verdict tells you what to change.
You have three options. Lower Minimum quality to let the search go further. Try another Output format and compare the bytes each one reaches. Or tick Resize image (optional) and enter a Longest edge (pixels) value, such as 1200, to make the picture itself smaller.
Resizing is never automatic. It keeps the proportions and never enlarges an image that is already smaller than the edge you set. PNG has no quality setting, so its only size control is resizing. If your original already fits the limit, the result says so and Keep original saves it unchanged.
What the downloaded file contains
The download is a single still image in the format you picked. JPEG has no transparency, so transparent areas take the JPEG background color, which starts as white. WebP and PNG keep transparent areas. A phone photo is turned upright from its orientation tag before encoding, so it downloads the right way up.
EXIF data, GPS location and other metadata from the source are not copied to the new file. An animated image gives the one still frame shown in the Original preview. Colors are written as 8-bit sRGB, so HDR, wide-gamut or high-bit-depth images can change in color.
A re-encoded file is not always smaller than the source. An image that was already compressed well, or a PNG made from a photo, can come out larger. The summary then says how much larger the new file is than the source file, and Keep original stays on the page. Check both previews before you download.
Limits
This image size reducer works on one image at a time. If you drop several files at once, none of them opens and the page asks you to choose one. It has no batch mode; Bulk compress images handles many files.
The target sets the maximum size you want. If no tested result fits, the tool reports the miss and offers the smallest tested file. It never pads a file to reach a size. It does not change pixel dimensions unless you turn on resizing, and it does not crop. PNG output is encoded once without a quality setting, so a PNG that misses the limit needs a smaller longest edge or another format.
The tool sets no file size, pixel or time limit of its own. A very large image can exceed what your browser's canvas or memory allows, and the page then shows an error instead of shrinking the picture on its own. An empty, damaged or unsupported file also shows an error. Cancel stops a search and keeps your image and settings, and Reset clears everything.
Questions
How do I reduce a photo to 100 KB?
Choose the photo, type 100 in Target file size and keep the unit at KB. Pick WebP or JPEG, then select Find a fit. The tool tests quality levels and reports the result in bytes. If it shows Target not achieved, lower Minimum quality or turn on Resize image (optional) with a smaller Longest edge (pixels).
How can I get an image under 20 KB or 10 KB?
Very small limits usually need fewer pixels. Tick Resize image (optional), set Longest edge (pixels) to a value such as 800, and select Find a fit again. Lowering Minimum quality helps as well. The Result preview shows how the smaller file looks, so you can judge whether text and faces are still clear before you download it.
Can I resize an image in KB without changing its pixel dimensions?
Yes. The tool leaves the width and height alone unless you tick Resize image (optional). It lowers the file size by changing the quality level of the WebP or JPEG output. The Dimensions entry in the result confirms the pixel size, so you can check that the photo still has the width and height you started with.
Can this tool make an image bigger in KB?
Re-encoding can produce a larger file, and the summary says by how much. Keep original lets you save the unchanged source. This tool aims to stay under your limit and never pads a file to make it larger. If no tested result fits, it reports Target not achieved.
Does my image leave this device?
No. Opening the image, encoding each quality level and measuring the files all happen in your browser on this device. The tool does not upload, log or store the image or its file name. Reset releases the image, and leaving the page releases it too.
Related tools
- Compress an image with one quality setting: compare the size and quality before you download.
- Resize an image to new pixel dimensions: give your picture the width and height you need.
- Bulk compress images: compress a batch and download the files or a ZIP.
- Check image dimensions and exact file size: see the pixels, format and bytes of a file.
- Convert between KB, MB, KiB and MiB: turn an upload limit into bytes in either unit system.