MozJPEG / OxiPNG / WebP WASM · 100% local in your browser · Never uploaded · No sign-up

Free Local Image Compressor

Shrink JPG, PNG, and WebP files using compiled MozJPEG, OxiPNG, and libwebp WebAssembly codecs directly in your browser memory, with side-by-side visual inspection and batch export.

Supported inputs: JPEG, PNG, WebP (up to 10 images per batch)

How to compress images locally without visible quality loss

  1. Drop up to 10 images onto the local workspace: Select JPEG, PNG, or WebP files from your device. Every file is decoded inside your browser tab memory and never transmitted to a remote server.
  2. Pick your target codec and perceptual quality: Choose MozJPEG for photographs, libwebp for modern web hero assets, or OxiPNG for lossless UI screenshots, logos, and transparent graphics.
  3. Inspect edges and skin tones with the Before/After slider: Drag the interactive comparison handle across text, hair, fabric, and sky gradients to verify zero ringing or chroma banding before saving.
  4. Download compressed files individually or across your batch: Save the optimized image directly to disk with exact byte savings and percentage reduction reported per file.

Why compiled MozJPEG, OxiPNG, and libwebp beat standard browser canvas compression

Most free online image compressors either upload your private photos to an opaque cloud bucket or call the browser built-in HTMLCanvasElement.toBlob() encoder. Standard browser JPEG encoders use baseline Huffman tables and fixed quantization matrices designed for fast screen capture rather than perceptual efficiency. At quality 78, a stock browser canvas JPEG often produces files 15% to 28% heavier than Mozilla MozJPEG at the exact same structural similarity (SSIM) score.

FunnyBanana runs real C and Rust image codecs compiled to WebAssembly inside your tab. MozJPEG applies trellis quantization, progressive spectral scans, and perceptual luminance weighting tuned to human vision. OxiPNG performs multi-strategy PNG filter selection and deflate re-compression so lossless screenshots and icons shrink without altering a single RGBA pixel value. libwebp encodes both lossy VP8 and lossless VP8L bitstreams for modern web delivery.

Because execution stays inside your local browser sandbox, sensitive client mockups, family portraits, ID scans, and unreleased product photography never cross the network. You get desktop-grade Squoosh-class encoding speed with zero account walls, zero daily file caps, and immediate offline-capable privacy.

Codec selection and quality target reference for real-world web assets (Sample estimates on 1600×1067 sRGB sources)
Asset TypeRecommended CodecTarget Quality / LevelTypical Payload RangeVisual Risk to Inspect
Hero photography & editorial bannersWebP (libwebp) or MozJPEGQuality 75–8295 KB – 210 KBSky gradient banding and foliage micro-contrast
E-commerce product shots on whiteMozJPEG (progressive)Quality 80–8570 KB – 160 KBChroma haloing around high-contrast product edges
UI screenshots, charts & crisp textOxiPNG (lossless) or WebP losslessOxiPNG Level 2–345 KB – 140 KBZero pixel loss; verify alpha transparency remains intact
Blog thumbnails & social Open GraphMozJPEG or WebPQuality 72–7835 KB – 90 KBBlockiness on diagonal lines and small typography
Archival or print-ready master copiesDo not re-compress lossyKeep original master1.5 MB – 12 MBGenerational loss if saved repeatedly as JPEG

Worked numeric example: fixing a slow Largest Contentful Paint (LCP) hero image

Google Core Web Vitals defines a "Good" Largest Contentful Paint (LCP) as 2.5 seconds or faster at the 75th percentile of real mobile visits. On a simulated 4G mobile connection (1.6 Mbps effective throughput, 150 ms round-trip latency), raw camera uploads are the single most common reason landing pages miss the 2.5-second threshold.

Consider a typical 4000×2667 DSLR hero photo exported from a design tool as an unoptimized 2.8 MB PNG or 1.9 MB quality-98 JPEG. Even before browser layout and font painting, downloading 1.9 MB over a 1.6 Mbps mobile link consumes roughly 9.5 seconds of pure transfer time—guaranteeing a failing Search Console Core Web Vitals report.

Common compression failure modes and practitioner fixes

Blindly applying a single quality slider across every asset creates subtle defects that hurt conversion rates and brand polish. Red text on a dark background suffers from 4:2:0 chroma subsampling blur in JPEG; transparent PNG logos turn into heavy black-box files if accidentally converted to JPEG without a matte color; and already-compressed social downloads can actually grow larger if re-encoded at a higher quality setting than the original.

Diagnostic matrix for compression anomalies and exact corrective actions
Symptom ObservedRoot CauseImmediate Fix in This ToolVerification Check
Output file is larger than originalSource was already compressed at lower quality (e.g. Q60) and re-encoded at Q85Lower quality target below source or keep original bytesCheck the byte-delta badge; discard if savings ≤ 0%
Fuzzy red or neon typography on dark UI4:2:0 chroma subsampling in JPEG halves color resolutionSwitch output codec to OxiPNG (lossless) or WebP Q88+Zoom to 100% with the Before/After slider over text
Banding steps in smooth sky or studio backdropAggressive quantization rounds 8-bit tonal transitionsRaise MozJPEG quality from 68 to 80–84Inspect the darkest and brightest 15% of the frame
Transparent PNG background turns white or blackJPEG does not support an alpha channelKeep OxiPNG or WebP for transparency, or use PNG to JPG with explicit matteCheck corners on a non-white background
Washed-out colors after savingSource used Display P3 or Adobe RGB ICC profile stripped during decodeExport sRGB from your editor before web compressionCompare skin tones and brand accents side-by-side
  • Inspect skin tones, eyes, fine hair, and diagonal typography at 1:1 scale using the built-in Before/After comparison slider before downloading.
  • Keep an uncompressed or master copy locally—never run lossy JPEG compression twice on the same file.
  • For hero images above the fold, combine compression with explicit width, height, and fetchpriority="high" attributes to prevent Cumulative Layout Shift (CLS).
  • For e-commerce marketplaces (Shopify, Etsy, Amazon), stay within quality 80–85 so platform thumbnails do not compound artifacts when re-encoded downstream.

Frequently asked questions

Are my photos uploaded to FunnyBanana servers when I compress them?

No. Every file is decoded and re-encoded inside your browser tab using WebAssembly builds of MozJPEG, OxiPNG, and libwebp. You can even disconnect your internet connection after the page loads and compression continues to work.

What is the best JPEG quality setting for website speed and sharpness?

With MozJPEG trellis quantization, quality 75 to 82 is the practical sweet spot for web photography. It typically saves 60–75% over raw camera exports while remaining visually indistinguishable from the original at normal viewing distances.

Should I choose WebP, MozJPEG, or OxiPNG?

Choose WebP for modern websites where smallest file size and alpha transparency matter. Choose MozJPEG for universal email, marketplace, and CMS compatibility on photographs. Choose OxiPNG when you need exact lossless pixels for UI screenshots, diagrams, or logos.

Why did compressing an already-small PNG or JPG sometimes save very little?

If an image was already optimized by a CDN, Squoosh, or social platform, most redundant entropy is already gone. Re-encoding a heavily compressed JPEG at a higher quality setting can increase file size without recovering lost detail.

Does compressing an image preserve or remove EXIF metadata?

Re-encoding pixel data through WASM codecs strips camera EXIF and GPS tags by default, which also shaves 15–60 KB of overhead. If you want to remove metadata without re-compressing pixels at all, use our lossless EXIF Remover tool instead.

Primary technical references

More free browser-local image tools