Compress an image to a target size in KB
Compress a photo to 100 KB, 200 KB, 500 KB or any size you choose, or set the quality yourself. Optional maximum size, several images at once and ZIP download.
Lower numbers give smaller files and lower quality. 70 to 85 is a common choice.
PNG is lossless, so it cannot be made smaller by lowering quality, and saving it again in the browser can even make it larger. To reduce the size, convert to JPEG or WebP, or set a maximum size to reduce the pixels.
You can choose several images at once (up to 20).
Compressing…
The result is larger than the original. Keep the original, or try a lower quality, another format or a maximum size.
Files you select are processed in your browser on this device. They are never uploaded to or stored on our server. For how analytics are handled, see the Privacy Policy.
How to use
- Choose "Target size (KB)" or "Set quality". Pick a target such as 100 KB or 200 KB, or a quality from 10 to 100.
- Choose the output format (JPEG or WebP, and PNG in quality mode) and, if you like, a maximum size for the longer edge.
- Choose images with "Choose an image" (up to 20 at once). They are compressed automatically, and the before and after sizes and savings are shown.
- For one image press "Save image". For several, save them one by one or press "Save all as ZIP".
Supported formats and limits
- Supported formats: JPEG, PNG and WebP. HEIC is not supported. Up to 20 images and 200 MB in total at once.
- 1 KB is counted as 1,000 bytes, so "200 KB or less" means 200,000 bytes or less. The result also meets the target if 1 KB is read as 1,024 bytes.
- In target mode, quality is lowered first; if the file is still too large, the pixel size is reduced. Turn off the checkbox to keep the pixel size. If the target cannot be reached, the smallest size reached is shown.
- PNG is lossless, so it cannot be made smaller by lowering quality, and saving it again as PNG can even make it larger. To shrink it, convert to JPEG or WebP, or set a maximum size.
- Transparent areas become white in JPEG. WebP is offered only if your browser can encode it.
- If the result is larger than the original, the tool tells you. Camera metadata (Exif) is not kept.
How it works
Target size: if the image fits at the highest quality (92), it is saved as is. Otherwise the quality is binary-searched between 40 and 92 and the highest quality that fits is used. If even quality 40 is too large, the scale is estimated from the fact that file size is roughly proportional to the pixel count, and the same steps are repeated at the smaller size.
Set quality: the image is encoded once at the chosen quality (10 to 100). A maximum size first scales the image down so the longer edge fits (never up).
Several images are processed one after another, and each decoded image is released right away to save memory. The ZIP file is stored without extra compression, and duplicate names get " (2)" and so on.
FAQ
I compressed to 200 KB, but my computer shows "196 KB".
Some systems display 1 KB as 1,024 bytes. This tool counts 1 KB as 1,000 bytes, so the file is under the target either way.
The image looks rough after compression.
When the image is large compared with the target, the quality has to drop a lot. Setting a maximum size to reduce the pixels first often gives a cleaner result.
Why can I not lower the quality of a PNG?
PNG stores images without loss, so it has no quality setting. For photos, converting to JPEG or WebP makes the file much smaller.
Is my image uploaded to a server?
No. Compression happens entirely in the browser on your device. Nothing is sent to our server.
Related guides
- How to reduce an image to under 200 KBMake a photo fit an upload limit such as 200 KB: compress to a target size, resize when needed, check the result and fix files that stay too large.
- JPG vs PNG vs WebP: which image format to useHow JPG, PNG and WebP differ in compression, transparency and compatibility, which one to pick for photos, screenshots and logos, and how to convert.
Related tools
Last updated: