Skip to content
Simple Tools

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.

File and conversion options

Up to 15 MiB, 8192 px per side and 12,000,000 pixels. One file, no animation.

Background for transparent pixels, e.g. #FFFFFF. No alpha channel.

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

  1. Choose a PNG file; remote image URLs are not accepted.
  2. 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

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.

Read the supporting guide

Calculator

RGB and HEX converter

Convert RGB to HEX or HEX to RGB and preview an opaque sRGB colour.

Open tool
Calculator

RGB and CMYK converter

Convert RGB and CMYK using a simple model without ICC profiles. Output is approximate, not print-ready.

Open tool
Generator

JPG to PNG converter

Convert JPG to PNG locally, keeping dimensions after orientation.

Open tool