JPG to PNG

Convert JPG to PNG in your browser. Useful before editing, because every later save is lossless — though it cannot restore what JPEG already discarded.

Drop a JPEG file here

It stays on your device — the conversion runs in this page, with no upload.

The honest use for this conversion is editing. JPEG loses a little detail every time it is saved, so a picture that will go through several rounds of cropping and retouching is better kept as PNG in the meantime. What it will not do is repair anything: the artefacts baked into the JPEG are pixels now, and PNG will preserve them faithfully along with everything else.

How it is calculated

canvas.toBlob(callback, "image/png")

The JPEG is decoded once and written out losslessly. Because PNG has no quality parameter, there is nothing to tune — the output is exactly the pixels the decoder produced.

Source: MDN image file type guide — PNG is image/png with extension .png, lossless, supports alpha

Questions people ask

Does this restore quality lost by JPEG?
No, and any tool claiming otherwise is guessing. JPEG compression is lossy and irreversible; converting to PNG simply stops further loss from happening.
Why is the PNG so much larger?
Because it stores every pixel exactly, including the compression artefacts. Photographs are the worst case for PNG: files several times the JPEG size are normal.
Will it give my photo a transparent background?
No. PNG supports transparency, but a JPEG has no transparent pixels to carry over, so the result is fully opaque. Removing a background is a separate editing job.

Found a problem, or want more?

A number that disagrees with its source is a defect, not a rounding preference.

What did you enter, what did the tool show, and what did you expect instead? If you have a source that disagrees with ours, a link to it is the most useful thing you can send.

Write to us

Opens your mail app with the page and tool already filled in.

Related tools