Convert PNG to JPG in your browser
This tool converts PNG images to JPG/JPEG entirely in your browser, with a quality slider and a background colour for transparent areas. It’s ideal for shrinking large PNG screenshots and exports, or meeting a JPG-only upload requirement — all without uploading your files.
How it works
Each PNG is decoded and drawn onto an HTML <canvas>. Because JPG has no alpha
channel, the canvas is first filled with your chosen background colour (white
by default), then the image is drawn on top, so transparent pixels become solid.
The canvas is re-encoded with canvas.toBlob("image/jpeg", quality) at the
quality you set. Each result shows the original and new file size.
Quality and file size guide
| Quality | Look | Relative size | Best for |
|---|---|---|---|
| 100% | Near-identical | Largest JPG (~50–60% of PNG) | Archival, print masters |
| 90% (default) | Imperceptible loss | Much smaller than PNG | Web photos, emails |
| 70–80% | Mild softening on edges/text | Smallest usable | Thumbnails, previews |
| Below 60% | Visible blocking artefacts | Tiny files | Low-bandwidth only |
For most purposes the 90% default is the right choice: it gives a dramatic file size reduction with no visible quality loss at normal screen viewing distances.
Handling transparent backgrounds
JPG cannot store transparency. Pixels that are transparent in your PNG are “flattened” onto the solid background colour you choose before the JPEG is encoded. Common choices:
- White — the default; correct for documents, product photos on white backgrounds, and print-ready exports.
- Black — used when the image will sit on a dark page or app UI.
- Match your page background — for example a #f5f5f5 grey or a brand colour, so the transparent area blends seamlessly after conversion.
If the image needs to remain transparent in use — for example a logo that sits on varying backgrounds — keep it as PNG or convert to WebP/AVIF instead.
When PNG to JPG is the right choice
- Uploading to a platform that accepts only JPEG (some CMSs, social networks, or client portals still reject PNG uploads).
- Reducing the weight of a large photographic PNG where the lossless encoding wastes space.
- Meeting a file-size limit for an email attachment or form upload.
- Batch converting a folder of screenshots taken on macOS or Windows (which default to PNG) before publishing them to a web page.
For images that contain text, sharp lines, or icons, staying at 90%+ quality or using WebP/PNG avoids the fringing artefacts that JPEG introduces at lower settings around high-contrast edges.
Everything happens locally — your images are never uploaded, stored, or seen by anyone.