Image Compressor

Make JPG, PNG and WebP images smaller without visible quality loss. Smart mode checks every result against your original, or pick a target size in KB.

Image Compressor

or drop them here, or paste with Ctrl + V

Files stay on this device. Nothing is uploaded.

How to compress an image

  1. Add your images to the box above. JPG, PNG, WebP and AVIF keep their format; other formats are saved as JPG, or PNG if they have a transparent background.
  2. Leave Smart on, or choose Custom to set the quality yourself, or Target size to stay under a limit in KB.
  3. Press Compress, then Compare to check the result against your original, side by side and at full size. The original files are not changed.

How Smart compression protects quality

Most compressors use one quality setting for every picture. That is too much for some photos and not enough for others. Smart mode tries several settings on each image and measures how closely each result matches the original, using the same kind of similarity score image scientists use. It keeps the smallest file that still matches closely enough that, in my side-by-side tests at 100% zoom, nobody could tell them apart. Every result shows its score, so you are never guessing.

JPGs are saved with MozJPEG, an encoder made by Mozilla that produces files about 20% smaller than ordinary JPEG at the same quality. PNG screenshots and graphics are reduced to an optimised palette of up to 256 colours; if that would cause visible banding, the PNG is optimised without changing a single pixel instead. Compressed files also leave out hidden data such as the GPS location in phone photos, and photos stored sideways are turned the right way up.

What to expect

In my tests, 4K photos straight from a camera or wallpaper pack came out 46 to 50% smaller with no visible change, PNG graphics 60 to 73% smaller, and an already heavily compressed JPG 14% smaller, because there was little left to remove. If a picture can't be made smaller without spoiling it, you get your original back, untouched, and are told so.

Which setting should I use?

Use Smart for almost everything. For an upload form with a size limit, such as job applications, exam or visa portals that ask for a photo under 100 KB or 200 KB, use Target size and type that number: you get the highest quality that fits, and if even that is too big, the picture's width and height are reduced slightly, which looks much better than heavy compression. If a PNG is a photo, saving it as WebP or JPG will make it far smaller still.

Your files stay on your device.

This page converts files with code that runs in your browser. Nothing is uploaded. After you have used it once, it even works with your internet switched off.

Questions

How do I compress an image without losing quality?

Add your images and press Compress with Smart mode on. It tests several quality levels on each picture, measures how closely each one matches your original, and keeps the smallest file that still looks the same. Press Compare afterwards to check it yourself at full size.

How much smaller will my image get?

In my tests, 4K photos came out about half the size with no visible change, and PNG graphics 60 to 73% smaller. Photos that were already heavily compressed shrink less. If you need a specific size, for example for an upload form, choose “Target size” and type the limit in KB.

What does the match percentage mean?

It is a similarity score between the compressed image and your original, measured the way the eye sees brightness and detail. Results scoring 99.3% or more looked identical in side-by-side tests. Smart mode never goes below that; with Custom or Target size you can choose to.

How does PNG compression work?

PNG is lossless, so screenshots and graphics are made smaller by storing them with an optimised palette of up to 256 colours, the same idea tools like TinyPNG use. Each result is checked for banding; if a palette would show, the PNG is optimised without changing any pixels instead.

Are my images uploaded?

No. Compression happens in your browser on your own device; your images are never sent to a server.