Skip to content

How to compress images without losing quality

Published 2026-09-02

Lossless and lossy compression

There are two ways to make an image file smaller. Lossless compression stores the same pixels more efficiently, so nothing changes at all. Lossy compression throws away detail your eyes are unlikely to notice, which saves much more space. In practice, compressing without losing quality means no loss you can see. A good compressor gets there by treating each format in its own way.

What Compress image does with each format

JPG photos are saved again with MozJPEG, an efficient JPG encoder, as progressive JPGs that start to show while they load. This is lossy, but the Recommended setting uses a well-balanced quality, so photos keep looking sharp.

PNG files are optimized losslessly with OxiPNG, so every pixel stays exactly as it was. Savings are often smaller than for JPG, because nothing is thrown away. SVG files lose editor clutter, comments and code they don't need, and the drawing looks the same. GIFs are optimized with gifsicle and keep every frame of their animation. That includes a light lossy step, which trades a little detail for a smaller file. WEBP files are saved again as WEBP at a balanced quality.

Some files are already as small as they can get. If the compressed version would be the same size or bigger, you get your original file back unchanged, marked Already optimised. With Recommended and Smallest that looks the same, a file never comes back bigger than it went in.

Choose an option

Recommended is the default. It gives a good balance of file size and quality, quickly, and suits most images.

Smallest that looks the same takes more care with each JPG and WEBP. The tool tries several qualities and checks each one against the original with a perceptual test, then keeps the smallest file that still looks the same. It is slower, and a detailed photo can come out larger than with Recommended, because it gets the quality it needs rather than a fixed one.

Exact file size is for upload forms with a limit. Type a maximum in KB, or pick 20 KB, 50 KB, 100 KB, 200 KB, 500 KB or 1 MB. Images are saved as JPG at the best quality that fits, and WEBP stays WEBP. If even the lowest quality is too big, the image is made a little smaller. A JPG that is already under the limit is left exactly as it is. JPG can't store transparency, so any see-through parts of a PNG turn white.

How to compress images

1. Open Compress image and click Select images, or drop your files onto the page. You can add up to 30 images at a time, up to 200 MB in total.

2. Choose Recommended, Smallest that looks the same or Exact file size.

3. Click Compress images. Each result shows how much smaller it got.

4. Click Download compressed images to save your files.

Tips for smaller files that still look sharp

Resize first. The number of pixels drives file size more than anything else. A 4000 × 3000 phone photo has 12 million pixels, and a web page or email rarely needs that many. Use Resize image to set a new width and height, or scale by percentage, then compress the result.

Pick the right format. JPG suits photos, and PNG suits screenshots, logos and graphics with sharp edges or transparency. A photo saved as PNG is often several times larger than the same photo as JPG, and Convert to JPG fixes that. For websites, Convert to WEBP makes small files that most browsers show without trouble.

Compress once, from the original. Every lossy save loses a little more detail, so compressing the same JPG again and again slowly wears it down. Keep your originals, and compress a fresh copy when you need a different size.

Hidden data goes too. Compressed JPG, PNG and WEBP files are saved without metadata such as camera details and GPS location. That saves a few kilobytes and keeps where a photo was taken private. A file returned as Already optimised keeps its metadata, and Photo privacy check can show you what is in it and remove it.

Everything runs in your browser. Your images are compressed on your device and are not uploaded to a server, so even a big batch starts right away.

Compress images now

← Back to the blog