📦 Compress Image
Reduce file size without losing quality — all in your browser
✓ Free Forever · ✓ No Signup · ✓ No Upload · ✓ Works Offline
🔒 Your image never leaves your device. All processing happens locally in your browser using browser-image-compression (Web Worker). No upload, no server, no tracking.
Features
- Smaller File, Same Dimensions — Re-encodes JPEG and WebP at the quality you pick and trims PNGs to a smaller colour palette — no AI involved, and the picture keeps its full width and height.
- Size Comparison — See original vs. compressed file size and the exact percentage saved.
- Visual Comparison — Original and compressed side by side, and one click opens both in Image Compare to check details at 1:1.
- Web Worker — Compression runs in a background thread — the UI stays responsive.
How It Works
- Upload your image — Drop any JPG, PNG, or WebP image to compress.
- Review results — See the size reduction and compare original vs. compressed quality side by side.
- Download compressed image — Save the smaller file — perfect for websites, emails, and faster loading.
Use Cases
- Optimize images for faster website loading (Core Web Vitals)
- Reduce file size for email attachments
- Shrink photos before uploading to social media
- Save storage space on your device
- Speed up image-heavy web pages
Frequently Asked Questions
How much smaller will my image get?
It depends on the picture. A photo saved at high quality (a camera or phone JPEG) usually comes out 50–70% smaller at the default 80%. A PNG screenshot or logo usually shrinks only 10–30% while it stays a PNG, because PNG is lossless — set Format to WebP and the same screenshot is often 60–70% smaller. A picture that is already well compressed may not get smaller at all; with "Same as original" you then get your file back untouched.
Can it compress to an exact size, like under 50 KB or 20 KB?
Yes: switch to Target size and type the limit (or pick 20, 50, 100, 200 or 500 KB). The page tries qualities until it finds the highest one that fits, and shows the exact byte count. 1 KB is counted as 1,000 bytes, so the file also fits a form that counts 1,024. If even quality 40% is too big, the picture is made smaller as well, and the page says by how much — a 12-megapixel photo can't be 20 KB at full size without turning to blocks. The result is a JPG (or WebP if you pick it), because a PNG can't be squeezed to a size.
Is there visible quality loss?
JPG and WebP always throw some detail away — that's how they get small. Around 75–85% it's usually invisible at normal viewing size; below about 60% skies turn blocky and edges smear. The preview on this page is scaled down to fit, so click Compare at full size to look at both versions pixel for pixel before you download.
Can I convert to WebP or JPG while compressing?
Yes, with Format. "Same as original" keeps the file type. WebP keeps transparency and is usually 25–35% smaller than JPG at the same quality — good for your own website. JPG is the safe choice for email and older software; transparent parts become white. A browser that can't write WebP (some Safari versions) shows that option greyed out.
Does it keep the EXIF data — date, camera, location?
No. The compressed file is written without EXIF, so the camera model, the capture date and any GPS location are gone — useful before you post a photo, but a photo app may sort it by today's date. The picture stays the right way up and the colour profile is kept. If you only want the location removed and nothing else changed, use EXIF Remover.
What's the maximum file size?
There's no upload limit, because nothing is uploaded. Very large pictures just take a few seconds longer. A phone browser can only hold a picture of a certain size (on iPhone about 16.7 megapixels); past that it comes out smaller, and the page tells you when that happens.
Notes from Milo 🐨
The resize guide kept sending people here with "under 200 KB" forms, and the best I could offer was: drag the quality slider and watch the number. So there is a Target size now. Type the limit (or tap 20, 50, 100, 200 or 500 KB) and the page tries qualities until it finds the highest one that fits, then shows the exact byte count. If even 40% quality is too big, it makes the picture smaller as well and tells you by how much, rather than handing you a blocky mess. I count 1 KB as 1,000 bytes, so the file fits forms that count 1,024 too.
Two things the how-to guide promised and this page couldn't do. First, it said "export as WebP" — now there's a Format choice: keep the type, or turn it into WebP or JPG while compressing (a PNG screenshot often ends up 60–70% smaller as WebP). Second, it said to watch the preview — but the preview is scaled down, so blocky edges hide. "Compare at full size" now opens the original and the result in Image Compare, where you can zoom to the pixels.
I found a leak in my own privacy promise. The compression library runs in a background worker, and that worker quietly fetched a copy of the library from a public CDN (jsDelivr) every time you compressed something — no file went with it, but your browser still called someone else's server, and offline the worker failed. It now loads the copy that ships with this site, so compressing makes no outside request at all, and once the page has run it keeps working without a connection.
You can now drop a whole pile of photos at once, not one at a time — pick the quality, and you get a ZIP with all of them compressed. (iPhone HEIC photos work too; they convert automatically.)
Turns out there was no way to actually choose how much to compress — it just picked one level and that was it. Added a quality slider so you can dial the size-vs-clarity trade-off and watch the file size update live.
From the blog
- 📖 Are Free Online File Tools Safe? What Actually Happens to Your Uploads — Most "free online" converters and compressors upload your file to a server. Here's what that means for your privacy, how to tell which tools do it, and how a browser-only tool avoids it entirely.
- 📖 How to Compress an Image Without Wrecking the Quality — Shrink a JPG, PNG, or WebP for web or email without obvious quality loss. How compression actually works, when to use WebP, and a private browser-based way to do it.
Related Tools
- 🔁 Convert Format — Convert between PNG, JPG, WebP — instantly in your browser
- ↔️ Resize Image — Change image dimensions — instantly in your browser
- 🕵️ EXIF Remover — EXIF / Metadata Remover
💬 Bug, idea, or just to say hi? Tell Milo 🐨 · [email protected]