Skip to content
§
§ · free tool

Image compressor. Smaller files, no upload.

Shrink JPG, PNG, WebP & AVIF with a live quality slider, downscale by max width, and see the exact savings per file. Everything runs on your device — nothing is uploaded.

A free online tool by Digital Heroes
Drop images here or click to browse — JPG, PNG, WebP, AVIF, GIF
Files never leave your browser

Why compress in the browser?

Most “free” compressors upload your photos to a server first. This one does the whole job locally with your device's own Canvas — faster, completely private, and it keeps working offline. It doubles as a compression calculator: re-encode a representative photo at a few quality levels and formats to find the smallest file that still looks right before you bake that setting into a build pipeline. Single & batch compression and one-click ZIP export are all free, with no sign-up and no limits.

§ 02 · what you can do

Shrink the batch, keep the quality.

Batch compressionDrop one image or a whole folder — JPG, PNG, WebP, AVIF or GIF — and re-encode them all in a single pass, no upload.
Switch output formatConvert to JPG, WebP, AVIF or lossless PNG — or keep each file's original format — with one dropdown.
Live quality sliderDrag the quality control and watch every file's new size and savings percentage update instantly.
Downscale by max widthCap the width in pixels to shrink oversized photos before compression — aspect ratio is preserved.
Full-size previewClick any thumbnail to inspect the compressed result at full size — with format, size and savings — before you download.
One-click ZIP exportDownload any single file, or grab the entire compressed batch as one ZIP archive with one click.
§ 03 · how to use it

Four steps, no upload.

  1. Drop your images into the zone — JPG, PNG, WebP, AVIF or GIF. They never leave your device.
  2. Pick an output format, drag the quality slider, and optionally set a max width to downscale large photos.
  3. Watch each thumbnail show the new size, savings percent and dimensions — click one to preview it at full size.
  4. Download a single file, or grab the whole batch with Download all (.zip).
§ 04 · faq

Frequently asked questions.

Are my images uploaded anywhere?
No. Compression happens entirely in your browser using the native canvas API. The page is static; the only network request is the initial page load, and image data never leaves the tab. Safe for unpublished marketing assets or customer-supplied media you would not want sent to a third-party service.
What's the size difference across JPEG, WebP and AVIF?
On a typical photo at quality 80, JPEG is the baseline. WebP is roughly 25–35% smaller than JPEG at visually equivalent quality; AVIF is roughly 20–30% smaller than WebP (about 50% smaller than JPEG). Browser support: JPEG everywhere, WebP everywhere since 2020, AVIF in all major browsers since 2024. For modern web work, ship AVIF with WebP and JPEG fallbacks.
What quality level should I use?
Quality 80–85 is the production sweet spot for photographs: visually indistinguishable from the original to most viewers, with a file 30–50% smaller. Below 60 you start to see artifacts in flat color regions and around text edges; above 90 the marginal gain is invisible while the file gets bigger. Ship heroes at 90, body images and product thumbnails at 80, and grid thumbnails at 60.
Does this work on PNG and animated GIF?
PNG inputs work. Re-encoding to JPEG, WebP or AVIF is lossy and drops transparency; for images that must keep an alpha channel (logos, icons) choose the PNG (lossless) output. For animated GIF, only the first frame is processed — for animation conversion use ffmpeg or a dedicated tool. PNG with no transparency converts cleanly to JPEG with significant savings.
Why does AVIF sometimes fall back to WebP?
Browser support for AVIF encoding varies (Chrome and Edge since 2021, Firefox since 2024, Safari 16+). On browsers that can't encode it, the canvas toBlob() call for AVIF returns nothing, so the tool falls back to WebP and shows a notice. Browsers that can't encode AVIF can usually still decode it, so AVIF as a delivery format works everywhere — only the conversion step is restricted here.
What about responsive images and srcset?
This tool generates one variant per file at one size (with optional max-width downscaling). For production responsive images you usually want 3–4 sizes per format for a srcset attribute — build pipelines like Next.js's Image component, Sharp or Squoosh CLI handle that multi-size generation. Use this tool for the per-variant audit and one-off optimization.

Published · Last updated .

Online now

Hey there 👋 How can we help you today?