Image Compressor
Compress JPG, PNG and WebP images — or hit an exact target size in KB/MB.
Your files never leave your device. Everything runs in your browser.
What Image Compressor does
Image Compressor shrinks JPG, PNG and WebP photos in your browser, either by choosing a quality level or by targeting an exact file size in KB or MB. Because every file is decoded and re-encoded on your own device, you can process private photos, scanned documents or design exports without uploading anything.
The tool is built for batches: drop a whole folder and each image gets its own progress bar, result card and download button, plus a ZIP with everything at once. Quality mode gives you a fast, predictable result, while Target size mode searches for the settings that push a file under a limit you set — useful when a form, an email attachment or a job portal rejects oversized files.
Processing runs in a background worker, so the interface stays responsive even with large batches, and a live estimate shows the likely result before you commit. You can compare before and after with a slider on every file.
How to use Image Compressor
- Drag and drop JPG, PNG or WebP files onto the page, click the dropzone to browse, or paste an image from the clipboard.
- Choose a mode: Quality to pick a compression level, or Target size to enter a limit such as 200 KB and select KB or MB.
- Set the output format (Keep original, JPEG, WebP or PNG), optionally limit the maximum width or height, and decide whether metadata should be stripped — it is stripped by default.
- Click Compress images. Each file then shows chips describing what happened, for example the quality used, the number of downscales, or that it was already under the target.
- Inspect each result with the before/after slider, then download files individually or use Download all as ZIP.
- Use Start over to clear the queue and begin again.
Features
- Two compression modes: quality presets (Smallest 45, Balanced 78, Best Quality 92) or an exact target size in KB or MB.
- Target-size search that lowers quality first and then downscales in steps, reporting the closest result when the target cannot be met.
- Batch queue with per-file progress, per-file target overrides, replace/remove controls and a compare slider.
- Output control: keep the original format or convert to JPEG, WebP or PNG, with optional maximum width and height.
- PNG options including palette quantisation (16–256 colours) and a lossless mode, with an optional automatic switch to WebP when a target is unreachable.
- Files already under your target are detected and skipped, so you do not re-compress images that are fine as they are.
Tips and common mistakes
- Do not chase the smallest possible file for photos you want to keep or print — stick with Balanced and review the preview.
- If a website only accepts JPEG or PNG, leave the output format on Keep original so you do not accidentally download a WebP.
- When target-size mode makes text or skin tones look blotchy, raise the quality floor: the compressor will downscale dimensions instead of over-compressing.
Frequently asked questions
Does compressing an image reduce its quality?
Lossy compression trades file size for some detail, so yes — but you control how much. Balanced (78) is a good everyday setting, and Best Quality (92) keeps noticeably more detail. In target-size mode the compressor lowers quality only to the floor you set, then starts downscaling. Check the before/after preview for the images that matter most.
Should I choose JPEG or WebP?
WebP usually produces smaller files than JPEG at similar visual quality and is supported by all current browsers. JPEG is the safer choice when the file will be opened by older software or uploaded to a service that only accepts JPEG.
Why did my PNG file not get much smaller?
PNG is a lossless format, so there is little headroom unless the image uses few colours. The compressor can quantise PNG to a palette, and if a target size still cannot be reached it can automatically switch the output to WebP.
What happens to EXIF metadata like camera and GPS data?
Strip metadata is enabled by default. If you turn it off, JPEG-to-JPEG compression keeps the original EXIF data; other formats are re-encoded without carrying the original metadata over.
Is there a file size limit?
Each file can be up to 60 MB. Since everything runs on your device, the practical limit for very large batches depends on your browser and available memory.
Related image tools: Image Converter, Image Resizer, Crop Image.
Compression happens entirely on your device using your browser's image APIs and a worker. Your photos are never uploaded, and nothing is kept after you close the tab.