Image Tools

Image Compressor

Shrink image file size with adjustable quality, width and format.

Or drop an image here

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

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

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.

FormatCompressionTransparencyAnimationBest for
JPEGLossyNoNoPhotos — the most popular format for still images
PNGLosslessYesNoGraphics, screenshots and text that must stay crisp
WebPLossy and losslessYesYesPhotos and graphics — much better compression than JPEG or PNG
GIFLossless, 256 coloursYes (1-bit)YesSimple 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.

SettingResultChange vs original (370 KB)
JPEG quality 90590 KB59% larger
JPEG quality 80485 KB31% larger
JPEG quality 70449 KB21% larger
JPEG quality 50386 KB4% larger
WebP quality 80241 KB35% smaller
PNG (lossless)2,493 KB574% larger
JPEG quality 80, resized to 1920 px wide204 KB45% smaller
WebP quality 80, resized to 1920 px wide105 KB72% smaller

Sources

Last reviewed: 10 November 2026.

Frequently Asked Questions

Does compressing reduce image quality?
JPEG and WebP compression are lossy: lower quality settings visibly soften fine detail. PNG output is lossless but usually larger. The live preview and size comparison let you find the smallest file that still looks good.
Why does the quality slider not change PNG output?
PNG is a lossless format, so the browser ignores the quality setting for PNG. The tool shows a note when PNG is selected. Switch to JPEG or WebP if you want quality-based compression.
Is my image uploaded to a server?
No. The image is drawn to a canvas and re-encoded entirely in your browser. Your files never leave your device.
What is the best format for photos?
For photos, WebP usually produces the smallest file at a given quality, followed by JPEG. Use PNG only for graphics with transparency or sharp text that must stay crisp.
Can I compress animated GIFs?
Only the first frame is processed, so the animation is not preserved. For animated images, the result is a static compressed still.
How much smaller will my image get?
It depends on the photo, the format and the quality setting — a detailed photo compresses less than a flat graphic. The tool shows the original and compressed sizes side by side, so you can judge each image instead of trusting a generic percentage.
Should I compress before or after resizing?
Do both in this tool in one pass: set the maximum width and the quality together, then check the preview. Compressing from the best-quality original gives a better result than compressing an already-compressed copy.
Can I compress a PDF with this tool?
No — this tool handles image files (JPG, PNG, WebP and the first frame of a GIF). PDFs need a separate PDF compressor.
Will compression remove the background of my photo?
No. Compression only reduces file size and, for lossy formats, some fine detail. It does not cut out backgrounds, remove objects or change what is in the picture.
How do I reduce image size without losing quality?
Upload your JPG, PNG or WebP — smart compression shrinks the file while keeping it visually identical.
What is the maximum file size?
Compression runs in your browser, so even large photos process fast with no upload limits or sign-up.