Local Image Compressor

Compress images locally in your browser with live quality and size comparison.

Drag image here

or click to select file | Supports clipboard paste

Supports JPG, PNG, WebP, HEIC, AVIF, SVG, BMP & GIF (up to 30 MB)

Privacy Notice: All image compression runs locally in your browser—your images are never uploaded to any server.

About This Tool

Optimize Images Locally in Your Browser

Compress and resize images directly in browser memory with live quality controls and before-and-after previews—no server uploads required.

Key Capabilities

  • Broad Format Support

    Works with JPG, PNG, WebP, BMP, and Apple HEIC/HEIF photos (automatically decoded to JPEG locally before compression).

  • Adjustable Quality Control

    Fine-tune output quality with a live slider to balance visual clarity against smaller file size.

  • Side-by-Side Comparison

    Compare original and compressed file sizes, savings percentage, and zoomable previews before saving.

  • Drag, Select, or Paste

    Drop files directly onto the page, pick from disk, or paste screenshots straight from your clipboard.

Step-by-Step

How to Compress an Image

  1. 1

    Add a Local Image

    Drag an image into the drop zone, click to browse, or press Ctrl/Cmd + V to paste from your clipboard (up to 20 MB).

  2. 2

    Local Decoding

    Standard formats begin compressing immediately. HEIC/HEIF files are decoded to JPEG locally first.

  3. 3

    Adjust Quality & Compare

    Move the quality slider to see the updated file size and click either preview to inspect fine details.

  4. 4

    Download the Result

    Once the size and clarity look right, click Download to save the optimized image to your device.

Technical Reference

Image Formats & Compression Behavior

Choosing the right format often saves more bytes than aggressively lowering quality. Here is how common formats behave.

JPEG / JPG
Compression Type
Lossy
Transparency
No
Best Suited For
Photographs, blog hero images, and scenes with rich color gradients
PNG
Compression Type
Lossless
Transparency
Yes
Best Suited For
UI screenshots, icons, sharp text graphics, and transparent overlays
WebP
Compression Type
Lossy & Lossless
Transparency
Yes
Best Suited For
Modern web assets that need smaller sizes than JPG or PNG
HEIC / HEIF
Compression Type
High-efficiency lossy
Transparency
Yes
Best Suited For
iPhone/iPad photos; converted locally to JPEG for broad compatibility
How It Works

Web Workers & Local Canvas Re-encoding

The page reads your file via the browser File API and runs browser-image-compression in a Web Worker (capped at 1024px on the longest edge) without freezing the UI.

For HEIC/HEIF photos, heic2any is loaded on demand locally, and previews render via temporary in-memory Blob Object URLs.

Privacy & Data Handling

Your Files Stay on Your Device

  • Images are processed strictly in browser memory and never uploaded to any server.
  • Files are not persisted to disk; refreshing or closing the tab releases them automatically.
  • Only anonymous view and download counters are logged—never file names or image data.

Read our full Privacy Policy for details on site analytics and cookies.

Practical Use Cases

  • Shrinking blog illustrations and documentation screenshots to improve Largest Contentful Paint (LCP).
  • Converting and compressing heavy iPhone HEIC/JPG photos to fit email or web form upload limits.
  • Optimizing sensitive screenshots (contracts, invoices, internal dashboards) without sending them to unknown servers.

Current Limitations

  • Processes one image at a time; batch ZIP compression is not currently supported.
  • Constrains the longest edge to 1024px to keep web assets light and prevent mobile memory spikes—not intended for high-DPI print masters.
  • Input files are capped at 20 MB. Already heavily optimized PNGs or WebPs may show minimal reduction or slightly larger output after Canvas re-encoding.
FAQ

Frequently Asked Questions

What quality setting works best for websites?

For most photographs and blog images, 75% to 85% delivers substantial file size savings with minimal visible artifacts. For UI screenshots with small text, keep quality at 85% or higher and inspect the zoom preview.

Does compression change image resolution?

If your image is larger than 1024px on its longest side, the tool scales it proportionally down to 1024px to keep web file sizes practical. Smaller images retain their original dimensions.

Why is a compressed image occasionally larger than the original?

If the source file was already aggressively compressed or uses an indexed PNG palette, re-encoding it through the browser Canvas can add overhead. In that case, keep the original file or switch formats.

How can I verify my image is not being uploaded?

Open your browser DevTools (F12), switch to the Network tab, and drop an image into the tool. You will see no multipart upload or image payload leaving your browser.