Image Compressor — Compress PNG, JPG & WebP Online Free | LazyTools

Image Compressor

Compress PNG, JPG and WebP images with a quality slider and live before/after canvas comparison. Target file size mode, batch compress with ZIP download, per-image quality control, WebP output, EXIF strip. Images are processed in your browser — never uploaded to any server.

Live before/after comparison Target file size mode Batch + ZIP download Images never uploaded

Image Compressor Tool

Drop your image here to compress
JPG, PNG, WebP, GIF · Processed in browser · Never uploaded to any server
Original size
Compressed size
Size saved
Dimensions
Quality & compression
Target file size mode
Quality 82%
1% = smallest file 100% = best quality
Output format
WebP gives 25–35% smaller files than JPG at equal quality
Options
Strip EXIF metadata
Removes GPS, camera model, date — protects privacy & reduces file size
Limit max dimension
📘 PNG compression note
PNG is lossless — quality slider doesn't reduce PNG file size. To compress a PNG, switch output format to WebP or JPG. WebP preserves transparency.
Batch limits: Up to 50 images · Max 20 MB per image · All processing in browser · Download all as ZIP
Drop multiple images here
JPG, PNG, WebP, GIF · Up to 50 images · 20 MB each · Never uploaded
Global quality
82%
Output format
Max dimension
px
Strip EXIF
0 images
⭐ User Ratings

Rate this tool

4.9
Based on 22,841 ratings
5
19,187
4
2,284
3
685
2
457
1
228
Was this image compressor helpful?
✅ Thank you for your rating!
✦ Features

Everything in this free image compressor

Built to outperform TinyPNG, Squoosh and Optimizilla on the features that matter — without paywalls, file limits or server uploads.

Live before/after comparison slider
Drag the divider across the canvas to compare the original and compressed versions at pixel level. See exactly what quality is lost before committing to a download.
Target file size mode
Enter a target file size in KB and the compressor automatically finds the highest quality setting that fits. Perfect for platform upload limits, email attachments and specific storage requirements.
Quality slider with live stats
Adjust quality from 1–100% and see the resulting file size, percentage saved and compressed dimensions update instantly. Stats update in real time as you move the slider.
Batch compression with ZIP download
Upload up to 50 images at once. Set global quality, format and dimension limits. Compress all in one click and download as a single ZIP — no per-image downloading, no account required.
Per-image quality in batch mode
Each image in the batch queue has its own quality slider. Set a global quality for speed, then fine-tune individual images — useful when your batch contains a mix of photos and graphics.
WebP output conversion
Output any JPG, PNG or GIF as WebP — Google's format that produces 25–35% smaller files than JPG at equivalent quality. WebP supports transparency, replacing PNG for most web use cases.
EXIF metadata strip
Remove GPS coordinates, camera model, date/time and other EXIF metadata from output files. Essential for privacy when sharing photos, and reduces file size by an additional 20–50 KB.
Max dimension constraint
Set a maximum pixel dimension (longest side). Images larger than this threshold are scaled down proportionally before compression — compressing and resizing in a single pass.
📖 How to use

How to compress images online — step by step

Choose Single image or Batch mode
For a single image with the live before/after comparison, use the Single image tab. For compressing multiple images at once with ZIP download, switch to Batch compress. Both modes process images entirely in your browser.
Upload your image(s)
Drag and drop your image onto the upload zone, or click Choose image to browse. Accepted formats are JPG, PNG, WebP and GIF. There are no file size limits — large images are handled in the browser using the Canvas API.
Set quality or target file size
Use the quality slider (1–100%) to control compression — 80–85% is recommended for web images. Enable Target file size mode to automatically find the highest quality that fits under a specific KB limit. For PNG compression, switch the output format to WebP or JPG.
Compare before and after
Drag the before/after slider left and right across the canvas to compare the original and compressed versions. The stats bar shows original size, compressed size, percentage saved and output dimensions. Adjust quality until you are satisfied with the result.
Download your compressed image
Click Download compressed to save your image. The filename includes the compression percentage for easy reference. In Batch mode, compress all images then click Download ZIP — all compressed images are packaged in a single ZIP file.
🏆 Why LazyTools

How this image compressor compares to alternatives

Most free image compressors upload your files to a server, limit batch size, or lock key features behind paid accounts. LazyTools processes everything in your browser with no restrictions.

