Compress images
Make JPEG, PNG and WebP files smaller, to an exact size in KB if you need one. Your images never leave your device.
Drop images here
JPEG, PNG or WebP, up to 50 MB each
Choose images- Files stay on this device
- Before and after preview
- No sign-up, no watermark
A practical guide to compressing images with the optimizer
Big image files are the most common reason a web page feels slow, an email bounces, or an upload form refuses a photo. This guide explains exactly what the optimizer does to your files, what to expect from it, and how to get the smallest result without making your pictures look worse.
What the tool does to your image
The optimizer accepts JPEG, PNG and WebP files, up to 50 MB each, and you can add several at once. Everything happens in your browser: the image is decoded and re-compressed on your own device, and it is never uploaded. Each file comes back in the same format it arrived in. Here is what happens to each format:
| Format | What the tool does | What to expect |
|---|---|---|
| JPEG | Re-encoded with MozJPEG at the quality you choose | Often a large saving on camera photos |
| PNG | Colours reduced to a palette, then packed with OxiPNG. At quality 95 and above, no colours are removed | Large saving on graphics and screenshots, smaller on photos |
| WebP | Re-encoded at the quality you choose | Saving depends on how the file was first made |
A quality slider controls how hard the files are squeezed. It starts at 75, which for most photos on a screen looks very close to the original while being far smaller. Move it and every image is compressed again with the new setting.
How to optimize your images
- Open the optimizer and drop in your files, or click the upload area to pick them.
- Compression starts straight away. Wait for each file to show its new size.
- Select an image in the list and drag the comparison handle to check the optimized version against the original.
- If you can see a difference, raise the quality. If you cannot, try lowering it for a smaller file.
- Download files one at a time, or use the ZIP option to get them all together.
What the quality number really means
JPEG and WebP are lossy formats. To make a file smaller, the encoder throws away detail that your eyes are least likely to notice, such as tiny colour differences in smooth areas. A quality number between 0 and 100 controls how aggressively it does this. Around 70 to 80 the loss is usually invisible at normal viewing size. Below about 50 you may notice slight blockiness in smooth skies, soft gradients or around sharp text if you zoom in.
Lossy compression is permanent. The detail that was removed cannot be recovered, so always keep your original file and treat the optimized copy as the one you publish.
Why some files barely shrink
If you add an image that was already compressed hard, for example one saved from social media or exported at a low quality setting, there is little left to remove. Re-encoding it can save only a few percent, or even produce a larger file. When that happens the optimizer keeps your original and tells you it is already as small as the chosen quality allows.
Do not run the same file through the optimizer again and again. Each pass re-compresses an already lossy image, which adds artifacts without giving you much smaller files.
Get a bigger saving by resizing first
Compression and dimensions are two separate things. A phone photo is often 4000 pixels wide, but a blog column rarely shows more than 800 to 1200 pixels. The extra pixels are downloaded and thrown away by the browser. Scaling the image down to the size it will actually be shown at will usually save far more than compression alone. The best order is:
- Crop away anything you do not need.
- Resize to the largest size the image will be displayed at (a little larger if you want sharp results on high-density screens).
- Optimize.
Why a PNG photo stays large
PNG is lossless, so the tool cannot throw away detail to reduce size. That is perfect for logos, screenshots and flat graphics, but a photograph saved as PNG can be five to ten times larger than the same photo as a JPEG. If the picture is a photo and does not need transparency, set Save as to JPEG or WebP and the optimizer will convert and compress it in one step. If you need transparency, WebP supports it and is usually much smaller than PNG.
Changing format while you compress
The Save as menu lets the optimizer write a different format from the one you gave it. Leave it on "Same as original" when the destination needs a specific format. Otherwise:
- WebP is typically noticeably smaller than JPEG at the same visible quality, supports transparency, and works in every current browser.
- AVIF is usually smaller again, especially at low file sizes, but it takes much longer to compress and some older apps cannot open it.
- JPEG is the safe choice for email, documents and anything that must open everywhere. Transparent areas are filled with white.
Hitting an exact size limit
Forms and marketplaces often demand a file "under 100 KB" or "under 2 MB". Type that number into Target size in KB and the optimizer searches for the highest quality that fits under it, separately for each image. The quality slider is switched off while a target is set. If an image cannot reach the target even at the lowest quality, the list tells you so; the fix is to resize it to fewer pixels and try again, because no amount of compression can squeeze a very large image into a very small file and still look acceptable.
File size targets
These are rough guidelines, not rules. Use them to decide whether a file needs more work.
| Where the image goes | Sensible target |
|---|---|
| Small icon or logo | Under 20 KB |
| Blog or article image | 80 to 200 KB |
| Full-width hero image | 150 to 400 KB |
| Product photo | 100 to 250 KB |
| Email attachment photo | Under 500 KB each |
Troubleshooting
- The file is rejected. Only JPEG, PNG and WebP are accepted, and each file must be 50 MB or smaller. Convert other formats first, or resize very large files.
- A file says it is already as small as this quality allows. It was well compressed to begin with. Lower the quality if you need it smaller, or keep the original.
- The picture looks too soft or blocky. Raise the quality slider and check again with the comparison handle.
- A PNG did not shrink much. Photos stored as PNG are inherently large. Convert to JPEG or WebP first. If colours in a PNG look banded, raise the quality so more colours are kept.
- Compression is slow or the tab runs out of memory. Very large images need a lot of memory on your device. Add fewer files at a time, or shrink the dimensions with the resizer first.
Keep going
Smaller images are one part of a faster site, and the guide to compressing images for a faster website covers the rest. To choose the right format before you compress, read PNG vs JPG vs WebP and when to use each. If an image is simply too large in pixels, start with the resizer, or switch format with the converter.
Related guides
For the full picture, see the image optimization guide for websites. For specific cases, see how to compress a PNG or reduce image file size without losing quality.
How the image optimizer works
Add one or more images and they are compressed straight away in your browser. Adjust the quality, compare the result with the original, then download the smaller files.
When to optimize
Before uploading to websites, emails, or social media.
What you get
Smaller files that load faster and are easier to share.
Privacy
Compression happens in your browser. Your images are never uploaded.
FAQ
Will optimizing reduce image quality?
Lower quality settings remove more detail to save more space. Use the comparison slider to check the result before you download, and raise the quality if you can see a difference.
What image types are supported?
JPEG, PNG, and WebP files up to 50 MB each. To optimize a GIF, BMP, or HEIC image, convert it to one of these formats first.
Why is there a file size limit?
Compression runs on your own device, so very large images can use more memory than a browser tab has. The 50 MB limit keeps the tool reliable on phones and older computers.