Image Compressor & Resizer

The Complete Image Compression Guide

How lossy and lossless compression actually work, what the quality slider trades off, and why resizing shrinks file size on its own.

Compress an Image

Lossy vs. Lossless Compression

Every image format takes one of two approaches to shrinking file size. Lossy compression - used by JPEG and WebP - permanently throws away some of the original detail, picking the data that's least noticeable to the human eye first. The more aggressively it compresses, the smaller the file gets, but at some point the loss becomes visible as blurring or blocky artifacts.

Lossless compression - used by PNG - never discards any pixel data at all. It just repacks the exact same information more efficiently, the same way a ZIP file shrinks a document without changing its contents. That guarantees a pixel-perfect result every time, but it also means PNG files can't shrink nearly as much as a lossy JPEG or WebP can for the same image, especially photos.

What the Quality Slider Actually Does

When you export as JPEG or WebP, the quality slider (1-100) controls exactly how aggressively the lossy encoder discards detail. A higher value keeps more of the original visual information and produces a larger file; a lower value throws away more and produces a smaller one. Somewhere around 70-85% is usually the sweet spot - file size drops noticeably while the loss stays essentially invisible to the eye.

Switch the output format to PNG and the quality slider disables itself. That's not a bug - PNG is lossless, so there's nothing for a quality value to control. The browser's PNG encoder produces the same pixel-accurate output regardless of what that slider is set to, which is why it's grayed out for that format.

Resizing vs. Compressing - Two Separate Levers

Compression quality and resizing are two independent ways to shrink a file, and this tool lets you combine them. Setting a max width and/or max height scales the image down (the tool only ever scales down, never up, and always preserves the original aspect ratio) - fewer pixels means less data to encode no matter what quality setting you use.

LeverWhat it changesEffect on file size
Quality sliderHow much detail is discarded per pixel (JPEG/WebP only)Lower quality = smaller file, same dimensions
Max width / heightThe total number of pixels in the imageFewer pixels = smaller file, regardless of quality

For the biggest reduction, use both together: downscale an oversized image to the dimensions you actually need, then apply a moderate quality setting on top.

Common Use Cases

Faster Website LoadingSmaller images mean faster page loads, better Core Web Vitals scores, and lower hosting bandwidth costs.
Smaller Email AttachmentsStay under attachment size limits so your photos actually reach your recipient's inbox.
Saving Phone StorageShrink old photos you want to keep but don't need at full resolution, freeing up space for new ones.
Social Media UploadsMany platforms cap upload size or re-compress large files themselves - pre-compressing gives you more control over the result.

Frequently Asked Questions

Does re-saving a JPEG or WebP file multiple times cause it to lose quality each time?

Yes - this is called generation loss. Every time a lossy format like JPEG or WebP is decoded and re-encoded, the encoder discards a little more detail on top of whatever was already lost in the previous pass, even if the quality setting stays the same. That's why it's best to always compress from the original, unedited source file rather than repeatedly re-compressing an already-compressed copy. PNG doesn't have this problem since it's lossless - re-saving it never discards additional data.

What's the difference between lossy and lossless compression?

Lossy compression (used by JPEG and WebP) permanently discards some image detail to shrink the file, with the amount controlled by a quality setting. Lossless compression (used by PNG) repacks the exact same pixel data more efficiently, so the image is byte-for-byte reconstructable but the file doesn't shrink nearly as much.

Why is the quality slider disabled when I choose PNG as the output format?

PNG is a lossless format - it has no concept of a quality level, because it never throws away pixel data in the first place. The quality slider only affects JPEG and WebP output, which are lossy and let you trade visual fidelity for a smaller file.

Does resizing an image reduce its quality?

Resizing down reduces the number of pixels, not the fidelity of the pixels that remain - so a well-downscaled image usually still looks sharp, just smaller. It shrinks file size on its own, independent of whatever quality setting you use for the compression step.

What quality setting should I use?

70-85% is a good default for JPEG and WebP - it usually cuts file size significantly with little to no visible difference. Drop lower for thumbnails or background images where fidelity matters less, and stay closer to 90%+ for images with fine text or sharp edges.

Can I compress more than one image at once?

This tool processes one image at a time so you can preview and fine-tune the result before downloading. For a batch of photos, run each one through individually.

Compress an Image