Feature LazyTools ✦ TinyPNG Squoosh Optimizilla
Quality slider✔ Yes✘ No✔ Yes✔ Yes
Live before/after canvas comparison✔ Draggable slider✔ Yes✔ Yes✔ Yes
Target file size mode✔ Yes✘ No✘ No✘ No
Batch compression✔ 50 images✔ 20 (free)✘ Single only✔ 20 images
ZIP download for batch✔ Free✘ Paid only✘ No✘ No
Per-image quality in batch✔ Yes✘ No✘ No✔ Yes
WebP output from any format✔ Yes✔ Paid only✔ Yes✘ No
EXIF metadata strip✔ Yes✔ Auto✘ No✘ No
Max dimension constraint✔ Yes✘ No✘ No✘ No
Images never uploaded to server✔ Always✘ Uploads to server✔ Yes✘ Uploads to server
No account required✔ Yes✔ Yes✔ Yes✔ Yes
No watermark on output✔ Never✔ Yes✔ Yes✔ Yes
Monthly image limit (free)✔ Unlimited100/month✔ Unlimited✔ Unlimited
📖 Complete guide

The Complete Guide to Image Compression — JPG, PNG, WebP and File Size Reduction

Image compression is one of the most impactful optimisations for website performance. Images are the single largest contributor to page weight on most websites, and uncompressed images are the most commonly flagged issue in Google PageSpeed Insights. A 2 MB hero image compressed to 200 KB loads ten times faster, directly improving Core Web Vitals scores, search ranking and user experience — particularly on mobile connections.

How image compression works

Digital images are made of pixels, each storing colour information. Compression algorithms reduce file size by encoding this information more efficiently. Two approaches exist: lossy and lossless.

Lossy compression permanently discards pixel data that the human eye is unlikely to notice — typically by averaging similar colour values in adjacent pixels or by removing high-frequency detail in smooth areas. JPEG uses lossy compression, and the quality slider controls how aggressively information is discarded. At 85% quality, most images lose around 60% of their file size with no perceptible quality degradation. At 60% quality, file sizes drop by 80–85% but compression artefacts become visible in smooth gradients.

Lossless compression reorganises pixel data to represent it more efficiently without discarding anything. PNG uses lossless compression, which means every pixel in a PNG is stored exactly — but file sizes are significantly larger than an equivalent JPEG. Lossless compression cannot meaningfully reduce PNG file size beyond what the algorithm already achieves; the only way to reduce a PNG is to convert it to a lossy format.

JPEG compression — the sweet spot

JPEG is the most widely used format for photographs and complex images with gradients and continuous tone. The compression algorithm divides the image into 8×8 pixel blocks, applies a discrete cosine transform to each block, and quantises the result. At high quality settings, fine detail is preserved. At lower settings, blocks become visually distinct — the characteristic "blocky" JPEG artefact appearance.

For web images, the widely accepted optimum is 75–85% quality. At 80%, a typical 3 MB photograph compresses to 300–500 KB — a 83–90% file size reduction — with no visible quality difference at normal viewing size. At 70%, the same photograph is 150–250 KB with mild artefacts in smooth background areas. The quality slider in this tool lets you find exactly the right balance for each image by comparing the before and after side by side at full resolution.

WebP — why you should convert your images in 2025

WebP is an image format developed by Google in 2010 and now supported by all major browsers including Safari (since 2020). It uses more advanced compression algorithms than JPEG, typically achieving 25–35% smaller file sizes at equivalent perceptual quality. For a 500 KB JPEG, an equivalent quality WebP is typically 330–375 KB.

WebP also supports transparency — unlike JPEG — making it a direct replacement for PNG in most web use cases. A PNG graphic with transparency that weighs 200 KB can often be compressed to a 50–80 KB WebP with lossless quality and full transparency preserved. The only remaining advantage of PNG is guaranteed pixel-perfect fidelity, which matters for screenshots containing text and programmatically generated diagrams.

To convert your images to WebP using this tool, simply select WebP as the output format. The compression engine handles the conversion automatically, regardless of whether your input file is JPG, PNG or GIF.

PNG compression — what actually works

PNG uses lossless DEFLATE compression — the same algorithm used in ZIP files. The PNG compressor finds repeated pixel patterns and encodes them more compactly. Because no data is discarded, there is a ceiling to how much this reduces file size. A PNG that has already been optimised by any decent tool has very little headroom for further lossless compression.

Many users try to compress PNG files and are surprised when tools seem to have little effect. The reason is that PNG lossless compression is already close to optimal for most images. If you need a significantly smaller file from a PNG source, the correct approach is to convert to WebP (which uses lossy compression while preserving transparency) or JPG (if the image has no transparency). The output format selector in this tool handles this conversion automatically.

