Image Compressor

Compress one image, upload many at once, or drop the ZIP of photos that iCloud or Google Photos downloads. Adjust quality, or set a target size in KB. Compare before and after, choose your output format, and download files individually or as a single ZIP. Everything runs in your browser — your images never leave your device.

Drag & drop files here, or

JPG PNG WebP GIF BMP TIFF AVIF ZIP Up to 50 files or a ZIP • Max 50MB each • Processed in browser • Never uploaded

Runs in your browser

Target Size Mode

Need your image under 200KB for an email attachment or form upload? Enter the target size and the tool automatically finds the best quality that fits within your limit.

Before & After

See the exact file size reduction — original size, compressed size, bytes saved, and percentage reduction. Make informed decisions about the quality-size tradeoff.

100% Private

Your image never leaves your device. All compression happens locally in the browser using the Canvas API. No server upload, no storage, no tracking.

Advertisement

How it works

How image compression works

Lossy image compression reduces file size by discarding visual information that the human eye is least likely to notice. JPEG and WebP encoders divide the image into blocks, transform them into frequency data, and quantize high-frequency detail away. Lower quality settings discard more aggressively, producing smaller files but introducing visible artifacts — blocky edges, color banding, and smearing around text. This image compressor online tool uses the browser's built-in Canvas encoder, which implements the same algorithms used by professional image editors. To analyze how compression affects your image at the pixel level, try the ELA Scanner or JPEG Ghost Scanner.

Batch compress & download as ZIP

Drop or select up to 50 images and the tool processes them all with the same quality, target size, and format settings. Each file is compressed sequentially in your browser, with a live progress row showing the original size, compressed size, and percentage saved per image. When everything finishes you get a one-click ZIP of every compressed file, plus individual download links if you only want some of them. Because compression runs locally — even in batch mode — none of your images is ever uploaded to a server, and the page works on slow connections or offline once loaded. For batch resizing alongside compression, pair this with the Image Resizer.

Compress to a target file size

Many platforms enforce file size limits — email attachments, form uploads, social media profile pictures, government portals. Instead of guessing quality levels, the target size mode automatically finds the highest quality that fits within your limit. It uses a binary search algorithm, testing up to 12 quality levels in under a second. In batch mode the same target is applied independently to every image, so a folder of 30 photos can all end up under 200KB in one click. If the target is unreachable even at minimum quality, the tool suggests combining compression with resizing via the Image Resizer — reducing pixel dimensions before compressing is the most effective way to hit very small targets without destroying visual quality.

JPEG vs WebP vs PNG

JPEG is best for photographs — it achieves high compression ratios on natural images but does not support transparency and introduces artifacts at low quality. WebP typically produces 25–35% smaller files than JPEG at the same visual quality and supports transparency, making it ideal for web use. AVIF pushes compression further still — often 30–50% smaller than JPEG — but browser-side AVIF encoding cannot be relied on: every browser we measured returned a PNG when asked for AVIF, so the result is PNG-sized rather than smaller. The tool flags the substitution when it happens. PNG is lossless — it preserves every pixel exactly but produces much larger files, so it is best for graphics, icons, and screenshots with sharp edges. This photo compressor lets you switch formats and compare the results. To inspect compression artifacts forensically, use the Quality Analyzer or examine the JPEG Structure of the output.

Privacy and metadata

Compressing an image through the Canvas API strips all embedded EXIF metadata — GPS coordinates, camera serial numbers, timestamps, and software history are removed from the output. This makes compression a side-effect privacy tool, and it applies to every file in a batch. If you want to verify what metadata exists before or after compressing, run the file through the EXIF Checker. For deliberate metadata removal without quality changes, use the EXIF Remover. Explore all 161 image tools.

This bulk image compressor runs entirely in your browser — whether you compress one image or fifty in a batch, no image data is ever sent to a server. The Canvas API re-encodes each file at your chosen quality level, results stream into a queue as they finish, and you can grab everything as a single ZIP or pick files individually.

