How It Works
A transparent look at what happens between "add images" and "download": the exact pipeline your files go through, the three compression modes, and the trade-offs we won't hide from you.
The short version
AI Image Compressor is a web page, not a cloud service. When you add images, your browser reads the files straight from your device with the File API, decodes them into raw pixels, and re-encodes them through the Canvas API at the quality level and format you picked. The result is a Blob held in memory, which you preview side by side with the original and download to your disk. Every stage — decoding, resizing, encoding, even assembling the ZIP archive — runs locally. No file is ever transmitted, because no server takes part in the process.
Step by step
Add images
Drag files onto the dropzone, browse your device, or paste from the clipboard. A batch can hold up to 30 images, each up to 30 MB.
Choose settings
Smart, Quality or Target file size mode, an optional resize, and an output format. The compressor applies your settings to the whole batch.
Preview & download
Compare before and after, check each file's new size, then save images one by one or grab the entire batch as a single ZIP.
What happens under the hood
The pipeline has five stages, and all of them run in your browser tab:
- Decode — the browser's File API reads each file, and the built-in image decoder (
createImageBitmap) turns it into raw pixels. A decode cap of roughly 50 megapixels keeps memory usage sane on phones and tablets. - Optional resize — if you asked for smaller dimensions, the pixels are drawn onto a canvas at the new size, with the aspect ratio always preserved.
- Canvas re-encode — the canvas is re-encoded with the chosen codec (JPEG, PNG, WebP or AVIF) and a quality parameter. Re-encoding from raw pixels is also what removes EXIF metadata, including GPS tags.
- Quality search — depending on the mode, the engine walks a ladder of quality levels or binary-searches quality (and, where needed, dimensions) to hit your goal as closely as the image allows.
- Blob download — every result becomes a Blob with an object URL. You download files individually, or the tool builds a store-only ZIP in vanilla JavaScript, locally, and hands you one file.
The three compression modes
Smart (adaptive) is the default. For every image it walks a ladder of quality levels from high to low and stops at the first one that produces a solid size reduction — so you get a meaningfully smaller file while keeping the highest reasonable quality, without touching a single slider.
Quality is manual control. You set the encoder quality anywhere from 5% to 95% and the tool applies exactly that, which is handy when a whole batch should share one predictable setting.
Target file size is for upload forms with hard limits. You name a size — 20 KB to 1 MB presets or any custom value — and the engine binary-searches the quality scale. If quality alone can't get there, it progressively downscales the image. When a target is physically unreachable, the tool reports the closest achievable result instead of pretending otherwise.
Why it's private
There is no upload step in this architecture, because the work happens where the files already are: on your device. Images never leave the browser, so there is nothing to store, log or leak. As a bonus, re-encoding through Canvas strips EXIF metadata — including GPS coordinates — from the output, which matters more than most people realize when photos get shared. The privacy policy spells out exactly what the site does and doesn't handle, and the About page explains the thinking behind this privacy-first setup.
Honest limitations
- Targets aren't magic. A highly detailed 4000-pixel photo needs more bytes than a flat screenshot, so target mode finds the closest achievable file and tells you when an exact size can't be met.
- Browser encoding support varies. AVIF output appears only where your browser can actually encode it — the tool auto-detects this and greys the option out otherwise. WebP is the reliable modern fallback.
- Very large images strain devices. The ~50-megapixel decode cap and 30 MB per-file limit protect low-memory phones, but older devices can still feel slow with huge camera photos. Batch size caps at 30 files per run.
Tips for the best results
- Resize first. Shipping a 6000-pixel camera image into a 1200-pixel layout wastes most of the file; dimensions are the biggest lever. The dedicated Image Resizer handles precision dimension work.
- Pick the right format. WebP and AVIF are typically smaller than JPEG for photos; PNG stays the choice for transparency and razor-sharp edges. The Image Converter handles format swaps on their own.
- Compress moderately, not maximally. Extreme low quality produces artifacts; a middle setting usually looks identical at viewing size for a fraction of the bytes.
- Trust the comparison view. Check the before/after preview before downloading — your eyes are the judge that matters.
Still deciding what a setting means for your files? The FAQ answers the questions we hear most, and All Tools shows everything else on the site.
See it work on your own images
No account, no queue, no upload — open the compressor and run a batch on your device in the next thirty seconds.
Open the Image Compressor