Image Compressor
Large images slow pages down, eat phone storage, and bounce back from email size limits. Most photos can shrink by half or more with no visible difference — you just need the right quality setting.
Upload one image or a whole batch, pick a quality level or a target file size, and download the compressed result — all in your browser, nothing uploaded.
Compressed Images
How It Works
JPEG and WebP are lossy formats: they throw away image detail your eyes barely notice, and the quality setting controls how much they throw away. Quality 100 keeps almost everything (and barely shrinks the file); quality 80 typically cuts a photo to a third of its size with no visible change; below 50 you start to see blocky artefacts around edges and text. PNG is lossless — it keeps every pixel exactly, which is why it cannot be squeezed by a quality slider and why photos saved as PNG are so large.
Quality mode compresses each image once at the quality you pick. Target-size mode is smarter: it binary-searches the quality setting, trying a level, measuring the result, then halving the range — eight rounds pin the quality to within 0.004 of the best value, landing as close to your target size as the format allows. If even the lowest quality is still bigger than your target, the tool tells you the smallest size it could reach instead of pretending it hit the target.
Worked Example
A 1600×1200 photo saved at high quality (262 KB, 268,465 bytes) compressed to JPEG at quality 80 came out at 60 KB (61,138 bytes) — 77.2% smaller. The exact saving depends on the photo: a busy landscape compresses less than a plain sky, because there is more detail to keep. Try quality 80 first, and only go lower if you still need a smaller file.
How to Use This Tool
Pick your images, choose a mode, and click Compress Images. Each image gets its own row showing the original size, the compressed size, the percentage saved, and a download link.
- Choose your images. One file or a batch — every file is processed separately, in your browser, and nothing is uploaded anywhere.
- Pick a mode. Quality mode gives you a slider (80% is a good default). Target-size mode asks for a size in KB and finds the quality that hits it.
- Pick a format. JPEG is the safe choice for photos. WebP is smaller but some older software cannot open it. PNG keeps every pixel but stays large.
- Download each result. Click the download link on each row. File names get a "-compressed" suffix so your originals stay untouched.
The tool never uploads your images: every file is read, drawn to a canvas, and re-encoded locally. That also means there is no file-count limit beyond what your device can handle — but very large batches on a phone may be slow, so compress ten or twenty at a time.
Tips and Practical Advice
- Start at quality 80. It is the best trade-off for photos: dramatically smaller files with no visible loss on screens. Drop to 70 only if you need the file smaller still.
- Match the format to the image. Photos compress best as JPEG; screenshots, logos and graphics with flat colours do better as WebP or PNG.
- Resize before you compress. A 4000-pixel-wide photo shown at 800 pixels wide is wasting most of its bytes. Use the Image Resizer first, then compress — the two steps together often cut a file by 90%. Cropping away the edges you do not need first shrinks the file before either step — an image cropper cuts the frame to the shape you want.
- Keep your originals. Compression throws detail away permanently. Download the compressed copies and keep the originals somewhere safe.
Lossy vs Lossless: What Compression Actually Does
Every image format falls into one of two families, and the difference decides how small a file can get. Lossy formats — JPEG and lossy WebP — shrink a file by permanently throwing away image detail. Lossless formats — PNG and lossless WebP — keep every pixel exactly as it was, so the original can always be recovered bit for bit. Lossy wins on size; lossless wins on fidelity. There is no format that gives you both at once.
JPEG works by splitting the image into blocks of 8 × 8 pixels and discarding the fine detail inside each block first — the high-frequency texture your eyes notice least. That is why quality 80 looks identical to the original on a screen while cutting the file dramatically, and why pushing the quality below 50 starts to show visible squares around edges and text. The quality slider is really a dial for how much detail you are willing to lose.
The numbers show how much room there is to work with. A 1600 × 1200 photo holds 1,920,000 pixels; stored raw at 3 bytes per pixel (one each for red, green and blue) that is 5,760,000 bytes — about 5.5 MB. The worked example above starts from a 262 KB high-quality JPEG and reaches 61 KB at quality 80, roughly 94 times smaller than the raw pixels. How far any single photo can go depends on its content: a busy landscape full of detail resists compression, while a plain sky or a flat wall shrinks much further, because there is simply less information to keep.
PNG takes the opposite approach. It is lossless, so it compresses with DEFLATE — the same algorithm behind ZIP files — plus filters that predict each pixel from its neighbours. That works beautifully on screenshots, logos and graphics with flat colours and repeated patterns, and poorly on photographs, where almost every pixel differs from the last. It is also why the quality slider does nothing to a PNG: there is no quality to trade, because nothing is being thrown away.
Two habits follow from all of this. First, always compress from the original file. Every JPEG save discards a little more detail, so compressing an already-compressed JPEG buys a tiny saving at the cost of visibly worse artefacts — the damage is cumulative and cannot be undone. Second, shrink the pixels before you shrink the bytes: crop away what you do not need, resize to the size the image will actually be shown at, and only then compress. The Image Resizer and the Image Cropper handle the first two steps; this tool finishes the job.
Frequently Asked Questions
Does compressing an image reduce its quality?
Yes, slightly — JPEG and WebP are lossy, so some detail is discarded. At quality 80 the loss is invisible on screens for almost all photos. PNG output is lossless, so it loses nothing but also shrinks less.
How does target-size mode work?
It binary-searches the quality setting: it tries a quality level, measures the resulting file size, then halves the search range — eight rounds pin the quality to within 0.004 of the best value. If even the lowest quality is bigger than your target, it reports the smallest size it could reach.
Can I compress several images at once?
Yes — select multiple files and each is compressed separately, with its own before/after sizes and download link. Everything runs in your browser, so there is no upload and no queue.
Are my images uploaded anywhere?
No. Every file is read, drawn to a canvas and re-encoded locally in your browser. Nothing leaves your device, and closing the page deletes everything.
Why is my PNG barely smaller after compressing?
PNG is lossless — it stores every pixel exactly, so a quality slider cannot shrink it the way JPEG can. For a much smaller file, convert the photo to JPEG or WebP instead.
What is the difference between lossy and lossless compression?
Lossy compression (JPEG, lossy WebP) permanently discards image detail to shrink the file — the original pixels cannot be recovered. Lossless compression (PNG, lossless WebP) keeps every pixel exactly, so the image can be restored bit for bit, but photographs shrink far less. Use lossy for photos and lossless for graphics, text and anything you plan to edit again.
Does compressing an image twice make it much smaller?
Only a little — and it costs quality each time. A second JPEG pass finds less detail left to remove, so the extra saving is small while the blocky artefacts grow. Always compress from the original file, not from a compressed copy, and keep the original somewhere safe.
Last updated: · Last reviewed: 21 November 2026