Image Compressor
Shrink image file size with adjustable quality, width and format.
JPG, PNG, WebP or GIF (first frame). The file never leaves your browser.
Images are compressed locally with the canvas API — nothing is uploaded to a server.
What is the Image Compressor?
The Image Compressor is a free online tool that reduces image file sizes right in your browser. Upload any JPG, PNG, WebP, or GIF, choose an output quality between 10 and 100, set a maximum width, and pick JPEG, PNG, or WebP output. The tool redraws the image on a canvas at your settings and instantly shows the original size versus the compressed size, plus how much smaller the result is — with a live preview and a one-click download.
How to Use the Image Compressor Online
- Upload: choose a file with the button or drag and drop it onto the dashed box.
- Quality slider (10–100): lower values mean smaller files but more visible compression artifacts. Around 70–85 is a good balance for photos.
- Max width: the image is scaled down if it is wider than this (it is never upscaled). Use 1920 for full-page images, 800–1200 for blog and social posts.
- Format: JPEG is best for photos; WebP usually gives the smallest file at the same quality; PNG is lossless — pick it only when you need transparency or pixel-perfect graphics.
Image Compressor — Tips
If the "saved" value shows the file got larger, your source was probably already well compressed — try lowering the quality or switching to WebP. Compression happens entirely on your device using the canvas API, so it is fast and private: no uploads, no watermarks, no limits.
Image Compressor — Worked example
Upload a phone photo, set quality to 80, leave the maximum width at its default, and choose JPEG output. The tool redraws the image on a canvas in your browser and shows three numbers: the original size, the compressed size, and how much was saved. If the saving is small, lower the quality step by step and watch the preview — the smallest file that still looks good is usually found a few steps below the first setting you tried, not at the lowest setting.
Now try the same photo as PNG output. The quality slider has no effect, because PNG is lossless, and the file may even come out larger than the JPEG version. That is expected, not a failure: PNG is the right choice for graphics with transparency or sharp text, while JPEG or WebP is the right choice for photographs. Use the live preview and the size comparison to decide, format by format, instead of guessing.
Image Compressor — Who uses it, and for what
- Bloggers and shop owners. Shrinking product and article photos so pages load faster without visibly worse images.
- Job and form applicants. Getting a photo or scan under a portal's file-size limit before uploading.
- Social media users. Preparing images that upload quickly and do not get recompressed twice by the platform.
- Anyone emailing photos. Cutting attachment sizes so a message with several photos still sends cleanly.
Image Compressor — Honest limitations
JPEG and WebP compression are lossy: every round of compression discards some detail, and recompressing an already-compressed photo will soften it further, so always compress from the best-quality original you have, not from a previous compressed copy. Animated GIFs are not preserved — only the first frame is processed, so the result is a static image. And because everything runs on the canvas in your browser, very large images are limited by your device's memory; if a huge file fails, resize it in steps or use a smaller source.
No sign-up, no limits, no uploads — it runs 100% in your browser.
Image Compressor — Practical tips for the best result
Start from the best original you have. A photo that has already been compressed for a messaging app has lost detail that no compressor can restore, so compressing it again only makes it softer. If the original is on your camera or in cloud storage at full quality, download that version and compress from there — the result will be visibly better at the same file size.
Match the maximum width to the display size. A photo that will be shown at 800 pixels wide on a web page does not need to be stored at 4000 pixels wide; setting the maximum width to slightly above the display size cuts the file dramatically with no visible loss on that page. For a full-screen hero image, keep a larger width, but for thumbnails and avatars, a small maximum width is the single biggest saving. Combine that with the right format — WebP or JPEG for photos, PNG only where transparency or razor-sharp text matters — and check the preview at 100% zoom, because a preview scaled down on screen hides softening that will be obvious at full size.
Which format should you choose?
JPEG, PNG and WebP are not interchangeable — each trades size against quality differently. The table below follows MDN's image format guide.
| Format | Compression | Transparency | Animation | Best for |
|---|---|---|---|---|
| JPEG | Lossy | No | No | Photos — the most popular format for still images |
| PNG | Lossless | Yes | No | Graphics, screenshots and text that must stay crisp |
| WebP | Lossy and lossless | Yes | Yes | Photos and graphics — much better compression than JPEG or PNG |
| GIF | Lossless, 256 colours | Yes (1-bit) | Yes | Simple animations only |
Measured: what each setting actually saves
We measured this on a real 3,840 × 2,731 phone photo (370 KB JPEG), re-encoded at each setting with Python Pillow. The original was already a compressed JPEG, so re-encoding it at high quality made it larger — the savings came from resizing and switching to WebP. Your numbers will differ by photo, but the pattern holds: resize first, then pick the format.
| Setting | Result | Change vs original (370 KB) |
|---|---|---|
| JPEG quality 90 | 590 KB | 59% larger |
| JPEG quality 80 | 485 KB | 31% larger |
| JPEG quality 70 | 449 KB | 21% larger |
| JPEG quality 50 | 386 KB | 4% larger |
| WebP quality 80 | 241 KB | 35% smaller |
| PNG (lossless) | 2,493 KB | 574% larger |
| JPEG quality 80, resized to 1920 px wide | 204 KB | 45% smaller |
| WebP quality 80, resized to 1920 px wide | 105 KB | 72% smaller |
Sources
- MDN Web Docs, “Image file type and format guide” — JPEG is the most popular lossy format for still images; PNG is preferred for precise reproduction or transparency; WebP offers much better compression than PNG or JPEG. developer.mozilla.org
- Compression measurements above were made by us on 10 November 2026 with Python Pillow (libjpeg/WebP encoders) — browser canvas results will be close but not identical.
Last reviewed: 10 November 2026.