Image Compressor
Compress JPEG, PNG, WebP, and AVIF images locally. Batch processing, target size mode, automatic EXIF stripping. Files never leave your browser.
Drop images here
JPEG, PNG, WebP, GIF, BMP · up to 50 MB each · up to 50 files
or paste from clipboard
No files yet. Drop or paste images to get started.
Why a no-upload image compressor?
Most free online image compressors POST your photos to a server. That works — but it also means your product screenshots, family photos, unreleased designs, and casual snapshots of paperwork all pass through somebody else's machine. Even when those services promise auto-deletion, copies live on in caches, request logs, and crash dumps. This tool never sends a single byte. The Canvas API decodes and re-encodes your images entirely inside your browser; you can open the network tab and watch zero requests fire. Whether you're a designer iterating on draft mocks or a person preparing photos for an insurance claim, the privacy model here is simple: files never leave your device.
How does browser-side compression work?
Modern browsers ship a complete image pipeline: createImageBitmap decodes JPEG/PNG/WebP/GIF/BMP, a canvas re-renders the pixels, and canvas.toBlob re-encodes the result with native JPEG, PNG, WebP, and AVIF encoders. We add target-size search, multi-format output, and metadata stripping on top. Quality on common photos lands within a couple of percent of mozjpeg or oxipng — close enough for the web while keeping the bundle tiny. We deliberately skip WebAssembly encoders so the page stays under twelve kilobytes of new JavaScript and starts instantly on slow networks.
Which output format should I choose?
For photographic content (camera shots, screenshots of photos), AVIF gives the smallest files at the same visual quality, followed by WebP, then JPEG. Use AVIF when you control the viewer (modern browsers, your own apps) and JPEG when you don't (email attachments, very old systems). For UI screenshots, line art, logos, anything with sharp edges or transparency, choose PNG — JPEG and WebP-lossy will smear edges. For animated GIFs, this tool only handles the first frame; for animation, look for a dedicated GIF/WebM converter. The multi-format output lets you tick several boxes and compare actual sizes side-by-side rather than guessing.
How does target size mode work?
Tell the tool you need an image under, say, 200 KB, and it binary-searches the quality range 0–100. Each step re-encodes the image at the midpoint and checks the resulting blob size, then narrows the range upward or downward. It converges in at most ten attempts on the highest quality that still fits your target. If even quality 0 produces a file too large (rare for sensible photos but possible for very high-resolution panoramas), the UI tells you and suggests resizing the image first — a dimensional reduction usually unlocks the size budget without sacrificing visible quality.
Why strip EXIF metadata?
JPEGs from phones and cameras carry hidden EXIF blocks: capture timestamp, camera make/model/serial, lens, exposure settings, and crucially GPS latitude/longitude when location was on. PNGs from screenshot tools carry similar tEXt and tIME chunks. Most social platforms and messaging apps don't display this metadata, so users assume it's gone — but the bytes ride along with the image and resurface when the file is downloaded, archived, or scraped. Stripping happens automatically here because Canvas re-encoding doesn't preserve the original metadata blocks. The toggle is on by default; you can keep it on without thinking and never accidentally publish your home address.
FAQ
- Are my images uploaded anywhere?
- No. The browser's Canvas API decodes and re-encodes your images entirely on your device. Open the network tab and watch — zero requests fire while you compress. The only network use is loading this page itself.
- Why is AVIF disabled in my browser?
- AVIF encoding requires Chromium 100+, Safari 16.4+, or Firefox 113+. We feature-detect at load and disable the AVIF checkbox when your browser cannot encode it. You can still produce JPEG, PNG, and WebP — these are universally supported.
- How does target size mode find the right quality?
- We binary-search the quality range 0–100, doing up to 10 re-encodes per file. After ~10 attempts we converge on the highest quality whose output is still ≤ your target size. If even quality 0 is too large (rare for very high-resolution images), we suggest resizing first.
- Why is my PNG barely smaller after compression?
- PNG is lossless — re-encoding only saves space if the source had inefficient encoding. For real size reduction on photographic content, switch to JPEG or WebP. For UI screenshots and graphics where transparency or sharp edges matter, PNG is correct but won't shrink much.
- Why can't I drop HEIC files?
- HEIC/HEIF is Apple's proprietary format. Browsers cannot decode it without WebAssembly libraries that would add ~2 MB to this page and violate our zero-dependency policy. On macOS/iOS, open the file in Photos and export as JPEG first.
Related Tools
Base64
Encode and decode Base64, Base64URL, percent-encoded URLs, and files (image/PDF preview included). UTF-8 safe, runs entirely in your browser.
EXIF Viewer
Inspect EXIF metadata or strip it from JPEG and PNG images entirely in your browser. Pixel-perfect rewrite, GPS revealed only on demand, zero uploads.
QR Generator
Create QR codes for URLs, Wi-Fi, vCard contacts, email, SMS, calendar events and more. Embed a logo, choose error-correction, download as SVG or PNG. 100% in-browser.

