Image Tool

Image Compressor

Compress JPEG, PNG, and WebP images in your browser. Adjust quality, resize, convert formats — your images never leave your device.

How to Compress Images

Reduce file size without sacrificing quality in seconds.

1
Drop or Select Images
Drag and drop up to 20 images onto the drop zone, or click to open a file picker. Supports JPEG, PNG, WebP, and GIF.
2
Adjust Quality
Use the quality slider to set compression level. 75–85% gives a great balance for most web images. Lower for thumbnails, higher for print.
3
Choose Output Format
Keep the original format, convert everything to JPEG (great for photos), PNG (lossless), or WebP (smallest files, modern browsers).
4
Resize (Optional)
Set a max width or height in pixels. The tool scales images down proportionally. Lock aspect ratio to avoid distortion.
5
Review the Results
See original vs compressed size for every image. The green percentage shows how much smaller each file is. Compare visually for single images.
6
Download
Download images one by one or click "Download All" to get every compressed image at once.

How Browser-Based Compression Works

No server, no upload — the Canvas API handles everything.

🖼️
Canvas API
Images are drawn onto an HTML5 Canvas element, then re-encoded using canvas.toBlob() with a quality parameter (0.0–1.0).
📉
JPEG Compression
JPEG uses lossy compression — lower quality removes fine detail the eye barely notices. Quality 75 typically reduces a photo by 60–80% with minimal visible loss.
🔷
PNG Handling
PNG is lossless — the quality slider doesn't apply. To reduce PNG size, either convert to JPEG/WebP or resize the image dimensions.
🌐
WebP Output
WebP supports both lossy and lossless encoding and typically achieves 25–35% smaller files than JPEG at the same visual quality.
📐
Proportional Resize
When max dimensions are set, the tool calculates the scale factor and draws the image at the new size before encoding — reducing pixel count directly.
🔒
100% Private
All processing uses browser APIs. Your images are read from disk into memory, processed, and downloaded. Nothing is transmitted to any server.

Frequently Asked Questions

Common questions about image compression.

For standard web use, JPEG quality 75–85 is the sweet spot — typically reducing file size by 50–80% with minimal visible quality loss. For thumbnails or preview images where quality is less critical, 60–70 works well. For hero images, photography portfolios, or images that will be zoomed, use 85–95. Avoid going below 60 for photos — compression artifacts become clearly visible.

PNG uses lossless compression, which means every pixel is preserved exactly. There's no quality tradeoff — you can't throw away image data the way JPEG does. To reduce PNG file size, either: (1) convert to JPEG or WebP using the Output Format setting, (2) resize the image to smaller dimensions, or (3) use a dedicated PNG optimizer that strips unused color palette entries and metadata. This tool's most effective approach for PNG is conversion to WebP or JPEG.

Use WebP when your audience is primarily on modern browsers (Chrome, Firefox, Safari 14+, Edge) — which is most of the web in 2025. WebP typically achieves 25–35% smaller files than JPEG at equivalent visual quality. Use JPEG when you need universal compatibility (older systems, email clients, social platforms that don't preserve WebP). JPEG is also safer for photography contexts where the receiving system is unknown.

Yes, re-compressing a JPEG causes "generation loss" — each compression cycle introduces new artifacts. If you're re-compressing at the same or higher quality, the damage is minimal. If you compress a JPEG at quality 90, re-compress at quality 90 again, the result is slightly worse than the original but usually acceptable. Compressing at a lower quality each time accelerates degradation. For archival purposes, always keep a lossless master copy (PNG or uncompressed TIFF) and only compress final output files.

This can happen when: (1) The original was already highly compressed and re-encoding at a higher quality actually increases size. Try lowering the quality slider. (2) You're converting a small PNG to JPEG — some small PNGs compress better than JPEG. (3) You're converting a greyscale or simple-color image to JPEG — JPEG is optimized for photographic content. For non-photographic images (logos, icons, diagrams), PNG or WebP lossless mode produces smaller files.

EXIF metadata is embedded information in image files: camera model, GPS location, shooting settings, copyright notices, and thumbnail previews. It can add 20–100KB to a file. This tool strips EXIF automatically by re-encoding via Canvas, since the Canvas API doesn't preserve EXIF data. For images with small EXIF (most photos), this saves a small but consistent amount. For privacy-conscious users, EXIF stripping also removes GPS coordinates embedded by smartphone cameras.


Related Tools

View all →

Related Articles

View all →