Image Compressor
Shrink JPG, PNG and WebP images, one at a time or in batches. Compression happens in your browser, so your images never leave your device.
Output format
Compress by format
How to compress an image
- Drop your images onto the box above or click to choose them. JPG, PNG, WebP and anything else your browser can open will work.
- Set the quality slider. Lower means smaller files and more visible artifacts.
- Pick an output format. If you're not sure, JPEG is the safest choice for photos and WebP the smallest.
- Click Compress, check the before/after sizes, then download.
How much smaller will my images get?
It depends almost entirely on where the image came from. Photos straight off a phone or a camera are saved at very high quality, so they usually shrink by 50–80% at a quality of 80 with no difference you'd notice on a screen. An image that has already been optimized by a website or a messaging app has little fat left, and you might only gain 5–10%.
Switching format often matters more than the slider. The same photo saved as WebP is typically 25–35% smaller than a JPEG of similar visual quality. Going the other way, a photo stored as PNG can be five or ten times larger than it needs to be, and converting it to JPEG is the single biggest win available.
Lossy vs lossless compression
Lossy formats (JPEG, and WebP in its usual mode) save space by throwing away detail your eye is bad at noticing: subtle color shifts and fine texture in busy areas. The quality slider decides how aggressive that is. Each time you re-save a lossy file, a bit more is lost, so keep your originals and always compress from them, never from an already-compressed copy.
Lossless formats (PNG) keep every pixel exactly. They compress flat colors and sharp edges very well, which is why screenshots and logos are small as PNGs, but they do poorly on photographs. Our JPG vs PNG vs WebP guide goes deeper into which to pick.
Tips for the smallest files
- Resize before compressing. Halving the width and height cuts the pixel count by four. Use the Image Resizer first if your images are bigger than they'll be displayed.
- Check the worst area, not the average. Artifacts show up first around text, sharp edges and smooth gradients like a blue sky. Look there before lowering the quality further.
- Don't compress twice. Running an image through the compressor again at the same setting saves almost nothing and adds a second round of artifacts.
- Use WebP for websites. Every current browser supports it, and the savings add up quickly on pages with many images.
How this compressor works
There's no server involved. Your browser decodes each file, paints it onto a hidden canvas, and re-encodes it with its built-in JPEG, WebP or PNG encoder at the quality you chose. That's why it works offline once the page has loaded, and why it's fast: there's no upload or download queue, just your own processor. WebP output needs a reasonably recent Chrome, Edge, Firefox or Safari.
Frequently asked questions
What quality setting should I use?+
For photos, start at 75–85%. Below about 60% JPEG artifacts start to show around edges and in skies; above 90% the file grows quickly for very little visible gain. Compress one image, zoom in on the preview, and adjust from there.
Why did my PNG barely get smaller, or even get bigger?+
PNG is lossless, so there is no quality knob to turn: the browser simply re-saves the same pixels, and its encoder isn't always as tight as the tool that made the original file. For real savings, convert photos to JPEG or WebP. Keep PNG for screenshots, logos and anything with transparency.
Is compressing an image the same as resizing it?+
No. Compression keeps the pixel dimensions and stores them more efficiently; resizing changes the dimensions. If a 4000-pixel-wide photo will be shown at 1200 pixels, resizing first and then compressing gives a far smaller file than compression alone.
Can I compress many images at once?+
Yes. Select or drop as many files as you like; they all use the same quality and format settings. You can download each one or use Download all.
Is it safe to compress private photos here?+
Yes. The images are re-encoded by your own browser and never sent to a server. The output also drops EXIF metadata such as GPS location, which is a nice side effect before sharing photos publicly.
Further reading
Last updated October 16, 2026