Large photos slow down pages, bounce off email limits and get rejected by upload forms. Set a quality level or type the size you need, such as 200 KB, and this compressor finds the right settings for every file in your batch, right on your own device.
Processing locally on your device
Overview
Image compression works by discarding information your eyes are unlikely to miss. JPEG, WebP and AVIF are lossy formats: they split the picture into small blocks, convert them to frequency data and throw away fine detail according to a quality setting. A 12-megapixel phone photo is often 3–6 MB straight from the camera; re-encoded as a JPEG at 75–80% quality it typically lands between 400 KB and 1 MB with no difference you can see at normal viewing size. WebP is usually 25–35% smaller than JPEG at similar quality, and AVIF can go further still.
This tool offers two ways to work. In “By quality” mode you drag a slider from 5% to 100% and every image is encoded at that level. In “Target size” mode you enter a limit in kilobytes, or pick a preset of 50 KB, 100 KB, 200 KB, 500 KB or 1 MB, and the compressor binary-searches the quality value until the file fits. If even a low quality can’t get under the limit, it steps the resolution down as well. You can also cap the dimensions at 3840, 2560, 1920, 1280 or 800 px, which is often the single biggest saving for photos destined for the web.
Everything runs in your browser using the Canvas API, so nothing is sent to a server. The encoder can keep the original format or output JPG, WebP or AVIF; AVIF appears only when your browser can encode it and is disabled otherwise. Because PNG is a lossless format, recompressing a PNG as PNG saves little. For screenshots and graphics with big savings in mind, convert them to WebP or JPG instead.
Each result shows the original size, the new size and the percentage saved, plus a before/after slider so you can drag across the image and check edges, text and skin tones. If re-encoding would make a file larger, which happens with images that were already well optimized, the tool keeps your original and marks it “already optimal”. Re-encoding also strips EXIF metadata such as GPS location and camera details.
| Use case | Format | Quality / target | Max dimension |
|---|---|---|---|
| Blog or article photo | WebP | 75–82% | 1920 px |
| Full-width hero image | WebP or AVIF | 70–80% | 2560 px |
| Product photo | WebP or JPG | 80–85% | 1920 px |
| Email attachment | JPG | Target 500 KB | 1920 px |
| Form upload (ID photo, scan) | JPG | Target 50–200 KB | 1280 or 800 px |
| Archive or print | Original | 90–100% | Keep |
Drag images onto the page, click to browse, or paste a copied image with Ctrl+V.
Choose “By quality” and set the slider, or choose “Target size” and enter a KB value or pick a preset.
Optionally pick an output format (Original, JPG, WebP or AVIF) and a maximum dimension.
Check each result with the before/after slider and the size-saved figure.
Download files one by one or grab everything as a single ZIP.
Use cases
Government portals, job sites and university applications often cap photo or document scans at 100 KB or 200 KB. Target-size mode gets each file under the limit without guessing quality values.
Hero images and blog photos are usually the heaviest part of a page. Capping width at 1920 or 2560 px and exporting WebP can cut page weight dramatically and improve Largest Contentful Paint.
Many mail servers reject messages above 20–25 MB. Compressing a set of holiday photos to around 500 KB each lets you send dozens in a single message.
Shopify, WooCommerce and marketplace listings load faster with lighter images. Batch-compress a whole product shoot and upload the ZIP contents in one go.
Pro tips
Answers to common questions about the image compressor.
It encodes the image repeatedly, using a binary search over the quality value to find the highest quality that still fits under your limit. If the minimum quality is still too large, it reduces the image dimensions step by step until the file fits.
Some images, especially ones that were exported by an optimizer or saved at low quality, get larger when re-encoded. Instead of handing you a bigger file, the tool keeps the original untouched.
AVIF encoding depends on the browser. If your browser can display AVIF but can’t encode it through the Canvas API, the option is disabled. WebP is supported everywhere and is a good fallback.
Yes. Keep the original format or choose WebP, both of which support transparency. Converting to JPG removes transparency, so only choose JPG for images without see-through areas.
Yes. Re-encoding through the canvas discards EXIF metadata, including GPS coordinates, camera model and date taken. If you need to keep metadata, keep a copy of the original file.
No. ToolEnhancer processes files on your own device inside the browser. They are never sent to, stored on or seen by our servers.
Yes. The image compressor is free to use with no sign-up, no watermarks and no daily limits.