Compress
Compress Image
Shrink photos and graphics to a file size you choose, such as 50 KB for a form or 1 MB for an email, or set the quality yourself. Everything is compressed in your browser, so your images are never uploaded.
Drop images here
or paste with Ctrl+V
- JPG
- PNG
- WebP
- AVIF
- HEIC
- GIF
- BMP
- SVG
Processed on your device. Nothing is uploaded.
Settings for all images
How small?
Choose a smart balance, a file size to fit, or an exact quality.
Good quality, much smaller file.
Each image keeps its format. HEIC becomes JPG; GIF, BMP and SVG become PNG.
Also limit size to (optional)
Keeps the aspect ratio and never enlarges. Leave empty for no limit.
Applies to all files. Use a file's settings button to give it its own.
Loading settings…
On this page
How to use the Compress Image
- Choose files, drop up to 50 images on the page, or paste one with Ctrl+V (⌘V on a Mac).
- In the How small? card, keep Recommended, pick Target file size and a chip such as 100 KB, or choose Quality and set it yourself.
- Check the before and after sizes in each row. If a file missed its target, a tip offers to allow smaller dimensions or switch to WebP.
- Select Download, or Download all (ZIP) for a batch.
Choose how small it needs to be
The How small? card has three modes, and the right one depends on whether you have a limit to meet.
Recommended is the quick option. It aims for good quality and a much smaller file, with no numbers to pick.
Target file size is for upload forms with a hard cap. Choose a chip: 20 KB, 50 KB, 100 KB, 200 KB, 500 KB, 1 MB or 2 MB. Or choose Custom and type your own number in KB or MB. Here 1 KB is 1,000 bytes, so a file under 50 KB is also under a limit that counts 1 KB as 1,024 bytes.
Quality is for when you care about how it looks more than how big it is. Pick High, Balanced or Small, or drag the 1 to 100 slider for the output format. Higher keeps more detail, and lower makes smaller files.
Each row shows the original size next to the new one, and a batch gets a summary line with the total saved.
What happens when a target is hard to reach
To fit a target size, the tool lowers the quality first. If that isn't enough, it makes the picture smaller, but it keeps the longer side at least 640 px by default so a photo doesn't turn into a thumbnail.
When a file still misses its target, a tip appears with one-click fixes:
- Allow smaller dimensions lets the tool shrink the picture below 640 px on its long side. Choose it when the limit matters more than the size.
- Convert to WebP for a smaller file re-saves a JPG or PNG as WebP, which usually makes a smaller file at the same look.
Compression never makes a file bigger. If an image is already as small as it can reasonably be, the row says Already optimized, original kept, and you can download it unchanged.
You can also cap the pixel size with Also limit size to under the output settings. Enter a maximum width, a maximum height or both. The picture keeps its shape and is never enlarged. If you want an exact size instead of a limit, use the Image Resizer.
JPG, WebP, AVIF and PNG behave differently
Output format starts on Original, so each image keeps its format. HEIC becomes JPG, and GIF, BMP and SVG become PNG. You can also choose JPG, WebP, AVIF or PNG for the whole batch.
JPG, WebP and AVIF are lossy, so they shrink by throwing away detail you are unlikely to notice. PNG keeps every pixel, so it has no quality slider. For PNG files you get two choices under PNG files:
- Lossless optimization keeps the same pixels and packs them more tightly.
- Smaller file, fewer colors limits the picture to as many as 256 colors. Use it on logos, graphics and screenshots. Photos may show visible bands.
A photo saved as PNG is usually far larger than the same photo as JPG. If a PNG photo is the problem, PNG to JPG can cut it down a lot, and it lets you choose a background color for any transparent areas. For adjusting many formats at once, try the Image Converter.
Open the settings button on a row to give one image its own target or quality without changing the rest.
Frequently asked questions
How do I compress an image to 50 KB?
Choose Target file size, select the 50 KB chip, and add your image. The tool lowers the quality until the file is under 50 KB, then shrinks the dimensions if it has to. If it still misses, use the tip to allow smaller dimensions or convert the picture to WebP.
How do I reduce the size of a photo without losing quality?
Use Recommended, or the Balanced quality preset. For most photos these look the same to the eye while the file gets much smaller. No lossy format is truly lossless, though, so a very small target will cost some detail. PNG with Lossless optimization changes the file size but not a single pixel.
How many images can I compress at once?
You can add up to 50 images at a time. All of them use the same settings, and Download all (ZIP) saves them together. If you add more than 50, the extra images are skipped and a message tells you how many were not added.
Is 1 KB 1,000 or 1,024 bytes?
Here 1 KB is 1,000 bytes and 1 MB is 1,000,000 bytes. Some sites count 1,024 bytes instead. A file under 50 KB by our count is also under 50 KB by theirs, so it passes either way. The Target file size card shows the same note next to the chips.
Why is my compressed file not as small as I asked for?
The tool keeps the longer side at least 640 px unless you allow smaller dimensions, so a very low target can stop short. Turn on Allow smaller dimensions or switch the output to WebP, and apply again. Some images are already as small as they can get, and those are kept as they are.
Are my images uploaded when I compress them?
No. Compression happens in your browser, on your device, and your images are never uploaded. There is no account, no watermark and nothing to install. The work stays in a background process in the page, so the page keeps responding while it runs.
Related tools
- Image ResizerResize by pixels, percent or inches, with social media presets.
- Image ConverterConvert to JPG, PNG, WebP or AVIF, including HEIC and SVG files.
- PNG to JPGConvert PNG images to JPG.
- WebP to JPGConvert WebP images to JPG.
- Crop ImageCut an image down to the part you want, or crop a circle.
- HEIC to JPGConvert iPhone HEIC photos to JPG.