MozJPEG WASM · 100% local in your browser · Never uploaded · No sign-up
Free Local PNG to JPG Converter
Turn heavy PNG screenshots, product cutouts, and design exports into lightweight MozJPEG files with a custom matte background color for transparent areas—100% locally in your browser.
Supported inputs: PNG (and WebP/JPEG sources, up to 10 images per batch)
How to convert PNG to JPG cleanly with custom matte fill
- Drop your PNG files into the local converter: Add up to 10 PNG images. Transparent regions are detected automatically and never leave your browser.
- Choose a matte background color for transparency: Pick Pure White (#FFFFFF), Warm Paper (#F7F7F5), Charcoal (#18181B), or any custom brand hex color so semi-transparent shadows composite smoothly.
- Set MozJPEG quality (recommended 80–85): Adjust perceptual quality and inspect edges, drop shadows, and typography with the interactive Before/After slider.
- Download lightweight .jpg files immediately: Save individual JPGs or convert your full batch with instant before/after file size comparison.
Why photographic PNGs are 5× to 10× heavier than MozJPEG—and when to convert
PNG (Portable Network Graphics) is a strictly lossless format designed around Deflate compression. It excels on flat UI icons, line art, and sharp vector exports with limited color palettes. However, when a screenshot tool, macOS preview, Figma frame, or AI generator exports a photographic scene as 24-bit or 32-bit PNG, every tiny grain of sensor noise and lighting gradient must be preserved bit-for-bit. A single 1600×1200 photographic PNG routinely weighs 2.5 MB to 5.5 MB.
Converting that exact same photograph to MozJPEG at quality 82 typically shrinks the file to 160 KB–280 KB—an 85% to 94% reduction—while remaining visually indistinguishable to human eyes. That single conversion turns slow email attachments, rejected marketplace uploads, and sluggish blog posts into instant-loading assets.
The critical catch is alpha transparency: the JPEG specification (ITU-T T.81) has no alpha channel. Naive converters simply drop the alpha byte, turning transparent drop shadows into ugly solid black rectangles. FunnyBanana pre-composites your PNG over your chosen matte color (such as #FFFFFF for Amazon/Shopify product pages or your site paper ground) before handing the clean RGB pixels to MozJPEG WebAssembly.
| Image Content | Convert PNG → JPG? | Recommended Matte Color | Expected Size Drop | Why |
|---|---|---|---|---|
| Product cutout for Amazon / Shopify | Yes (MozJPEG Q84) | Pure White (#FFFFFF) | 80% – 92% | Marketplaces require pure white backgrounds and fast zoom loading |
| macOS / Figma hero screenshot with photos | Yes (MozJPEG Q82) | Page background hex | 82% – 94% | Photographic regions bloat lossless PNG deflate streams |
| Email newsletter header graphic | Yes (MozJPEG Q80) | Email canvas (#FFFFFF) | 75% – 90% | Universal support in Outlook, Gmail, and Apple Mail |
| Transparent company logo for dark/light header | No — keep PNG or WebP | N/A (retain alpha) | Use OxiPNG instead | JPG cannot keep transparent background across theme switches |
| Dense spreadsheet / small code screenshot | Only at Q90+ or keep OxiPNG | White (#FFFFFF) | 40% – 65% | Sub-pixel text edges stay sharpest in lossless OxiPNG |
Worked numeric example: alpha-channel matte compositing and email weight budgets
Every semi-transparent pixel along the feathered edge of a PNG cutout carries an alpha weight α between 0 (fully transparent) and 1 (fully opaque). When composited over a matte background color B, the final RGB channel value equals: Output = Foreground × α + Matte × (1 − α). Choosing a matte that matches the destination page eliminates the jagged white or dark "fringe" outline around soft shadows and hair.
Troubleshooting transparency fringes, color shifts, and print uploads
Even experienced designers occasionally run into unexpected artifacts when converting PNG assets for strict upload portals like print-on-demand shops, government forms, or ad managers. Use the reference table below to diagnose and resolve the four most frequent edge cases.
| Problem | Cause | Solution |
|---|---|---|
| Black background where PNG was transparent | Converter dropped alpha channel without pre-compositing | Select White (#FFFFFF) or custom matte color before converting |
| Faint halo around soft PNG edges | Matte color does not match the webpage background where the JPG will be placed | Copy the exact hex code of your target page background into the matte input |
| Converted JPG is rejected by an upload portal | Portal requires file size under a strict KB cap (e.g. 200 KB or 500 KB) | Lower MozJPEG quality slightly (75–78) or resize dimensions first |
| Fine red lines look slightly softer in JPG | Standard JPEG 4:2:0 chroma subsampling | Increase quality to 88–92 or keep as OxiPNG if pixel-perfect vector clarity is mandatory |
- Verify whether your destination actually needs transparency before converting—once flattened to JPG, transparency cannot be recovered from the JPG file.
- For Amazon main product images, always set matte to pure #FFFFFF (RGB 255, 255, 255) to comply with marketplace listing guidelines.
- Check the output file size badge; if a tiny 12 KB flat icon produces a 15 KB JPG, keep the original PNG.
Frequently asked questions
What happens to transparent areas when converting PNG to JPG?
Because JPEG does not support alpha transparency, transparent pixels must be flattened onto a solid background color. This tool lets you pick White (#FFFFFF), Warm Paper, Dark Charcoal, or any custom hex color so semi-transparent edges and shadows blend cleanly.
Does PNG to JPG conversion upload my images to a server?
No. Compositing and MozJPEG encoding happen 100% locally inside your browser using WebAssembly. Your files never leave your device.
Why does MozJPEG produce smaller JPGs than saving from macOS Preview or Paint?
MozJPEG uses trellis quantization and optimized progressive Huffman coding, typically achieving 10–20% smaller file sizes at the same visual sharpness compared to standard OS encoders.
Can I batch convert multiple PNG screenshots to JPG at once?
Yes. Drop up to 10 PNG files into the queue, choose your shared matte color and quality level, and convert them locally in seconds.
Is JPG or PNG better for SEO?
Google Search indexes both equally well, so the better SEO choice is whichever format delivers sharp visuals at the smallest byte weight for fast Largest Contentful Paint (LCP). For photographs and rich screenshots, MozJPEG or WebP almost always wins.
Primary technical references
- W3C — Portable Network Graphics (PNG) Specification (Third Edition) — Authoritative specification for PNG alpha channels, color chunks, and lossless Deflate coding.
- Mozilla MozJPEG Project Documentation — Technical background on trellis quantization and progressive JPEG optimization.
- Google Search Central — Core Web Vitals & LCP — Official search ranking and user-experience thresholds for page load speed.
More free browser-local image tools
- Local Image Compressor (MozJPEG / OxiPNG / WebP WASM)
- Local Image Resizer (Lanczos3 WASM)
- WebP to PNG Converter (libwebp + OxiPNG WASM)
- EXIF & GPS Metadata Remover (Lossless Binary Stripper)