All Tools

Image Compressor: Compress JPG, PNG, WebP, AVIF

Compress JPG, PNG, WebP and AVIF images in your browser. Pick a quality level or a target file size. Your files never leave your device. Free, no signup, no upload.

Compression level

Animated files are rejected unless this is on. Only the first frame is compressed.

Your files never leave your device

Everything happens in your browser. Nothing is uploaded.

Drag files here, paste, or choose files

Up to 20 files, 50 MB each. PNG, JPEG, WebP and AVIF files.

Compression happens in your browser. Nothing is uploaded. Compressed files are created on your device and are only kept until you close or reload this tab. Your files are only in this tab. Metadata such as location and camera info is removed, except when a file cannot be made smaller and is returned unchanged.


About the Image Compressor

The Image Compressor makes picture files smaller without changing their format. Drop in PNG, JPEG, WebP or AVIF files, choose a quality level or target size, and download the smaller copies one by one or as a ZIP. Everything runs in your browser, so your images are never uploaded and your files never leave your device. There is no signup and no watermark.

How to compress an image

Steps

  1. Choose a Compression level: Light, Balanced or Strong. Pick Custom to set your own quality from 1 to 100.
  2. To hit a file size limit, switch on Set a target file size and enter a number in KB or MB.
  3. Drag files onto the drop area, paste them, or choose files. Compression starts as soon as a file is added.
  4. Download each file, or download all of them as one ZIP. If you change a setting afterwards, press Recompress with these settings.

Privacy

This tool runs entirely in your browser using WebAssembly. Your images are never uploaded to our servers, and the compressed files are created on your device. Image metadata such as location and camera details is removed from the output when the file is recompressed. The one exception is a file we cannot make smaller: it is returned unchanged, with whatever metadata it carries. Compressed files stay in the tab until you close or reload it, and then they are gone.

Compression levels

Compression levels and the setting each one uses
LevelJPEG qualityWebP qualityAVIF qualityPNG
Light858565Lossless
Balanced757550Up to 256 colours
Strong606040Up to 64 colours
Custom1 to 1001 to 100About 65% of your numberColours scaled to your number, 100 is lossless

JPEG, WebP and AVIF levels are quality numbers, where higher keeps more detail and makes a larger file. AVIF uses a different scale, so its numbers are lower. For PNG there is no quality number, so the levels set how many colours the picture may use.

How compression works

Lossless compression stores the same pixels in fewer bytes, the way a ZIP file does. Lossy compression throws away detail that is hard to see, which saves far more space but cannot be undone.

A JPEG shrinks because it divides the picture into small blocks and keeps the broad shapes while rounding off fine variation. Lower quality rounds off more, so the file gets smaller and, eventually, blotchy.

A PNG never discards detail the same way. It shrinks by using fewer colours, so each pixel needs fewer bits. This is why Light barely shrinks a PNG: it only repacks the same colours losslessly, and a well-made screenshot has little to gain. Balanced is the level that makes a PNG much smaller, because it cuts the picture to at most 256 colours. Strong goes to 64, and gradients can show visible banding.

Compress to a specific file size

Many upload forms ask for a file under 100 KB or 2 MB. Switch on Set a target file size, enter the number, and press Recompress with these settings. Here KB means 1,024 bytes and MB means 1,048,576 bytes, the sizes shown beside each file.

The tool tries different qualities, or colour counts for PNG, and keeps the best result that fits. If the picture is already under the target, you get it back unchanged. If no result fits without making the picture look poor, you get the smallest one found, with a note saying so. In that case, make the picture smaller first with the Image Resizer, then compress it again.

Which format should I choose?

  • Photos: JPEG works everywhere. WebP and AVIF usually make smaller files, but older software may not open them.
  • Sharp graphics, text and logos: PNG keeps edges clean and holds transparency.
  • Changing format: the compressor keeps each file in its own format. To switch, use the Image Converter first.

Limits and what to do about them

  • 50 MB per file. The work happens in your browser's memory, and larger files can crash phones and older laptops.
  • 32 megapixels per image. The browser must hold the whole uncompressed picture. Some phone cameras exceed this, and those images are refused with their size shown.
  • Up to 20 files and 200 MB per batch, for the same memory reason.
  • Animated files are compressed as a still image of the first frame only, when you switch that option on. Otherwise they are refused.
  • GIF and BMP cannot be compressed here. Convert them to PNG or WebP first.
  • HEIC is not supported yet.
  • A file that cannot shrink is returned unchanged with a note. That counts as a success, not an error.

Related tools

Need fewer pixels rather than a smaller file? Use the Image Resizer. To change formats, use the Image Converter. Working with photos for a JPEG upload form? Go to Compress JPEG. To check kilobytes against megabytes, use the Data Converter.

Frequently asked questions

Is my image uploaded when I compress it?

No. The compression runs inside your browser, and the finished files are created on your device. The page makes no network request with your pictures, and the results disappear when you close or reload the tab.

Will the picture lose quality?

Yes, a little, for JPEG, WebP and AVIF, because lossy compression discards fine detail to save space. Light uses quality 85 for JPEG and WebP, Balanced uses 75 and Strong uses 60, so Light is the closest to the original. PNG is handled differently: Light is lossless, while Balanced and Strong reduce the picture to at most 256 or 64 colours.

Why did my PNG barely shrink?

You probably used Light, which keeps every colour and only repacks the pixels, so a PNG that was already well made has little to give up. Balanced is the level that makes a PNG much smaller, because it limits the picture to at most 256 colours. Strong limits it to 64 colours and can cause visible banding in gradients.

Why did I get my original file back?

If the compressed version would not be smaller than the file you added, the tool returns your original unchanged rather than hand you a bigger file. This counts as a success. Because nothing is re-encoded in that case, the original's metadata, such as location, is still in the file. The same happens when the file is already under your target size.

How do I compress an image to 100 KB?

Switch on Set a target file size, enter 100 and choose KB, then press Recompress with these settings. Here one KB is 1,024 bytes. The tool searches for the best quality that fits. If it cannot reach 100 KB without making the picture look poor, it gives you the smallest result it found, and the Image Resizer can reduce the pixel size first.

Is metadata such as location kept?

No. When a file is recompressed, metadata such as GPS location and camera details is removed from the output. The one exception is a file that could not be made smaller: that file is returned unchanged, with the metadata it already had.

Which formats are supported and what is the size limit?

PNG, JPEG, WebP and AVIF, each kept in its own format. GIF, BMP and HEIC are not compressed here. Each file can be up to 50 MB and 32 megapixels, and a batch can hold up to 20 files and 200 MB. Animated files are compressed as a still image of the first frame only when you switch that option on.

Other related tools