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
- 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.
- 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.
- 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.
- 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.
| Asset Type | Recommended Codec | Target Quality / Level | Typical Payload Range | Visual Risk to Inspect |
|---|---|---|---|---|
| Hero photography & editorial banners | WebP (libwebp) or MozJPEG | Quality 75–82 | 95 KB – 210 KB | Sky gradient banding and foliage micro-contrast |
| E-commerce product shots on white | MozJPEG (progressive) | Quality 80–85 | 70 KB – 160 KB | Chroma haloing around high-contrast product edges |
| UI screenshots, charts & crisp text | OxiPNG (lossless) or WebP lossless | OxiPNG Level 2–3 | 45 KB – 140 KB | Zero pixel loss; verify alpha transparency remains intact |
| Blog thumbnails & social Open Graph | MozJPEG or WebP | Quality 72–78 | 35 KB – 90 KB | Blockiness on diagonal lines and small typography |
| Archival or print-ready master copies | Do not re-compress lossy | Keep original master | 1.5 MB – 12 MB | Generational 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.
| Symptom Observed | Root Cause | Immediate Fix in This Tool | Verification Check |
|---|---|---|---|
| Output file is larger than original | Source was already compressed at lower quality (e.g. Q60) and re-encoded at Q85 | Lower quality target below source or keep original bytes | Check the byte-delta badge; discard if savings ≤ 0% |
| Fuzzy red or neon typography on dark UI | 4:2:0 chroma subsampling in JPEG halves color resolution | Switch 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 backdrop | Aggressive quantization rounds 8-bit tonal transitions | Raise MozJPEG quality from 68 to 80–84 | Inspect the darkest and brightest 15% of the frame |
| Transparent PNG background turns white or black | JPEG does not support an alpha channel | Keep OxiPNG or WebP for transparency, or use PNG to JPG with explicit matte | Check corners on a non-white background |
| Washed-out colors after saving | Source used Display P3 or Adobe RGB ICC profile stripped during decode | Export sRGB from your editor before web compression | Compare 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
- web.dev — Optimize your images for Core Web Vitals — Google engineering guidance on modern image formats, responsive sizing, and LCP impact.
- Google Search Central — Image SEO best practices — Official crawling, supported formats (JPEG, PNG, WebP), and responsive markup rules.
- RFC 9649 — WebP Image Format Specification — IETF standard detailing lossy VP8, lossless VP8L, and alpha channel coding in WebP.
More free browser-local image tools
- Local Image Resizer (Lanczos3 WASM)
- PNG to JPG Converter (MozJPEG WASM)
- WebP to PNG Converter (libwebp + OxiPNG WASM)
- EXIF & GPS Metadata Remover (Lossless Binary Stripper)