How image compression works
An image file can be made smaller in two ways. Lossless compression packs the same pixels more tightly. Lossy compression throws away detail the eye barely notices, which shrinks files far more. JPG and WebP are lossy formats with a quality setting; PNG is lossless, but can be made much smaller by reducing how many colours it uses.
This tool does both, and one more thing that often matters most: it can cap the largest side of each picture. A photo straight from a phone is often 4000 pixels wide or more, while a web page or an email rarely shows one wider than 1920. Fewer pixels means a much smaller file before any compression starts.
Choosing the settings
| Setting | What it does | A good start |
|---|---|---|
| Quality (JPG, WebP) | Lower keeps less fine detail and makes a smaller file | 75 for the web; 85 to 90 when detail matters |
| PNG colours | Reduces the picture to a palette of up to 256, 128 or 64 colours; All keeps every colour | 256 for screenshots and graphics |
| Largest side | Scales a picture down so its longer side is at most this many pixels | 1920 for websites and email; Keep to leave the size alone |
| Format | Same keeps each file's format; or convert them all to JPG, PNG or WebP | Same, unless you need a particular format |
Then compare: the preview shows the original on the left and the compressed version on the right, with each one's file size. Drag the handle across faces, text and edges, where compression shows first. If you see blocky patches in a JPG or banding in a smooth sky, raise the quality a little.
Photos and graphics compress differently
- Photos have smooth gradients and millions of colours. They compress best as JPG or WebP; as PNG they stay large.
- Screenshots, logos and diagrams have flat colours and sharp edges. JPG blurs those edges, so keep them as PNG and reduce the colours: a screenshot often shrinks to a fraction of its size with no visible change, and transparency is kept.
- Pictures with transparency (a logo, a cut-out) need PNG or WebP. Converting them to JPG puts them on white.
WebP usually makes smaller files than JPG at a similar look, and current browsers all show it, which makes it a good choice for websites. For files you'll send to people or upload elsewhere, JPG and PNG are still the safest: every program opens them. The PDF, PNG or JPEG guide compares the formats in more depth.
Why smaller images matter
- Faster pages. Images are often the heaviest part of a web page; smaller files load sooner, especially on mobile data.
- Email and forms. Many inboxes and upload forms limit attachment sizes.
- Storage. Thousands of photos take far less space at sensible sizes.
If you need an exact size in pixels, such as a social media format, use the image resizer first, then compress the result here.
Private and unlimited
The images are compressed by your browser and never uploaded, so there is no queue, no account and no daily limit. Compressed copies also leave out the camera's hidden data (EXIF), such as the time and place a photo was taken; an original kept because it was already smaller keeps its own.
Updated