# PNG to JPG Converter

URL: https://hifreetools.com/image/png-to-jpg

> Turn one or many PNG files into JPG photos with a quality you choose. Transparent areas are flattened onto white, and everything happens in your browser.

## Quick answer

To convert PNG to JPG, re-encode the picture in the JPEG format, which uses lossy compression to make a much smaller file. This tool does it in your browser: drop in one or more PNGs, set the quality, and download JPGs. Because JPG has no transparency, any see-through areas are placed on a white background.

## Formula

- JPEG quality q % → canvas.toBlob("image/jpeg", q ÷ 100)
- Transparent pixels are painted onto the background colour first (JPEG has no alpha channel)
- photo.png → photo.jpg (same width and height)

The tool decodes each PNG, paints it onto an HTML canvas — first filling the canvas white so transparent pixels don't turn black — then exports the canvas as JPEG at the quality you set. JPEG drops fine detail the eye barely notices, so a screenshot or logo saved as PNG usually shrinks dramatically when re-saved as JPG.

## Inputs

- Images (1 to 100) — one of: PNG, JPG, WebP, GIF, BMP
- JPG quality (10 to 100); default 92
- Background for transparent areas; default #ffffff
- File name; default image.png
- Images (1 to 100); default 1

## Worked examples (computed by the page's own function)

- File name = screenshot.png, Images = 1, JPG quality = 85, Background for transparent areas = #ffffff → JPG = screenshot.jpg, Images = 1, Encoder quality = 0.85, Background = #ffffff  (JPEG quality 85 % → toBlob("image/jpeg", 0.85) on #ffffff)
- File name = logo.png, Images = 1, JPG quality = 92, Background for transparent areas = #FFF → JPG = logo.jpg, Images = 1, Encoder quality = 0.92, Background = #ffffff  (JPEG quality 92 % → toBlob("image/jpeg", 0.92) on #ffffff)
- File name = product-01.png, Images = 12, JPG quality = 92, Background for transparent areas = #ffffff → JPG = product-01.jpg, Images = 12, Encoder quality = 0.92, Background = #ffffff  (JPEG quality 92 % → toBlob("image/jpeg", 0.92) on #ffffff)

## Verification

Checked against 16 reference cases (expected values computed independently). Reviewed 2026-10-27. Latest change 2026-10-28: Moved to the schema file renderer with a sourced ledger. New: a background colour for transparent areas (was always white), a Take photo button and paste. Conversion now starts with the Convert button instead of on drop, so a quality change applies before converting; up to 100 images per batch.

## FAQ

**Are my PNG files uploaded to a server?**
No. The conversion runs entirely in your browser using an HTML canvas, so your images never leave your device — safe for private or work files.

**What happens to the transparent background?**
JPG does not support transparency, so any transparent areas are filled with white. If you need to keep transparency, convert to WebP instead, which supports an alpha channel.

**Why is JPG so much smaller than the PNG?**
PNG is lossless and stores every pixel exactly, which is large for photos and screenshots. JPG uses lossy compression that discards detail you can barely see, producing a far smaller file.

**Can I convert many PNGs at once?**
Yes. Drop in or select several files and they are all converted to JPG together, with a one-click download for each and a Download-all button.

**What quality setting should I pick?**
80–92% is a good balance of clarity and size for most images. Use higher for detailed photos you'll print, and lower only for small web thumbnails.

**Will converting reduce the image dimensions?**
No — the pixel width and height stay the same. Only the file format and compression change. To change dimensions too, use the Image Resizer.


## Sources

- [MDN — HTMLCanvasElement.toBlob() (image encoding and quality)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob)
- [Google web.dev — Choose the right image format](https://web.dev/articles/choose-the-right-image-format)
- [W3C — PNG Specification (Third Edition): alpha channel](https://www.w3.org/TR/png-3/)

Runs in the browser; nothing is uploaded. Cite as: HIFreeTools, "PNG to JPG Converter", https://hifreetools.com/image/png-to-jpg
