Image compression, explained
Most photos straight from a phone or camera are 2 to 8 MB, far more than a web page, an email or an upload form needs. An image compressor makes them smaller in two ways: it resizes them to the number of pixels you actually need, and it stores those pixels more efficiently. Done well, the difference is hard to see while the file shrinks by 70 to 90%. This tool does both inside your browser, so private photos never leave your device.
It uses the same kind of encoders as desktop tools: MozJPEG for JPG (typically 10–20% smaller than the encoder built into a browser), libwebp for WebP, the aom reference encoder for AVIF and OxiPNG for PNG. They run as small WebAssembly modules, downloaded once from a public CDN when you first compress, in several background threads at the same time. If a module cannot load, for example when you are offline right after opening the page, the browser’s own encoders take over, so compressing keeps working.
Lossy and lossless compression
Lossy formats such as JPG, WebP and AVIF throw away detail your eyes hardly notice; the quality slider decides how much. Around 70–80 is the sweet spot for photos. Lossless PNG keeps every pixel exactly, which suits screenshots and graphics with sharp edges and text, but makes photos huge. Smart PNG sits in between: it reduces the image to at most 256 carefully chosen colours (colour quantization, the idea behind pngquant and TinyPNG), optionally smooths gradients with dithering, and saves a palette PNG that OxiPNG then squeezes further. Graphics look the same and are often several times smaller, with transparency intact.
Which format should you use?
| Format | Best for | Transparency | Notes |
| WebP | Photos and graphics on websites | Yes | Usually 25–35% smaller than JPG at the same quality; every current browser can show it |
| JPG | Photos for email, forms and older software | No | Opens everywhere; transparent areas get the background colour you choose |
| AVIF | The smallest photos for modern sites | Yes | Often 30–50% smaller than JPG; slower to create, and a few older programs cannot open it |
| Smart PNG | Screenshots, logos, icons, charts | Yes | Up to 256 colours; gradients can band without dithering |
| PNG | When every pixel must stay identical | Yes | Lossless; rarely much smaller than the original PNG |
Not sure? Choose Auto. It compresses every image as WebP and as JPG (and, for flat graphics, as Smart PNG) and keeps the smallest result.
Compress to a specific size: 100 KB, 50 KB or any limit
Job portals, government forms, visa applications and some web shops only accept images below a certain size. Type a limit in KB, or press one of the chips, and the compressor searches for the highest quality that still fits, separately for every image. If even a low quality does not fit, it shrinks the dimensions step by step until it does, and tells you on the card that it had to. When a limit cannot be reached at all, the card shows a warning instead of silently giving you a bigger file.
Resizing matters more than quality
A 12-megapixel photo is 4000 × 3000 pixels, while a blog post rarely shows images wider than 1200 to 2000 pixels and an email preview even less. Setting the longest side to 1920 or 1280 pixels removes most of the weight before any compression: half the width and height is a quarter of the pixels. The tool scales in steps with high-quality smoothing, can add a light sharpen afterwards, and never enlarges a small image.
Check the result before you download
Click a thumbnail to open the before/after view. Drag the line, or use the keyboard, to flip between the original and the compressed image, and press Z for a 100% view where every pixel is visible; that is the right way to judge text, fine lines and skin tones. The numbers under the image show both sizes, the dimensions, the format and the encoder that made it. A green label on a card means the image got smaller, a yellow one means compressing made it bigger (then Keep the original if it is already smaller returns your own file untouched).
Privacy: are my images uploaded?
No. Images are read, resized and encoded in this browser tab and never sent anywhere. The page loads the encoder modules from a public CDN (code only) and cookie-free page-view analytics; neither receives your images. After the first compression you can switch off Wi-Fi and keep working, which is an easy way to check. Photos often contain EXIF metadata: camera model, date and time and sometimes the exact GPS location. Because every image is redrawn and encoded again, none of that ends up in the compressed file. Orientation is applied first, so portrait photos stay upright. If you need to keep the metadata, keep your originals as well.
Batches, ZIP and phones
There is no limit on the number of images. Several are compressed at the same time in separate threads, and the bar at the top shows the progress. The real limit is your device’s memory: hundreds of ordinary photos are fine on a laptop, but a phone may struggle with very large files; split the batch if that happens. ZIP builds one archive in the browser with each file under your name pattern ({name}-min by default, so your originals are never overwritten) and can keep the original file dates. On phones that support it, Share hands all images to the system share sheet, where “Save images” puts them in the gallery. Press F for a full screen workspace with the settings in a slide-in panel.
HEIC photos, GIFs and other inputs
JPG, PNG, WebP and AVIF files, GIFs and BMPs work as input; an animated GIF becomes a still image of its first frame. iPhone HEIC photos and TIFF files only open if your browser can decode them: Safari can, Chrome and Firefox usually cannot. Convert HEIC first with the HEIC to JPG converter, then compress the result here.
Tips for the best result
Start from the original rather than an already compressed copy, because every lossy save loses a little more. Use presets as a starting point and judge one image in the compare view before you run a hundred. For screenshots with text try Smart PNG with 64 or 128 colours; for photos WebP at 70–80 is usually indistinguishable from the original. And keep your originals: compression is meant for sharing and publishing, not for archiving.
More image tools
Resize a whole folder to exact dimensions with the bulk image resizer, convert iPhone photos with the HEIC to JPG converter, make a screenshot look good with the screenshot beautifier, combine images into one document with JPG to PDF, or lay them out with the photo collage maker.