Image compression works best when you choose the right format, dimensions, and quality level for the final use. A smaller image can improve page speed without making the design look soft.
How to approach it
- Resize the image to the largest display size you actually need.
- Choose JPG for photographs, PNG for transparency, or WebP for modern web delivery.
- Compress the image and compare it at its intended display size.
- Keep the original file until the optimized version has been checked.
What "without losing quality" really means
Strictly speaking, only lossless compression keeps every pixel exactly the same. Most of the time the real goal is different: a file that looks the same at the size people will view it. There are two kinds of compression:
- Lossless stores the same pixels more efficiently. Nothing is lost, but the savings are limited, especially for photos.
- Lossy throws away detail that's hard to notice. It makes files much smaller, and the loss only becomes visible as the quality goes down. JPG is always lossy, and WebP can be either.
Not sure which format suits your image? See JPG vs PNG vs WebP.
Resize before you compress
Dimensions usually matter more than the quality setting, because doubling an image's width and height means four times as many pixels to store. A 4000 × 3000 photo has 12 million pixels. If it's displayed 800 pixels wide, an 800 × 600 version has just 480,000, which is 25 times fewer, and it looks identical at that size.
For high-density phone and laptop screens, allow about twice the displayed width, so 1600 pixels for an image shown 800 pixels wide. Use Resize Image to set exact dimensions, and Crop Image to remove parts of the picture you don't need, since every pixel you remove is one you don't have to store.
Using the Compress Image tool
The Compress Image tool takes JPG, PNG and WebP files up to 50 MB and runs in your browser, so your image stays on your device.
- Drop in your image.
- Pick a quality preset, or set your own level with the slider.
- Reduce the scale if the image is bigger than you need. It goes from 100% down to 10%.
- Choose the output format: JPG, PNG or WebP. Changing format can save more than changing quality.
- Compare the before and after, zooming in where detail matters, and check the new file size.
- Download the result. The original file isn't changed.
Which quality setting to choose
These are starting points. The right level depends on the image, so compare before you download. A photo with lots of fine detail needs a higher setting than one with smooth areas.
| Preset | Quality | Good starting point for |
|---|---|---|
| High | 90 | Portfolio images, product photos and anything people will zoom into |
| Balanced | 75 | Most website and blog images |
| Small | 50 | Thumbnails and email attachments, where size matters more than detail |
| Tiny | 25 | Small previews and strict upload limits. Expect visible quality loss |
How compression works for PNG
PNG has no quality setting of its own, so the tool makes PNGs smaller by reducing the number of colours. At 100 it stays lossless with every colour kept. Lower settings use a limited palette: 144 colours at 75, 64 at 50 and 16 at 25. Screenshots, logos and flat graphics often look unchanged. Photos and smooth gradients show banding quickly, so WebP or JPG is usually a better choice for those.
What to check in the comparison
Quality problems show up first in predictable places, so look there rather than at the whole image:
- Text and sharp edges: look for smudges or halos around letters and lines.
- Skies and gradients: look for visible bands or blocks instead of smooth changes in colour.
- Faces and skin: these lose fine detail and start to look waxy.
Zoom is useful for finding problems, but judge the final result at the size people will actually see it. A flaw you can only spot at 400% rarely matters on the page.
Details worth knowing
- Don't compress the same file repeatedly. Each lossy save loses a little more. Keep your original and always start from that when you need a new version.
- Transparency needs PNG or WebP. JPG can't store it, so transparent areas turn white when you choose JPG. Cut-outs from the Background Remover usually compress best as WebP.
- Photo details are removed. The tool redraws the image, so camera details such as location data aren't copied into the new file. That's useful for privacy, but keep the original if you need that information. To see what a photo contains, or remove it without compressing the image, use the Image Metadata Remover.
- Sometimes the result is larger. This happens with images that are already well compressed, or when you change to a less suitable format. The tool shows the percentage either way, so try a lower quality or another format, or keep the original.
Getting the most from images on your website
A smaller file is only part of a fast page. A few lines of HTML help too:
- Set
widthandheightso the page doesn't jump around as images load. - Use
loading="lazy"on images further down the page, but not on the main image at the top, which should load straight away. - Use
srcsetto offer several sizes, so phones don't download an image made for a large desktop screen.
<img
src="photo-800.webp"
srcset="photo-800.webp 800w, photo-1600.webp 1600w"
sizes="(max-width: 800px) 100vw, 800px"
width="800" height="600"
loading="lazy"
alt="Describe the image here">Frequently asked questions
Are my images uploaded?
No. Compress Image, Resize Image and the other image tools run in your browser, so your files stay on your device.
What's the smallest I can make an image?
There's no single answer, because it depends on the image's content and dimensions. To hit an upload limit, reduce the dimensions first, then lower the quality until the file fits, and check that it still looks acceptable.
Can I undo compression?
No. Detail removed by lossy compression can't be recovered, and raising the quality on a compressed copy won't bring it back. That's why you should keep the original.
Can I compress an image inside a PDF?
Use Compress PDF for that. Note that this tool uploads the PDF to our server to process it, then deletes the server copy once you've received the result.
Related tools and guides
Ready to try it? Open the Compress Image tool, or browse all image tools.