Free Online Image Compressor
Shrink JPG, PNG and WebP images with a quality slider and a live preview. Nothing is uploaded.
or drag and drop your photo here
No image? Try one of these:
How to use
- 1Drop in an image — JPG, PNG or WebP.
- 2Drag the quality slider (or tap a preset) and watch the before/after preview and file size update live.
- 3Switch the output format to JPG or WebP if you want the smallest possible file.
- 4Click Download once you're happy with the size-versus-quality trade-off.
Privacy: Compression runs entirely in your browser using the HTML canvas API — your photo is never uploaded to a server, which makes it safe for private or unpublished images too.
What this tool does
The Image Compressor makes JPG, PNG and WebP files smaller by saving them again at a lower quality. You move a slider, or press Smallest file, Balanced or High quality, and a before and after preview shows what you are giving up. The tool shows the saving before you download. Your picture keeps its pixel dimensions, and the work happens on a canvas in your browser, so it never leaves your device.
Use this when you want to judge the quality by eye and have no fixed limit to meet. If a form says the file must be under 50 KB, go to Compress Image to KB instead, because it finds the right setting for you. To reduce the pixel dimensions as well, use the Image Resizer first, since that often saves more than any quality setting.
When you'd use it
- Email attachments. Mail services cap attachment size, and a few phone photos can use up the allowance quickly.
- Faster web pages. Large images are often the heaviest thing on a page, so compressing them helps visitors on slow connections.
- Sharing in chat. Sending an image you already compressed avoids a chat app applying its own, harsher compression.
- Freeing up storage. Compress the images you only need to look at, and keep the originals of the ones you may print.
How it works
JPG and WebP are lossy formats: they discard detail the eye is less likely to miss, and the quality value sets how much goes. At lower settings, gradients start to show bands and sharp edges pick up faint noise. The tool draws your image onto a canvas and asks the browser to encode it again at the quality you chose, repeating shortly after each change so the preview stays current.
PNG works differently. It is lossless, which means there is no quality setting to lower, so the tool shows no slider for it. Switching a PNG to WebP or JPG is what brings the size down, at the cost of losing PNG's exact pixels. Compressing a JPG that was already heavily compressed saves little, and it adds a second layer of damage.
Real results from our tests
The two photos started as JPGs of about 600 to 700 KB and dropped by about 70% or more even at High quality. The screenshot shows the PNG trap: kept as PNG it grew from 119 KB to 170 KB, because the browser's PNG encoder favours speed over size, while switching to WebP cut it to 48 KB at Balanced.
| File | Original | Saved as | Smallest file | Balanced | High quality |
|---|---|---|---|---|---|
| Portrait photo, 1024×1024 JPG | 687 KB | JPG | 56 KB | 102 KB | 186 KB |
| Product photo, 1024×1024 JPG | 596 KB | JPG | 41 KB | 73 KB | 138 KB |
| Screenshot of a web page, 1280×900 PNG | 119 KB | WebP | 35 KB | 48 KB | 74 KB |
Left as PNG, the same screenshot came out at 170 KB, because PNG has no quality setting to lower. Measured by running this tool in Chrome on 6 November 2026. Your files will give different numbers.
Tips and common mistakes
- Start at Balanced, then check faces and small text in the preview. Move up only if you can see a problem.
- Resize before you compress. A 1000 px image needs far fewer bytes than a 4000 px one shown at the same size on screen.
- Keep your originals. You can always compress again from a good copy, but you can never restore detail from a compressed one.
- Avoid JPG for screenshots and diagrams. Text gets soft halos around it, so WebP or PNG usually looks better.
- If the tool warns that the file got bigger, the original was already efficient. Lower the quality, or keep the original.
Limits
- It accepts JPG, PNG and WebP, and the page suggests files up to about 25 MB. HEIC photos need HEIC to JPG first.
- One image at a time. For a batch, the Image Converter can set one quality for a whole set.
- It does not change pixel dimensions, and PNG output is lossless, so a PNG kept as PNG may not shrink at all.
- Saving through a canvas drops metadata such as camera details and location, which is often welcome but worth knowing.
Frequently asked questions
- Does compressing reduce quality?
- Yes, for JPG and WebP, because that is how the file gets smaller. At Balanced or High quality it is usually hard to see at normal viewing size. Use the before and after preview to decide for yourself.
- What's the difference between this and Compress Image to KB?
- Here you choose the quality and accept the size that results. Compress Image to KB works the other way round: you give it a size limit, and it picks the quality.
- Why did my PNG get bigger?
- PNG is lossless, so there is nothing to lower, and the browser's encoder is built for speed rather than the smallest file. Our 119 KB screenshot came out at 170 KB. Switch the output to WebP or JPG instead.
- Is my photo uploaded?
- No. The image is decoded and saved again inside your browser tab, and it is discarded when you close the tab.
- What quality should I use for a website?
- Our Balanced setting, quality 75, is a sensible default for photos. Check the result at the size it will appear on the page.
Maintained by Hardik Sindhav · Last verified 6 November 2026 · How we test and use AI
Want the details? Compress images without losing quality: what 13 quality settings did to the same photo