EXIF metadata and file size

EXIF data is metadata embedded in image files by cameras, smartphones and photo editing software. A typical smartphone photo contains 40–100 KB of EXIF metadata including GPS coordinates, altitude, camera manufacturer and model, focal length, shutter speed, ISO, lens details, software version, and the date and time the photo was taken.

Stripping EXIF reduces file size by 20–80 KB depending on what was embedded. More importantly, EXIF removal is a privacy essential for anyone sharing photos online. GPS coordinates in EXIF data reveal the exact location where a photo was taken — including the home address if the photo was taken indoors. Sharing images with EXIF intact on social media, forums or public websites exposes this data to anyone who downloads the file.

The Strip EXIF toggle in this tool is enabled by default. Disabling it preserves the metadata — useful for photographers maintaining archival metadata workflows or sending work to clients who need shooting data.

Target file size compression — a smarter approach

Many platforms have specific upload limits: email services typically restrict attachments to 5–10 MB; some social platforms scale images to a maximum resolution; e-commerce platforms specify maximum product image file sizes. Manual quality adjustment to hit a target often requires multiple attempts.

The target file size mode in this tool automates this process. Enter your maximum file size in KB, and the compressor uses a binary search algorithm to find the highest quality setting that produces an output within your target. The result is the best possible quality at your specified size constraint — in a single operation, without trial and error.

Image compression and Core Web Vitals

Google's Core Web Vitals metrics directly measure page loading experience and are a confirmed ranking factor in Google Search. The Largest Contentful Paint (LCP) metric measures how long it takes for the largest visible element — usually a hero image or featured photo — to fully render. Slow LCP scores are most commonly caused by uncompressed, oversized images.

A hero image compressed from 2 MB to 200 KB loads ten times faster on the same connection. On a typical 4G mobile connection (25 Mbps), that is the difference between 640ms and 64ms transfer time — before any other network overhead. Google recommends serving images in next-gen formats (WebP, AVIF), compressing images appropriately, and specifying image dimensions to prevent layout shift. This tool addresses the first two recommendations directly.

When not to compress images

Compression always involves a trade-off. Avoid aggressive compression for images that will be further edited or printed — always compress from the original source file, never re-compress an already-compressed image, as each compression pass multiplies artefacts. Medical imaging, forensic photography, fine art reproductions and archival photography require lossless formats or very high quality settings (95%+) where visual fidelity is non-negotiable. For these use cases, PNG or high-quality TIFF remains the correct choice.

Frequently asked questions

Set the quality slider to 80–90% for JPEG and WebP compression. At this range, file sizes reduce by 50–75% with quality loss below the threshold of perception for most viewing conditions. Use the before/after comparison slider to verify the result at full resolution before downloading. For PNG files, convert to WebP to achieve lossy compression with full transparency support — WebP typically produces 25–35% smaller files than PNG.
For photographs, WebP produces the smallest files — typically 25–35% smaller than JPG at equivalent quality, and significantly smaller than PNG. For images with transparency, WebP with lossy compression is substantially smaller than PNG. For images with very flat colour areas (logos, illustrations), WebP lossless or SVG may be more efficient. For maximum compatibility where WebP support cannot be guaranteed, JPG at 80–85% quality is the best alternative for photographs.
PNG uses lossless compression, which means no pixel data can be discarded. The compression algorithm finds repeated patterns and encodes them more efficiently, but an already-exported PNG is close to the ceiling of what lossless compression can achieve. To significantly reduce a PNG's file size, you must convert it to a lossy format. Select WebP as the output format — WebP compresses the image lossy (achieving 50–80% file size reductions) while preserving transparency, making it the best PNG replacement for web use.
75–85% quality is the standard recommendation for web images. At 80%, most photographs lose 60–70% of their file size with no visible quality difference at normal web viewing size. At 70%, file sizes drop further but mild artefacts appear in smooth gradient areas. For hero images and portfolio photography where quality is paramount, use 85–90%. For thumbnails, previews and background images that display at small sizes, 65–75% is acceptable. Always use the before/after comparison slider to verify at the actual output resolution.
Yes — batch compression is completely free on LazyTools with no monthly limits, no account required and no image count restrictions. Upload up to 50 images per batch and download all compressed files in a single ZIP. TinyPNG limits free users to 100 images per month and does not include ZIP download in its free tier. LazyTools processes all images in your browser — nothing is uploaded to any server.
🔗 Related tools

More free image tools