Free tool
Image Compressor: Aim for a Quality Level or a Target File Size
Pages feel slow when their pictures are heavy. Drop JPG, PNG, WebP, HEIC, GIF or AVIF files, choose whether to aim for a quality or a size in kilobytes, and drag the slider on the preview to see what you gave up.
Settings
A changed setting does every picture again. Settings are kept in this browser for next time.
Compression runs in this page and your pictures never leave your computer. Your settings are remembered on this device, and Reset settings clears them.
The slow page job
A site owner runs a speed test and the report blames pictures. The files came straight from a camera or a design export, and some are several megabytes. This page is for that clean up.
Drop the files in, pick a goal, and the list shows each result. The picture panel has an Original and a Compressed view with a slider between them, so you can judge the loss with your eyes instead of trusting a number.
Reading the results list
Each row shows the picture, its new size, and a note when something unusual happened, for example that the type changed or that colours were reduced. Use that note as a prompt to open the picture and look at it closely.
Pick a row to load it into the compare panel. The slider reveals the original on one side and the compressed copy on the other, and a full size view lets you check faces, text and edges that matter on your own page.
The Download the picture button saves the selected one, and Download all as ZIP saves the lot.
Two ways to aim
| Goal | You set | The page does |
|---|---|---|
| A quality level | 30 to 95, starting at 75 | Saves each picture once at that level. File sizes then vary. |
| A file size | 10 to 50000 KB, with buttons for 50 KB, 100 KB, 200 KB, 500 KB and 1 MB | Tries to bring each file under the number. For that it may lower quality and, if needed, reduce the pixels. |
Use quality when you want consistent looks. Use size when a system has a hard limit, such as a form that rejects anything over a set number of kilobytes.
Type, largest side and extras
- Save as: the same type, JPG, or WebP described as the smallest choice.
- Largest side: keep the size, or cap it at 2560, 1920, 1280, 1080 or 800 pixels.
- Photo details: remove them, keep them without the place, or keep them all.
- Progressive JPG: on at the start, so a JPG shows a rough picture first and sharpens.
- Full colour detail: for JPGs of screenshots, where coloured text can blur otherwise.
A PNG that stays a PNG is made lighter by reducing the number of colours it uses. For a flat logo this is invisible. For a photo it can show banding, so switch to JPG or WebP for photographs.
Compression mistakes to avoid
- Compressing a picture that was already compressed hard. Start from the original wherever you can.
- Setting a tiny target for a large photograph. Reducing the pixels as well usually looks better than heavy blocks.
- Judging by the list alone. Always open the compare view on one or two files.
- Dropping photo details by habit, then needing the date later. Keep a copy of the original.
Compression is one piece of a slow page fix. Our website speed guide for small sites puts it next to the others.
Where to start on a heavy site
You do not need to compress every picture. Start with the biggest files and the ones near the top of a page, since those are the first things a visitor waits for. Sort your folder by size, drop the top twenty, and see how much the list saves before deciding how far to go.
Pictures that sit far down a page matter less. Pictures in a hero section matter most, because they load first.
Frequently asked questions
How do I compress an image to 100 KB?
Choose A file size and press the 100 KB button. Each picture is saved again until it is under the number, shrinking the pixels as well if that is needed.
Which quality should I use?
The starting value of 75 is a fair middle for web pictures. Raise it for detailed work and lower it for quick previews.
Why did my PNG change colours slightly?
A compressed PNG keeps fewer colours to get lighter. Choose JPG or WebP for photographs, where this is easier to hide.
Can I compress many files together?
Yes. Drop them all, change a setting and every picture is done again from the originals you dropped.
Does it change the picture type?
Only if you ask. Same type is the starting choice, and JPG or WebP can be chosen under Save as.
Are my files uploaded?
No. They are read and saved inside this tab on your computer.
Can it compress HEIC photos from a phone?
Yes. HEIC is on the list of accepted types, and you can save the result as JPG or WebP.
More free tools
- Compress JPEG: Shrink JPG photos by quality or to a size in KB, with resizing and photo detail removal.
- Compress PNG: Shrink PNG files with fewer colours, a size target or lossless packing.
- image resizer: Resize pictures by pixels or percent with fit, crop or stretch, presets and file type choices.
- JPG to WebP: Convert JPG photos to WebP in bulk with quality, size and photo detail controls.
- image converter: Convert a mixed set of pictures to JPG, PNG, WebP, AVIF or ICO in your browser.