Image Converting

JPG to PNG

Your images never leave this device

Local · lossless re-save

Converting a JPG to PNG produces a file that some upload forms and asset pipelines insist on. What it does not do is improve the image or give it a transparent background. It stores exactly the pixels the JPG decoded to, losslessly, in a file that is usually five to ten times larger.

How to convert JPG to PNG

1 Drop your JPG files in, or tap to choose them.
2 They are redrawn as PNG. There is no quality slider, because PNG keeps everything it is given.
3 Save them one at a time or as a ZIP.

The most common expectation of this conversion is the one it cannot meet. JPEG’s compression artefacts, the faint ripple around hard edges and the blockiness in flat areas, are ordinary pixel values by the time the browser has finished decoding. PNG has no way to tell them apart from real detail and preserves every one of them perfectly. Nor does the conversion create transparency: the background is opaque, exactly as it was, and removing a background is an editing job rather than a format change.

There is a second, less obvious reason the PNG comes out so large. PNG compresses by predicting each pixel from its neighbours and then deflating the residual, which works brilliantly when neighbouring pixels are similar. A decoded JPEG is not smooth in that way. The quantisation that made it small left a fine, structured noise across every eight-by-eight block, so the prediction is worse than it would have been on the camera original and the residual compresses worse. Most of the bytes in that PNG are being spent storing the JPEG’s own compression artefacts, faithfully.

There are real uses for it all the same. Some print services and some icon build steps accept PNG and nothing else. And if you are about to make several rounds of edits, converting to PNG once at the start stops every save adding another generation of JPEG loss on top of the last.

What people use it for

  • Satisfying an upload form that accepts PNG and nothing else
  • Feeding an icon or asset pipeline that expects PNG input
  • Meeting a print service’s PNG-only file spec
  • Getting a photo into a document or slide template that rejects JPG
  • Freezing an image before editing so no further JPG loss stacks up

Questions

No. That is an editing operation, not a conversion. The PNG will have the same opaque background the JPG had.

MDN: image file type and format guideW3C, PNG specification
Was this tool any good?
Internal signal only · I use it to find the tools worth rebuilding