Free online tool

Upload a file

Drop your file hereTap to choose a file

or click to browse, or paste from the clipboard

← Back to Blog

How to Batch Compress JPG, PNG and WebP Images

To compress several images together, open Bulk Image Compressor and add the files. Each image starts compressing straight away in your browser, keeping its own format or converting to WebP, JPG or PNG. When the totals line shows that every image is done, download them one by one or all together as a ZIP.

This suits a folder of product photos that should all be smaller, a set of screenshots for documentation, or a batch of pictures that must each fit an upload limit. The tool measures every result. It does not promise that every file will shrink: an image that is already well optimized can come out larger, and the page shows when that happens.

Add a batch of images

Choose files, drop them on the page, or paste a screenshot with Ctrl+V or ⌘V. Up to 200 images fit in one batch, each up to 50 MB, 60 megapixels and 16,384 pixels on a side. JPG, PNG, WebP, GIF, AVIF, BMP and SVG files work in current browsers. Animated GIF and WebP files become still images of their first frame.

The images are compressed on your own device, several at a time in background workers, so a long batch does not freeze the page and nothing waits in an upload queue. How fast it goes depends on your computer and on the size of the photos.

Each output keeps its original name with the new extension, so beach.png converted to WebP becomes beach.webp. If two files would end up with the same name in the ZIP, the second gets a number, such as beach (2).webp.

Choose an output format

Same as original keeps JPG as JPG, PNG as PNG and WebP as WebP. Formats a browser cannot write are changed: GIF, BMP and SVG become PNG, and AVIF and HEIC become JPG.

JPG has no transparency, so transparent areas are filled with the background color you choose, white by default. WebP and PNG keep transparency, which matters for logos, icons and cutouts.

PNG needs a note of its own. Browsers can only save full-color PNG files, which are often large, so the compressor includes its own PNG encoder. By default it reduces each PNG to a palette of up to 256 colors, chosen with median cut and blended with dithering, the approach used by pngquant and TinyPNG. Screenshots and graphics usually lose more than half their size with no visible change. Choose All colors for lossless PNGs, or 128 or 64 colors for smaller files still.

Safari cannot write WebP files. When you choose WebP output in Safari or on an iPhone or iPad, each image is sent to our server as soon as you add it, with a notice as the first upload starts, and the server compresses it and sends it back. Uploads are deleted about a minute after compressing and results about ten minutes later. That route accepts JPG, PNG, WebP, AVIF and TIFF files up to 10 MB. JPG and PNG output always stay on your device.

Set the quality and maximum dimensions

Quality runs from 10 to 100, with 80 as the default, and applies to JPG and WebP. Higher numbers keep more detail and make larger files. A higher setting cannot bring back detail a source file has already lost.

Max width and Max height are optional. When set, each larger image is scaled down to fit inside both while keeping its proportions; smaller images keep their size, and nothing is cropped. A 4000 × 3000 photo fitted inside 1600 × 1600 becomes 1600 × 1200, a portrait photo with the opposite shape becomes 1200 × 1600, and a 600 × 400 image stays as it is. Phone photos are turned upright using their orientation tag first.

Fit every image under a size limit

Choose 50 KB, 100 KB, 200 KB, 500 KB or 1 MB, or a custom size in KB or MB. The tool counts 1 KB as 1,000 bytes, so a 100 KB limit means at most 100,000 bytes per image. A file within that limit also passes a form that counts 1 KB as 1,024 bytes.

For JPG and WebP, the compressor first tries your chosen quality. If the file is too big, it searches for the highest quality between 50 and your setting that fits. If even quality 50 is too big, it reduces the dimensions by the square root of how far over the limit the file is and searches again; after two rounds the lowest quality it will use drops to 25. For PNG, it tries fewer colors before reducing the dimensions.

Every image that fits is marked with a check, such as "under 100 KB ✓". An image that still does not fit at 16 pixels on its shorter side is reported with the smallest size reached and left out of the ZIP, while the others download as normal. A larger limit, smaller dimensions or WebP output usually solves it.

Check the results before you download

Each row shows the old and new size, how much smaller or larger the file became, its dimensions, the format and the quality or palette used, and whether it was resized. The totals line adds up the whole batch.

Keep the original when it is already smaller is ticked by default. With it, an image is left untouched whenever a new copy in the same format and size would be larger, and the row says "original kept". That original keeps its metadata, such as camera details and location. Every newly written file carries no metadata, so untick the option if you want a fresh copy of everything.

Use Compare on any row and drag the divider across the picture to check small text, edges and gradients at full size. Meeting a size limit is a measurement, not a judgement that the picture still looks right.

Download and next steps

With one finished image, the main button downloads it directly. With several, it builds compressed-images.zip in the browser. The images inside are stored as they are, because compressing them again would gain almost nothing. Results disappear when you leave the page, so download them first. Only your settings are remembered on the device.

For a single photo with a strict limit, Compress Image to 100KB offers targets from 20 KB to 2 MB. WebP Compressor is set up for WebP files, Image Resizer sets exact pixel sizes, and Image Converter changes the format of one file at a time.