Compress images online
Shrink JPG, PNG, WebP, and AVIF images by quality or to a target file size, entirely in your browser. Your images never leave your device: no upload, no account, no tracking.
Drop images here, paste, or
JPEG, PNG, WebP, AVIF · multiple files welcome · nothing is uploaded
Higher keeps more detail; lower makes smaller files. PNG is lossless, so quality does not apply to it.
The tool finds the highest quality that still fits under this size, per image.
Keep original re-compresses each file in its own format; PNG stays PNG (lossless). To change format on purpose, use a converter.
Note: AVIF gives the smallest files but downloads a 3.3 MB encoder the first time and encodes more slowly. It is listed on the privacy page.
What this tool does
Something has told you the file is too big. An upload form with a 2 MB cap. An email attachment limit. A page that loads slowly because its header image is a 6 MB JPEG straight off a camera.
This page makes image files smaller.
Drop in JPEG, PNG, WebP, or AVIF files and drive it one of two ways. In quality mode you set one slider and every image re-encodes at that setting, each card showing the size it landed on and how much came off. In target size mode you name a number, say under 500 KB, and the tool searches for the highest quality that still fits underneath it, image by image.
The limitation is the nature of the thing, so it goes here rather than in the small print. Lossy compression discards data permanently. A JPEG you compress today cannot be un-compressed tomorrow, recompressing an already-compressed file compounds the damage, and no tool anywhere recovers what an earlier pass threw away.
Keep your originals.
The trade you are making
For JPEG, WebP, and AVIF, smaller means re-encoded, and re-encoding is lossy by definition. Detail is spent to buy the space. At everyday settings the change is hard to see, but it is real, and each card prints the exact before and after so you can judge the trade yourself.
PNG is the exception. It goes through oxipng, a lossless optimizer that strips redundant structure without altering a single pixel, which is why the quality slider does not apply to it.
One side effect runs in your favor. Re-encoding drops the hidden EXIF and GPS metadata a phone writes into a photo, so a compressed copy is also a less revealing one.
Formats, and when to force one
By default each image keeps the format it arrived in. A JPEG stays a JPEG, a PNG stays a PNG.
You can override that and force JPEG, WebP, or AVIF across the whole batch. WebP and AVIF generally beat JPEG at the same visible quality. AVIF is the smallest of the three and also the slowest, and picking it downloads a 3.3 MB encoder the first time, by far the largest thing this page ever fetches.
If you are changing format for some reason other than size, that is a conversion rather than a compression, and Convert Image is the better place for it.
Running a batch
Images encode one at a time in a background thread, so the page stays usable while a long set works through. Everything stays in memory, which means the ceiling is your own device rather than a server quota: comfortably a few hundred images on a desktop, fewer on a phone.
If one image is too large for the browser to re-encode, that one is reported by name and the rest carry on. And if the smallest result would be bigger than the file you started with, which happens often with images that were already small, the tool keeps your original untouched and says so.
Nothing is uploaded
Your images are read from disk into the tab and never sent anywhere. Encoding happens on your device.
What the page does fetch, all from this same address, are the codecs it needs, and only the ones your choices actually call for. A JPEG encoder of about 246 KB when you compress to JPEG. A WebP encoder of about 338 KB for WebP. The 3.3 MB AVIF encoder for AVIF. A PNG optimizer of about 160 KB for PNGs. A packer of about 97 KB if you press "Download all (ZIP)".
So this is not a tool that runs with the network unplugged from the moment the page opens. It fetches its own machinery from its own domain, when that machinery is needed, and sends your pictures nowhere.
You can watch exactly that. Open your browser's DevTools Network tab and compress something: a codec comes down from this domain, and no image data goes up.
The full source is public on GitHub under the AGPL-3.0 license, and the privacy page names every one of those codecs and the moment it is fetched.
Questions
How do I compress images online for free?
Drop them onto this page.
It is a free online image compressor that runs in your browser: no upload, no install, no account, no watermark, no queue. Pick a quality level or a target file size, then download the results one at a time or as a ZIP.
Are my images uploaded anywhere?
No.
Compression runs in your browser on your own device. The page pulls its encoders down from this domain, and your image data travels in the other direction, which is to say nowhere.
Verify it rather than believe it. Open the DevTools Network tab, compress a file, and watch what moves.
Can I compress an image to a specific file size?
Yes. Switch to target size mode and enter a number in KB or MB.
For each image the tool runs a short search across the quality range to land as close under your target as it can, then shows the size it reached and the quality it needed to get there.
If even the lowest quality cannot reach a very small target, it says so instead of guessing. Cutting the pixel dimensions first with Resize Image is the usual fix.
Does compressing reduce quality?
For JPEG, WebP, and AVIF, yes, a little. Those formats are lossy and re-encoding discards detail.
At normal settings it is hard to see, and every card shows the exact sizes so the trade is visible rather than implied. PNG is handled losslessly, so its pixels come out unchanged.
None of the loss is reversible. Keep the originals of anything you care about.
Does it work on PNG files?
Yes, losslessly.
PNGs go through oxipng, which strips redundant structure without touching a pixel. That is why the quality slider is inactive for them.
Lossless has a floor, though. Making a PNG dramatically smaller means moving it to a lossy format such as WebP or JPEG, which is a deliberate change rather than an optimization.
Which format gives the smallest files?
Usually AVIF, then WebP, then JPEG.
The gap is real and so are the costs. AVIF encodes slowly and needs that 3.3 MB encoder downloaded once, and a few older programs still cannot open the result. WebP is the sensible middle: every current browser reads it and it encodes far faster.
If the file has to open anywhere at all with no thought required, keep it a JPEG.
How many images can I compress at once?
There is no fixed limit built in.
The practical one is your device's memory: a few hundred are comfortable on a desktop, fewer on a phone. If the browser runs short, the tool lists the images it could not finish rather than stopping without explanation.
Related tools
Convert Image | change a JPG, PNG, WebP, or AVIF into another format. Resize Image | change an image's pixel dimensions. Photo Editor | crop, resize, redact, and batch-edit images. Remove EXIF data | strip location and camera metadata before sharing. HEIC to JPG | convert iPhone photos to JPG. Find Duplicate Photos | spot duplicates and keep the best copy.