PNG to JPG converter
Convert a static PNG to JPG locally.
Choose a file and settings
Choose a static PNG, JPG quality 1–100 and an opaque HEX background.
About this tool
Convert a static PNG to JPG locally. Choose quality and a transparency background.
JPG is useful for photos but does not retain transparency. The converter reads a static PNG locally and fills transparent areas with your chosen background before encoding. Quality is a browser setting, not a target-size guarantee. The original is unchanged.
How to use the calculator
- Choose a PNG file; remote image URLs are not accepted.
- Set quality and background, select “Convert”, review and download JPG.
Calculation details
Formula and calculation method
PNG structure and CRC are checked before decoding. sRGB Canvas composites pixels onto an opaque background; toBlob encodes image/jpeg with quality q/100. Output format is verified.
Worked example
A static 800 × 600 px transparent PNG with #FFFFFF background and quality 90 produces an 800 × 600 px JPG on white. Semitransparent edges are composited; JPEG compression can change pixels.
Limitations
- Project limits: 15 MiB input, up to 8192 px per side, 12,000,000 pixels and 50 MiB output. Images are not automatically resized. Empty, corrupt or unsupported files return an error, not partial output.
- No APNG, MPO, multipage files, SVG, GIF, WebP or HEIC. JPG: 8-bit baseline or progressive, grayscale or RGB; CMYK JPEG is unsupported. Pixel decoding depends on the browser.
- Canvas does not copy original EXIF, GPS, descriptions or profiles as archival metadata. Orientation and colour handling depend on the browser. No identical-pixel, colour, DPI or smaller-file guarantee; this is not certified data sanitization.
Sources
- W3C — PNG, transparency, structure and APNG
- ITU-T T.81 — JPEG standard
- MDN — Canvas toBlob, format and encoding quality
- MDN — createImageBitmap, orientation and colour
Engine version: 1.0.0 · Last reviewed: 2 October 2026
Frequently asked questions
Is renaming the extension enough?
No. We create a new file from decoded pixels and check its actual format, not only its name.
Will output be smaller?
There is no guarantee. Size depends on content, format and browser encoder. Keep the original and compare sizes.
What happens to transparency?
JPG has no alpha channel. Transparent and semitransparent pixels are composited onto your chosen background.
Is the file or colour uploaded?
No. Processing happens in the browser without adding input or output to analytics, the URL or form history. Loading the page connects to hosting. Clipboard copies, downloads and browser extensions remain outside reset control.