🗜️ Image Compressor — Free Online
Compress JPG, PNG and WebP photos with a quality slider and live before-after KB comparison. Free online image compressor running locally, no signup.
Shrink JPG, PNG, and WebP photos with a quality slider and instant byte comparison — everything happens on your device, nothing uploaded.
How to use image compressor
- Choose an image or drag & drop it.
- Set quality (80–85 is the sweet spot) and max width.
- Compare sizes and download the result.
What image compression actually does
Compression reduces the number of bytes used to store an image. Lossy formats such as JPG, WebP and AVIF discard detail the eye is less likely to notice. Lossless compression (PNG, or WebP in lossless mode) packs the same pixels more efficiently.
Compression is not resizing. A 4000 px photo stays 4000 px unless you also change its dimensions. For web images, resizing to the display size usually saves more than any quality slider.
Quality settings that hold up
| Format | Starting quality | Typical saving | Best for |
|---|---|---|---|
| JPG | 80–85 | 60–80% vs camera original | Photos, universal compatibility |
| WebP | 75–80 | 25–35% smaller than JPG | Modern web, transparency |
| PNG | Lossless | 0–70% with palette tools | Text, screenshots, logos |
| AVIF | 50–60 | 30–50% smaller than JPG | Modern browsers, large images |
Below quality 70, skies, skin tones and gradients start to band. Compare at 100% zoom before publishing.
Target file sizes for the web
These targets keep pages fast without visible damage. Google’s Core Web Vitals reward fast Largest Contentful Paint, and images are usually the largest element on a page. Serving a 2 MB hero image where 200 KB would look identical is one of the most common performance mistakes.
| Use | Target size | Typical width |
|---|---|---|
| Hero image | 150–300 KB | 1600–2000 px |
| Blog inline image | 50–150 KB | 800–1200 px |
| Product image | 50–150 KB | 1000–1500 px |
| Thumbnail | 10–30 KB | 300–600 px |
| Email image | 50–100 KB | 600 px |
Resize first, then compress
A 4000 × 3000 photo displayed at 800 × 600 wastes 95% of its pixels. Resize it to 800 px first, then compress at quality 80. The result is often 80–120 KB instead of 2–4 MB, and it looks the same on screen.
If you compress first and resize later, you bake compression artifacts into the smaller file. Always start from the largest original you have.
When not to compress
- Print and archiving: keep a high-quality or lossless master.
- Medical, legal or evidence images: compression can remove diagnostically relevant detail.
- Fine text and line art: JPG creates halos around letters; use PNG or WebP.
- Images that will be edited again: repeated lossy saves degrade quality each time.
Resize image to KBImage resizerJPG to WebPPNG to JPGCompression guide
Features
- Quality slider (10–100) with live output KB
- Optional max-width resizing in the same pass
- PNG auto-converts to efficient output
- Before/after byte sizes shown honestly
Privacy
This tool runs entirely in your browser. Your files and text stay on your device — nothing is uploaded, and nothing is sent to analytics. Privacy policy
How this tool is tested
This page is the real tool, not a screenshot: it runs locally in your browser and is verified in current Chrome, Edge, Firefox, and Safari before each release. Your input stays on your device for supported tasks.
By Mccowns.com team · Reviewed
Frequently asked questions
How much smaller will my image get?
Photos at quality 80 typically shrink 60–80% versus camera originals. The tool shows exact bytes — never estimates.
What quality should I use?
80–85 for photos on the web; 90+ for graphics with text. Lower than 70 often shows artifacts.
Is the output still JPG?
JPG and WebP inputs keep an efficient encode; PNG input is re-encoded for size. Transparency is flattened on white.
Are my photos uploaded?
No. Compression uses the Canvas API locally in your browser.