Skip to content

PNG to JPG converter

  • Runs on your device
  • Works offline once loaded

Convert PNG images to compact JPG files. Photos usually become several times smaller, which helps for email, uploads and websites. Because JPG cannot store transparency, see-through areas are filled with a color you choose. It all happens in your browser.

How it works

  1. Drop your PNG files.
  2. Set the quality and the background color.
  3. Download the JPGs, or a ZIP for a batch.

Why use it

  • MozJPEG encoder for smaller files at the same look.
  • Choose the fill color for transparent pixels.
  • Optional resize while converting.
  • Batch conversion, no upload.

PNG to JPG: what changes, and the settings that matter

What happens to your picture

A PNG stores every pixel exactly. A JPG stores an approximation that the eye reads as the same picture, which is why it is so much smaller for photos. The converter decodes your PNG, paints it onto a background of the colour you chose, and encodes the result with MozJPEG, the JPEG encoder Mozilla built to get smaller files out of the format. Files start converting as soon as you drop or paste them, and a batch downloads as one ZIP.

How much smaller the JPG is

For photos the saving is large. We saved six test photos, each 2048 pixels wide, as lossless PNG and as JPG with the same encoder and settings this page uses:

PhotoPNGJPG at 90JPG at 75
Cat, soft background2,124 KB251 KB90 KB
Lake and forest4,912 KB1,024 KB394 KB
Coffee in knitted gloves2,811 KB353 KB157 KB
Neon sign at night3,248 KB729 KB249 KB
Macaw feathers3,036 KB469 KB153 KB
Sunset1,970 KB330 KB115 KB
At the default quality of 90 the JPGs were 4.5 to 8.5 times smaller than the PNGs; at 75, 12 to 24 times smaller.

Quality 90 keeps photos very close to the original. Quality 75 to 85 is enough for most photos you send or upload: on these photos, 85 made files about 40 percent smaller than 90, and 75 about 60 percent smaller. Our article on JPEG quality settings shows what each step of the slider changes, with pictures.

When you should keep the PNG

Screenshots, logos, charts and anything with text are the opposite case. They have flat colour and sharp edges, which PNG stores efficiently and JPG does not. A 1600 by 1000 pixel chart we tested was 43.5 KB as PNG, 42.5 KB as JPG at quality 75, with grey halos around the letters, and 75.9 KB as JPG at quality 90. Converting it made the file no smaller and the text slightly blurred.

If a form or a website only accepts JPG, convert anyway and keep the quality at 90 or more so text stays readable. Otherwise keep the PNG, or try PNG to WebP, which shrinks graphics without halos.

Transparency and the fill colour

JPG has no transparency. Every see-through pixel is painted with the fill colour, white unless you pick another. Half-transparent pixels, such as the soft edge of a logo or a drop shadow, are blended with that colour, so the edge is drawn for one background only. If the JPG will sit on a dark page, choose the page colour as the fill before converting, or the logo will show a pale fringe. If you need the transparency itself, keep the PNG or use WebP.

Making the picture smaller as you convert

The longest side setting caps large pictures at 3840, 2560, 1920, 1280 or 800 pixels and never enlarges small ones. Pixels count for more than quality: a photo at half the width has a quarter of the pixels, and its file shrinks almost as much. Most websites and chat apps show photos at 1920 pixels or less, so capping there removes detail nobody would see. For an exact width and height, use resize image.

If the result looks wrong

  • The JPG is bigger than the PNG. The picture is a graphic or a screenshot rather than a photo. Keep the PNG, or lower the quality and check that the text is still sharp.
  • A logo has a white box around it. That box was transparent in the PNG. Convert again with the colour of the background it will sit on.
  • Skies or gradients look banded or blocky. Raise the quality to 90 or more; smooth areas show JPG compression first.
  • An animated GIF became a still picture. A JPG holds one picture, so only the first frame is converted.

How we tested. Six CC0 photos scaled to 2048 pixels wide, and a 1600 by 1000 pixel chart with text, encoded in Chrome with the MozJPEG and OxiPNG builds and settings of this converter. PNG sizes are lossless files after OxiPNG optimisation.

Questions and answers

What happens to transparent areas?

JPG has no transparency, so transparent pixels are replaced by the background color, white by default. You can pick any color.

What quality should I choose?

Around 85 to 90 is visually close to the original for photos. Lower values give smaller files with some softness.

Is it safe to convert private images?

Yes. The files are processed locally and never sent anywhere.

Related guides

Images6 min read

JPG, PNG, WebP or AVIF: which format to use

We saved six photos and a graphic in all four formats at the same visual quality and compared the sizes. The newer formats win on photos by a wide margin, but each format still has a job.

Images5 min read

Which JPEG quality setting should you use?

Every program that saves JPEG asks for a quality from 0 to 100, and the trade between size and quality is far from linear. We saved six photos at twelve settings and measured what each step changes.

Esc