Guides / Compress image
How to compress an image without losing quality
Compress imageMake JPG, PNG and WebP files smaller. Free, and your file never leaves your device.Open toolYour 4.2 MB holiday photo needs to go in an email with a 10 MB limit, along with three others. Or your website loads slowly because every product photo is 3 MB. You want the files smaller without the pictures looking worse. That is very doable, but it helps to know what "without losing quality" can and can't mean.
Lossless vs. lossy: the honest version
| Lossless | Lossy (smart) | |
|---|---|---|
| What changes | Nothing in the picture; only how it's stored | Fine detail your eye can't see at normal size is removed |
| Typical saving | 10 to 40% | 60 to 80% or more |
| Formats | PNG (and WebP lossless) | JPG, WebP |
| Best for | Screenshots, logos, diagrams, text | Photos |
When people say "compress without losing quality", they almost always mean no quality loss you can see. For photos, well-tuned lossy compression gives that. The trick is to use a good encoder at a sensible setting, not to push quality to 10.
Compress image on this site uses the same encoders as Google's Squoosh app: MozJPEG for JPG, libwebp for WebP and OxiPNG for PNG. MozJPEG produces noticeably smaller JPGs than a phone or a basic editor at the same visible quality.
Step by step: compress photos
- Open Compress image and choose one or many images (JPG, PNG, WebP, GIF or BMP).
- In Save as, leave Same as original, or pick JPG or WebP for photos that are currently PNG.
- In How, choose Choose the quality and leave it at 75. Or choose Aim for a file size and type a target in KB per image.
- If the photos are bigger than they need to be in pixels, set Longest side (for example 1920 px for screens).
- Click Compress images. You see the size before and after for every image. One image downloads directly; several come as a ZIP.
Everything runs in your browser, so the photos never leave your device. If compressing would make a particular file bigger, you get the original back unchanged.
The biggest saving is usually pixels, not quality
A modern phone photo is 4000 x 3000 pixels (12 megapixels) or more. A laptop screen shows about 1920 pixels across; a phone screen around 1080. If the photo is only going to be looked at on screens, most of those pixels are never seen.
| Use | Longest side that's plenty |
|---|---|
| Email, sharing, viewing on phones | 1920 px (Full HD) |
| Instagram post | 1080 px |
| Website product photo or blog image | 1280 to 1920 px |
| Printing at 15 x 10 cm (6 x 4 in) | 1800 px |
| Printing large or cropping later | Keep the original size |
Halving the width and height leaves a quarter of the pixels, and the file shrinks roughly in proportion, before quality even comes into it. On a screen, a 1920-pixel photo looks the same as the 4000-pixel original. Use the Longest side option in Compress image, or Resize image for exact sizes.
Settings by type of image
Photos
- JPG at quality 75 to 80, or WebP at 75 if the image is for a website (WebP is usually 25 to 35% smaller than JPG at the same look).
- Combine with a sensible longest side.
Screenshots, logos and graphics
- Keep them as PNG: JPG blurs sharp text and edges.
- Leave PNG: reduce to 256 colours ticked. Screenshots and flat graphics rarely use more than 256 colours, and this often cuts a PNG by 60 to 70% with no visible change, the same idea as TinyPNG.
- Untick it for screenshots of photos or smooth gradients, where you might see banding.
Photos saved as PNG by mistake
Very common with screenshots of photos and images saved from some apps. Convert them with PNG to JPG or choose JPG under Save as: they typically come out 5 to 10 times smaller.
How to check you haven't lost quality
- Open the original and the compressed photo side by side at the size people will see it, not zoomed to 400%.
- Look at three places where compression shows first: blue sky (blocky bands), hair and grass (smudging), and edges of text or signs (fuzzy halos).
- If you see a difference, compress again at a quality 10 points higher. If you don't, try 10 points lower and check again. Stop at the lowest setting you can't tell apart.
Mistakes that quietly ruin quality
- Compressing the same JPG again and again. Each save loses a little more. Always compress from the original.
- Using quality to hit a tiny KB target. To get a photo under 50 KB, reduce its pixels; don't force quality to 15. For forms with strict KB limits, use Resize image to KB, which balances both for you. Our guide to reducing photo size in KB covers this.
- Enlarging after compressing. Stretching a small compressed image makes every artefact bigger. Resize down, never up.
- Compressing for apps that compress anyway. WhatsApp (normal photo send), Instagram and Facebook re-compress uploads. Compressing first adds a second round of loss.
A real example
Take a 12-megapixel phone photo of around 4 MB. With the longest side set to 1920 px and JPG quality 75, it usually comes out at a few hundred KB, roughly a tenth of the original, and on a laptop screen you can't tell them apart. Ten such photos then fit in one email under a 10 MB limit, where the originals would need four or five emails. Try it on your own photo: the tool shows the before and after size for each file.
The compressed copies usually don't carry the hidden GPS location from your phone either (a file that was kept as it was still does). To remove the location for certain, without compressing, see how to remove location data from photos.
Quick answers
Can you compress an image with zero quality loss?
Yes, but only a little. Lossless compression (for example optimising a PNG) keeps every pixel and typically saves 10 to 40%. Big savings of 60 to 80% come from lossy compression, which removes detail you can't see at normal viewing size.
What JPG quality is best?
75 is a good default for photos viewed on screens. Use 85 to 90 for photos you will print or crop later. Below about 60, edges and skies start to show blocky artefacts.
Why is my PNG photo so large?
PNG stores every pixel exactly, which suits screenshots and logos but makes photos huge. Saving a photo as JPG or WebP is usually 5 to 10 times smaller with no visible difference.
Does compressing an image remove the location data?
Usually. Compressed files are saved fresh without the hidden EXIF details such as GPS location. But if a photo is already so small that compressing would make it bigger, you get the original back unchanged, with its details. To be sure, use Remove photo location (EXIF).
Should I compress before uploading to WhatsApp or Instagram?
Not usually. Those apps compress photos again themselves. Compress before email, websites, forms and cloud storage, where the file is kept as you send it.
Tools used in this guide
More guides
- How to merge PDF files on iPhoneTwo free ways to combine PDFs on an iPhone without installing an app: the built-in Files app, or a browser tool that keeps your files on the phone.
- How to merge PDF files on a MacCombine PDFs on a Mac for free with Preview or a Finder Quick Action, with no software to install, plus how to fix the order afterwards.
- How to merge PDF files on Windows for freeWindows has no built-in way to combine PDFs. Here's how to merge them for free without installing software or uploading your files.
- How to split a PDF into separate filesSplit a PDF into single pages, fixed chunks or custom ranges, on any device, plus the free Chrome trick for pulling out a few pages.