Image Compressor
PNG is lossless — the quality slider does not change PNG output size.
What this tool does
The Image Compressor shrinks the file size of a JPG, PNG or WebP image right in your browser. It draws your picture onto a canvas and re-encodes it at the quality you choose, so a photo that is too large to send, upload or attach becomes small enough to use — without installing an app or creating an account. Your image never leaves your browser: nothing is uploaded to any server, and the compressed file is created on your own device. The tool works with JPG, PNG and WebP files. For JPEG and WebP output, the Quality slider controls how much compression is applied. PNG is a lossless format, so the quality slider does not change PNG output size — the tool tells you that plainly instead of showing a fake saving. After compression you see the original file size, the compressed file size, the percentage saved and a preview of the compressed image, and you can download the result with the Download button.
How to use it
- Click “Choose File” under “Choose an image (JPG, PNG or WebP)” and pick a JPG, PNG or WebP image from your device.
- Move the “Quality” slider to the level you want. It runs from 10 to 100 and starts at 80. Lower values make smaller files with more visible loss; higher values keep more detail.
- Pick an “Output format”: JPEG, WebP or PNG. JPEG is the default. Use PNG only when you need lossless output, and remember the note beside the list: PNG is lossless — the quality slider does not change PNG output size.
- Click “Compress”. The tool shows the original size, the compressed size, the percentage saved and a preview.
- Click “Download” to save the compressed image to your device.
Worked examples
I tested the tool with a real sample photograph, test-sample-image.jpg, a 1200 by 800 JPG of 92,774 bytes (shown as 90.6 KB by the tool).
- At quality 80 in JPEG, the file came out at 97.3 KB — 7 percent larger than the original, shown as -7% (larger than the original). The source photo was already well optimised, so re-encoding it at quality 80 added a little size instead of removing any. A larger result is a real outcome, not a failure: it means that particular file was already compressed efficiently.
- At quality 50 in JPEG, the same file came out at 69.1 KB, a saving of 24 percent. Dropping the quality to 50 removed about a quarter of the file size, with some loss of fine detail.
- As PNG at quality 50, the same file came out at 1.35 MB, and the tool showed “PNG is lossless — quality slider does not apply” instead of a percentage. PNG stores every pixel exactly, so it is much larger than a JPEG of the same photo and the slider cannot shrink it.
Common mistakes
- Compressing a photo that is already well optimised and expecting a big saving every time. Some files get bigger at high quality, as the quality 80 test above shows.
- Choosing PNG when you want the smallest file. PNG is lossless and usually much larger than JPEG or WebP for photographs.
- Setting Quality to 10 and expecting the picture to stay sharp. Very low quality makes files tiny but visibly degrades the image.
- Clicking “Compress” before choosing a file. The tool will say “Please choose an image first.”
- Trying to compress a file that is not an image. The tool only accepts JPG, PNG and WebP, and will say so if the file is not an image.
- Forgetting to download the result. The compressed image is not saved anywhere until you click “Download”.
Frequently asked questions
Q: Does my image get uploaded to a server?
A: No. Your image never leaves your browser. The compression runs on your device and the file is never sent anywhere.
Q: Why did my file get bigger after compressing?
A: It can happen when the original was already well optimised. In our test, a 90.6 KB JPG became 97.3 KB at quality 80 (-7%). Lower the quality, or try WebP, to get a smaller file.
Q: Does the Quality slider affect PNG output?
A: No. PNG is lossless, so the quality slider does not change PNG output size. The tool shows “PNG is lossless — quality slider does not apply” instead of a percentage when you choose PNG.
Q: What image formats can I compress?
A: JPG, PNG and WebP. Choose a file with one of those formats using “Choose File”, then pick your output format from the “Output format” list.
Related tools
- PDF to JPG — turn PDF pages into JPG images.
- QR Generator — create and download free QR codes.