Need to get under a size limit? See our guide to reduce an image to 1MB. Read our image compression guide for tips, examples, and best practices.

For specific use cases, see our step-by-step guides: Reduce Image Size to 1MB.

Frequently Asked Questions

Can I compress multiple images at once?

Yes. Drop or select up to 50 images at the same time and the tool switches to batch mode automatically. Every image is compressed sequentially with the quality, target size, and format you choose — a live per-file row shows the original size, the compressed size, and the percentage saved as each one finishes. You can then download all of them as a single ZIP file or pick individual results.

Can I download all compressed images as a ZIP?

Yes. When you compress two or more images, a "Download All (ZIP)" button appears alongside the per-file download links. The ZIP is assembled in your browser using JSZip and the files inside follow a "compressed_<originalname>.<ext>" naming pattern so you can spot which is which. Nothing is uploaded to any server — the ZIP is generated locally and never leaves your device.

Can I compress the ZIP of photos that iCloud or Google Photos downloads?

Yes. Drop the .zip itself – there is no need to unzip it first. The compressor opens it in your browser and adds the JPG, PNG, WebP, GIF, BMP, TIFF, AVIF and HEIC photos from every folder to the batch, up to 50 photos together with any loose files. Folder names become part of the file name, so two photos with the same name never overwrite each other. Anything it leaves out is listed by name with the reason: RAW/DNG files, other file types, a ZIP inside the ZIP, or a file that unpacks larger than it claims. Mac system files (__MACOSX, .DS_Store) are ignored. HEIC photos compress only in browsers that can open HEIC, such as Safari – elsewhere, convert them with the HEIC Converter, which takes the same ZIP. Password-protected ZIPs cannot be opened – unzip those with your password first.

How much can I reduce my image file size?

It depends on the image content and format. Photographs typically compress well — a 5MB JPEG can often be reduced to under 500KB at 70-80% quality with minimal visible difference. Graphics with solid colors compress even more. WebP format generally produces 25-35% smaller files than JPEG at the same visual quality. The tool shows the exact savings after each compression, both per file and as a batch total.

What is the target size mode?

Target size mode lets you specify a maximum file size in KB. The tool automatically finds the highest quality setting that keeps the output within your limit, using a binary search algorithm that tests up to 12 quality levels in under a second. In batch mode the same target is applied independently to every file in the queue. This is useful for email attachments, form uploads, and platforms with strict file size limits. It works with JPEG and WebP only — PNG is lossless and cannot target a specific size.

Does compression reduce image quality?

Yes, lossy compression (JPEG and WebP) trades visual quality for smaller file size. At quality 80-90%, the difference is usually invisible to the eye. Below 50%, artifacts become noticeable — blocky edges, color banding, and smearing around text. PNG compression is lossless and preserves exact pixel data, but produces larger files. The before/after comparison helps you find the right balance.

Does this tool upload my images to a server?

No. All compression happens locally in your browser using the HTML5 Canvas API — this is true for single images and for batches. Each image is read into browser memory, re-encoded at the chosen quality level, and the result is generated as a downloadable file. The optional ZIP is also assembled locally. Nothing is ever sent to any server, and the tool works offline once the page is loaded.

Which format should I choose?

JPEG is the best choice for photographs and complex images — it is universally supported and compresses well. WebP produces smaller files than JPEG at the same quality and supports transparency, but some older software may not open it. AVIF compresses even further than WebP and supports transparency, but producing one in a browser is a different question: in our own measurements the browser answered an AVIF request with a PNG, at PNG size. The tool warns you when the format was substituted. PNG is lossless and ideal for graphics, screenshots, and images with text or sharp edges, but creates much larger files. If file size is your priority, try WebP first.

Does compression remove EXIF metadata?

Yes. The Canvas API re-renders the image from pixel data, which strips all embedded metadata including camera information, GPS coordinates, timestamps, and copyright fields. This applies to every image in a batch as well. If you need to check what metadata exists before compressing, use the EXIF Checker. If preserving metadata is important, use dedicated photo editing software that supports metadata-preserving export.