Guide
How to Compress an Image (Without Ruining It)
Compressing an image means encoding the same picture in fewer bytes. There are two ways to do it: lossy compression (JPG, WebP) discards detail your eye barely notices, and lossless compression (PNG) packs the data more efficiently without discarding anything. Done right, you can cut a file by 70–95% and see no difference at all.
Our test: one photo, five settings
To show what each lever is worth, we compressed one 4000×3000 photo (4 MB, straight off a camera) at different quality levels in a real encoder:
| Setting | File size | Saving |
|---|---|---|
| Original, JPG quality 95 | 4094 KB | — |
| JPG quality 90 | 2672 KB | -35% |
| JPG quality 85 | 1487 KB | -64% |
| JPG quality 80 | 1168 KB | -71% |
| JPG quality 70 | 689 KB | -83% |
| JPG quality 60 | 461 KB | -89% |
| Resized to 1920×1440 + quality 80 | 107 KB | -97% |
Two takeaways: quality 80 alone cuts a file by ~70% with no visible loss, and combining a lower quality with a sensible resize gets close to 97% off. Most people only use the first lever.
Step 1: pick the right format
Photos compress best as JPG or WebP — WebP looks better than JPG at the same quality number and typically saves another 20–30%. Screenshots, logos and graphics with flat colors compress best as PNG. Using the wrong format is the most common reason files stay huge: compressing a screenshot as JPG forces lossy artifacts onto flat colors, and compressing a photo as PNG wastes bytes on noise.
Our JPG to WebP converter handles the highest-value format switch in one drop.
Step 2: pick the quality sweet spot
For JPG, quality values between 70 and 85 are the sweet spot for web use. Below 60 you start to see blocking around sharp edges and text. The trick: compress, then compare the result against the original at 100% zoom. If the difference is invisible, the compression is free — you can stop there. If you need an exact file size (say 100KB for an upload form), use a tool that iteratively searches for the best quality that fits, instead of guessing with a slider:
Step 3: resize before you compress
Dimensions are the strongest lever of all. A 4000×3000 photo displayed on a website at 1920 pixels wide carries 4× more pixels than it needs — those pixels cost bytes regardless of quality. Cutting dimensions to the display size is why the last row of our table reaches -97%. Our image resizer does this in one step; do the resize first, then compress.
Step 4: strip the metadata
Camera photos carry EXIF blocks — GPS coordinates, camera model, timestamps, even embedded thumbnails — that can add tens or hundreds of KB with zero visual value. Removing them is a free saving with no quality cost at all. The EXIF remover strips them in one click, and it is also the privacy-safe move before sharing photos online.
Common mistakes that ruin quality
- Re-compressing the same JPG repeatedly. Every save is another lossy generation and artifacts stack. Keep the original and compress a fresh copy each time.
- Going below quality 40 “because smaller is better”. Below that, blocking and color shifts become obvious even at a glance.
- Compressing a PNG photo as PNG. A photo as PNG can be 5–10× larger than the same photo as JPG at quality 80. See our guide on how to compress PNG for when PNG is actually needed.
- Upscaling after compression. Resizing back up never restores discarded detail.
The 60-second recipe
- Open the image compressor and drop your file.
- If the image is for web display, resize it to its display width first.
- Compress at quality 80, compare at 100% zoom.
- Invisible? Done — typically 70% smaller. Need an exact size? Use the 100KB or 50KB compressor.
For the deeper version of this topic — including exact-size targeting and email attachments — see how to reduce image file size, or how to compress without losing quality for lossless workflows.
Useful tools for this task
People also ask
How do I compress an image on my phone?
Open a browser-based compressor like ours, drop the image, download. The processing happens in the phone's browser, so nothing is installed and nothing is uploaded.
What quality setting should I use?
Start at 80 for JPG. If the preview looks identical to the original, drop to 70 and save more. Below 60, artifacts appear around text and sharp edges.
Can compression be undone?
No — lossy compression discards data permanently. That is why you always keep the original file and compress a copy.
Does compressing an image reduce quality?
Lossy compression (JPG, WebP) always discards some data, but at quality 70-85 the difference is invisible in practice. Lossless compression (PNG) reduces file size without touching quality at all.
How much smaller can an image get?
For a typical camera photo: about 70% smaller from quality 80 alone, and up to 95-97% smaller when you also resize it to its display dimensions, as our measured table above shows.