Image Compressor
Reduce image file sizes by up to 90% while maintaining visual quality. Compress JPG, PNG, WebP, and AVIF images instantly in your browser.
100% private
Images never leave your browser
Up to 90% smaller
Lossy and lossless modes
Quality control
Live preview as you tune
Good balance between quality and file size
Good balance between quality and file size
Drop images here
or click to browse
Maximum file size: 100MB
How It Works
Select your images
Upload JPG, PNG, WebP, or AVIF images
Choose compression settings
Adjust quality and format to your needs
Download optimized images
Get smaller files with preserved quality
Format Comparison
JPEG
Best for photos, no transparency
WebP
Modern format, excellent compression
PNG
Lossless, supports transparency
AVIF
Cutting-edge compression, limited support
The image compressor re-encodes your photos at a lower quality setting to shrink their file size. For typical JPG photos, a 70–80% quality setting gives roughly a 5×–10× reduction in file size with no visible difference on most screens. PNG and WebP outputs use their native compression algorithms and support additional options like palette quantization and lossless modes.
It is most commonly used to speed up website page loads, to fit images under an upload limit (for example, a 5 MB cap on a job application), or to reclaim space on a device before archiving a large photo library. The before/after size is shown for every image so you can tune the quality slider with instant feedback.
Compression runs entirely in your browser using WebAssembly codecs (@jsquash/jpeg, @jsquash/png, @jsquash/webp, @jsquash/avif). Nothing is uploaded, so you can compress private photos, confidential documents, or pre-release marketing assets with full confidence that the file never leaves your device.
Image Compressor — Frequently Asked Questions
How do I compress an image without losing quality?
Use 80–90% quality for most photos — the file shrinks 3–5× with no visible change on typical screens. PNG screenshots with few colors can use palette quantization for similar wins without any quality loss at all. If size is non-negotiable (email attachments, upload limits), start at 70% and nudge up until the preview looks right.
Which format compresses images the best — JPG, WebP, or AVIF?
AVIF wins on pure size per quality (roughly 50% smaller than JPG at the same perceived quality), followed by WebP (25–35% smaller), then JPG. AVIF and WebP also support transparency and lossless modes. JPG is still the safest pick for maximum compatibility — every email client, document tool, and older browser renders it.
Can I compress images to a specific file size like 100KB or 1MB?
Yes. This tool exposes a quality slider plus live before/after file sizes so you can dial in a target manually. For fixed targets like 100KB, 500KB, or 1MB, our target-size compressors do it automatically — drop in a photo and they pick the quality and (if needed) dimensions to hit the size.
Can I compress multiple images at once?
Yes — drop a folder of images and every file is compressed with the same settings. Outputs download individually or as a single ZIP. You can mix formats (JPG, PNG, WebP, AVIF) in the same batch and optionally convert the whole batch to a single output format.
Does compressing an image multiple times make it worse?
Yes — each re-save of a lossy format like JPG discards a bit more detail. For best results compress from the original once rather than re-compressing an already-compressed file. If you need to edit a JPG and re-save, working at 95%+ quality minimizes generational loss.
Is my image uploaded to any server?
No. Compression runs locally using WebAssembly codecs — your images never leave your device. Safe for private photos, confidential documents, pre-release marketing assets, anything.
How do I compress an image without losing quality?
Use 80–90% quality for most photos — the file shrinks 3–5× with no visible change on typical screens. PNG screenshots with few colors can use palette quantization for similar wins without any quality loss at all. If size is non-negotiable (email attachments, upload limits), start at 70% and nudge up until the preview looks right.
Which format compresses images the best — JPG, WebP, or AVIF?
AVIF wins on pure size per quality (roughly 50% smaller than JPG at the same perceived quality), followed by WebP (25–35% smaller), then JPG. AVIF and WebP also support transparency and lossless modes. JPG is still the safest pick for maximum compatibility — every email client, document tool, and older browser renders it.
Can I compress images to a specific file size like 100KB or 1MB?
Yes. This tool exposes a quality slider plus live before/after file sizes so you can dial in a target manually. For fixed targets like 100KB, 500KB, or 1MB, our target-size compressors do it automatically — drop in a photo and they pick the quality and (if needed) dimensions to hit the size.
Can I compress multiple images at once?
Yes — drop a folder of images and every file is compressed with the same settings. Outputs download individually or as a single ZIP. You can mix formats (JPG, PNG, WebP, AVIF) in the same batch and optionally convert the whole batch to a single output format.
Does compressing an image multiple times make it worse?
Yes — each re-save of a lossy format like JPG discards a bit more detail. For best results compress from the original once rather than re-compressing an already-compressed file. If you need to edit a JPG and re-save, working at 95%+ quality minimizes generational loss.
Is my image uploaded to any server?
No. Compression runs locally using WebAssembly codecs — your images never leave your device. Safe for private photos, confidential documents, pre-release marketing assets, anything.