JPG to PNG

Change JPG pictures into lossless PNG files. The pixels stay exactly the same, so expect a bigger file. Your pictures stay in your browser.

JPG to PNG

How to convert JPG to PNG

  1. Choose your JPG files by dropping them on the box above or clicking it. Fifty is the most per run.
  2. There are no settings to change.
  3. Click Convert to PNG and check the size factor in the note under each result.
  4. Save each PNG, or take everything with Download all as ZIP.

What changes and what does not

This page decodes each JPG in your browser and saves the same pixels as a PNG. Nothing is adjusted. There are no settings, so there is nothing to get wrong: add files, convert, download. Each file keeps its name with a .png ending, and your JPGs are left alone.

We checked it. Our 1280 by 960 test photo, read back after conversion, had a largest pixel difference of 0 from the decoded JPG, so every pixel matched. The PNG is also fully opaque (lowest alpha value 255). Only JPG files are accepted: a PNG dropped here gets "this file type is not supported here." To go the other way, use PNG to JPG. For other formats, use the image converter.

Nothing leaves your browser. In a test with two JPGs added, we logged 20 requests, none with file data, and the outside hosts were Google's ad and analytics services and jsDelivr (the codecs). The picture code, which loads from jsDelivr with no hash check, is not requested until you add a file. Only Chromium was tested.

Why the PNG is so much bigger

JPG throws away detail to save space. PNG keeps every pixel exactly, so it needs far more bytes to describe a photo. Our 247,358 byte photo became 1,442,513 bytes, 5.8 times larger. The sideways phone-style photo went from 158,364 to 892,653 bytes, 5.6 times. The page shows the factor under each result.

Batches add up. Fifty copies of the photo grew from 11.8 MB to 68.8 MB, so a ZIP of them is big and slow to download. Converting also took longer than on our other pages, 43 seconds for the batch, about 0.9 seconds a file, because each PNG is repacked to be as small as it can be without loss.

It will not repair a damaged JPG

People convert JPG to PNG hoping for better quality. The pixels stay the same, so the picture looks the same. We re-saved the photo at JPG quality 20, a 23,961 byte file with visible blocking. As a PNG it was 106,784 bytes, and every pixel still matched the damaged JPG. The blocks are now stored in perfect detail.

The real use of PNG here is what happens next. Every time you re-save a JPG it loses a little more. If you will edit the picture several times, convert once to PNG, edit the PNG, and export a JPG at the end. For a copy you only need to view, keep the JPG.

Converting does not make a background transparent

A common search is "jpg to png transparent background". This page cannot do that. A JPG has no transparency, so the PNG we make has none either: our output had no transparent pixels at all. Removing a background needs a tool that decides which pixels are background, and this one does not guess. For a logo with a plain white background, an image editor with a magic wand or color-to-alpha tool will do it, then you save as PNG.

Rotation and metadata

Phones often store a photo sideways and add a tag saying how to turn it. Our test JPG was stored as 960 by 1280 with orientation tag 6. The PNG came out 1280 by 960 and matched the upright picture with a pixel difference of 0, so rotation is applied, not lost. Compared with the JPG as stored, the sizes do not match, which confirms the file was rotated.

Camera make, date and location are not copied: the PNGs had no EXIF tags. That helps if you are sharing a picture and want to leave out where it was taken. It hurts if you need those details later, so keep the original JPG.

Limits and what we did not test

You can add 50 files at once, each up to 100 MB, and the 51st is refused with "Only 50 files at a time." A fake file named .jpg fails with "this is not an image this tool can read." Because PNGs are large, very big JPGs may run into your browser's memory limits, though we did not test that.

We did not test real camera photos, CMYK or progressive JPGs, files near 100 MB, other browsers or phones. Our samples are synthetic, and timings are from a sandbox machine, so a laptop will differ.

When this conversion is the right move

Use it when software wants PNG input, when you will edit a picture many times, or when you need a lossless copy of what a JPG shows today. Skip it to save space (use the image compressor on the JPG) or to fix quality. Related pages: WebP to PNG for WebP files, and the converters hub for the rest.

Measured results

Three JPGs converted one at a time, then a batch of 50 copies. The last column is the largest pixel difference between the PNG and the decoded JPG, where 0 means identical.
SourceResult bytesSize factorLargest pixel difference
Photo JPG, 247,358 bytes1,442,5135.830
Sideways photo JPG, 158,364 bytes892,6535.640 (after turning upright)
Photo re-saved at quality 20, 23,961 bytes106,7844.460
50 copies of the photo, 11.8 MB68.8 MB5.83not read back

Prefer desktop software?

A desktop image program is the better choice when you need a whole folder converted, files renamed, or camera data kept. This page drops metadata and has no options.

GramFile has download pages for IrfanView, XnView MP and FastStone Image Viewer.

Frequently asked questions

Are my files uploaded?

No. The request log of our test had 20 requests, none carrying file data, and outside GramFile only Google's ad and analytics services and jsDelivr (the codecs). The code now comes from jsDelivr.

Does JPG to PNG improve quality?

No. The PNG has the same pixels as the JPG, so detail already lost does not return. Our quality 20 test came out as a bigger file with the same blocks.

Why is my PNG bigger than the JPG?

PNG stores every pixel without loss. Our photo grew 5.8 times, from 247,358 to 1,442,513 bytes.

Can I get a transparent background?

Not here. A JPG has no transparency and this page does not remove backgrounds.

Is JPEG to PNG the same as JPG to PNG?

Yes. JPG and JPEG are one format, and both file endings are accepted.

Is the conversion lossless?

Yes, from the decoded JPG to the PNG. Our largest pixel difference was 0. The JPG itself was already lossy.

What happens to a sideways phone photo?

It comes out upright. Our 960 by 1280 test file became 1280 by 960 with matching pixels.

How many files at once?

Up to 50, each up to 100 MB. Expect about 0.9 seconds a file on a test machine.