Image Compressor
Batch image compression that tells the truth: real OxiPNG lossless PNG optimization, labeled JPEG/WebP encoders, target file size with a bounded search, memory-safe queues, and a ZIP with a manifest. All in your browser.
Drag images here, browse, or paste
JPEG, PNG, WebP · verified by file signature · processed one by one within this device's memory budget · nothing is uploaded
Browser encoder; bytes vary slightly between browsers.
Lossless OxiPNG optimization: pixels stay identical, so there is no quality setting. Convert to JPEG or WebP for lossy savings.
What actually makes image files smaller
Three levers, in order of power: dimensions, format, and encoder quality. Halving both dimensions cuts pixels to a quarter, which no quality slider can match; the resize field above applies it cleanly and never upscales. Format is the second lever: photographs compress far better as JPEG or WebP than as PNG, while screenshots, logos and anything with transparency belong in PNG or WebP. Only then does quality matter, and its effect depends on the image: a busy photo hides compression that a flat logo shows immediately, which is why the before/after compare exists on every card instead of a blanket promise about quality levels.
PNG is the special case most tools fake. A PNG re-saved through a browser canvas usually gets bigger, not smaller; real PNG optimization means smarter filtering and entropy coding of identical pixels, which is what the embedded OxiPNG optimizer does here. Lossless means lossless: there is no quality slider for it, on purpose.
Image compression FAQ
Is this real compression or just re-saving the image?
Real, and labeled per file. PNGs go through OxiPNG, a dedicated lossless optimizer compiled to WebAssembly, so the pixels stay identical while the encoding gets tighter. JPEG and WebP use the browser encoder at your chosen quality, labeled as such because bytes can vary slightly between browsers. Every result card names the codec that produced it, and if a re-encode does not beat your original, the original is kept byte-for-byte and the card says so.
How do I compress an image to a specific size like 500 KB?
Tick "Target file size" and enter the limit. The tool runs a bounded quality search (at most 7 encodes) on JPEG or WebP output and reports the result honestly: the quality it landed on and whether the target was met. When a target is impossible at the minimum quality, it says so and tells you the smallest achievable size, with the fix, reducing dimensions, named instead of pretending.
Will transparency survive compression?
In PNG and WebP output, yes, untouched. JPEG has no alpha channel, so converting a transparent image to JPEG must flatten it: this tool detects transparency with a full-resolution scan, lets you pick the matte color, and states on the result card exactly what was flattened and to what. The output format is never changed behind your back: if this browser cannot encode WebP, the option is disabled up front rather than silently producing a JPEG.
Why does the tool refuse some files?
For your tab’s survival, with the reason stated. Dimensions are read from the file header before any decoding, and a file whose decoded pixels would blow the memory budget (40 megapixels on desktop, 16 on constrained devices) is rejected with the estimated memory cost, because a 400-megapixel PNG can be 2 MB on disk and 4.8 GB decoded. Animated GIF and WebP are refused too: a still-image pipeline would silently keep only the first frame.
What happens to EXIF, GPS and other metadata?
It is stripped: re-encoding goes through a canvas, which drops EXIF, GPS location, and other metadata, and orientation is normalized into the pixels first so photos do not rotate. That is usually what you want for web publishing (smaller files, no location leaks), and each result card states it. If you need metadata preserved, keep the original file for your archive.
How many images can I compress at once?
Up to 20 per batch, processed through a bounded queue (one at a time on phones, two on desktops) so a big batch cannot decode everything simultaneously and crash the tab. Results download individually or as one ZIP with unique names and an optional manifest.csv recording sizes, formats, codecs and notes for every file. Everything runs locally; your images never leave the device.
More free tools: Compress PNG · Compress JPEG · To 100 KB · Reduce Image Size · Image Resizer · Image Converter