JPG to PNG

Turn a JPEG into a lossless PNG in this tab, with an optional cap on the width.

Runs on your deviceImagesWorkingNo account needed

What this tool does

JPG to PNG asks the browser to decode your JPEG, draws it onto a canvas at its own pixel size, and encodes that canvas as PNG. PNG stores every pixel it is given without discarding anything, so what comes out matches what the decoder produced — including the blockiness and the ringing around hard edges that the JPEG already baked in. The point is not to repair the picture but to freeze it: once it is PNG, further crops, annotations and saves stop adding a fresh layer of loss each time.

Expect the file to grow. A photograph re-encoded losslessly is commonly three to five times the size of the JPEG it came from, because JPEG achieves its size by throwing detail away and PNG is not allowed to. Flat material — a chart, a screenshot, a logo on solid colour — fares far better, since PNG compresses runs of identical pixels well. The single setting on the page is the brake for that: Maximum width caps the output in pixels, 0 keeps the original dimensions, and the height follows the aspect ratio on its own. It only ever shrinks; a cap wider than the photo is ignored rather than enlarging anything, and a large reduction is done by halving repeatedly so the result stays sharp instead of aliased.

If you arrived looking for a transparent conversion, this is the wrong tool and it is worth saying plainly. A JPEG has no alpha channel, so there is no transparency to recover, and nothing here removes or keys out a background. The PNG that comes back is fully opaque, with a white backdrop still white. Knocking out a flat background colour is what Transparent Background does, and it writes PNG as well.

The work is done by your own processor in this browser tab, so the photo is not sent anywhere and the tool keeps working offline. Taking the canvas route has two consequences, and both are better known in advance. Nothing from the JPEG's metadata survives: camera make and model, exposure, GPS coordinates, capture date, the ICC colour profile and the orientation tag are all absent from the PNG, which holds pixels and nothing else — so a wide-gamut shot can shift on a wide-gamut screen, and a photo that leans on its orientation tag is worth checking once before you convert a batch. And the whole image has to be held in memory as a canvas, which every browser caps at some size. The tool does not test for that ceiling in advance: past it the encode usually stops with a message that PNG could not be written, though a browser can also hand back a blank picture instead, so look at the first result before trusting a run of very large scans.

How to use it

  1. Choose one JPEG, or several. The picker takes .jpg, .jpeg, .jfif and .jpe. Several files are worked through one after another, each as its own conversion.
  2. Cap the width, or leave the box at 0. Left at 0, the photo converts at its own pixel size. Any smaller figure caps the width and the height scales with it — useful when the lossless file would otherwise be unwieldy.
  3. Read the figures. The summary gives the size before and after with the percentage change, usually an increase, and the badges beside it carry the output dimensions and format. Convert several files at once and those figures describe the last one.
  4. Save the results. Each PNG keeps the source filename with the extension swapped, so holiday.jpg becomes holiday.png. Take them one at a time, or use Download all as ZIP for the set.

Processing & privacy

Runs on your device. Your file is processed directly in this browser.

Common use cases

Editing a photo without stacking further loss

Every re-save of a JPEG compresses it again. Convert once, then crop, annotate and export from the PNG without compounding the damage.

Feeding software that refuses JPEG

Icon pipelines, game engines and some import steps accept PNG only. Converting the file is quicker than arguing with the importer.

Screenshots and charts that were saved as JPEG

Type and thin rules pick up mottling from JPEG that PNG cannot undo, but the conversion stops it worsening with each subsequent save.

Preparing a master before several exports

When one picture will be scaled, layered and written out repeatedly, starting from a lossless copy keeps every later version equally clean.

Questions

Where does the conversion actually happen?
Here, in the tab you are reading. The decode and the PNG encode both use the canvas the browser already provides, so the JPEG is read straight from disk into memory, nothing is uploaded, and the page still works with the network switched off.
Why is the PNG larger than the JPG it came from?
Because PNG cannot discard detail to save space. A photograph is usually several times bigger as PNG; flat graphics, screenshots and line art grow far less, and sometimes shrink, because large areas of identical pixels compress well.
Does converting to PNG improve the image?
No. Whatever the JPEG threw away was gone before this tool opened the file, and no format can put it back. Conversion preserves the picture exactly as it stands now and prevents further loss from here on.
Will the PNG have a transparent background?
No. The source has no alpha channel and this tool does not remove backgrounds, so the result is opaque throughout. Use Transparent Background when a flat colour needs knocking out.
Does the EXIF data come across?
No. The PNG is written from pixels alone, so camera fields, GPS coordinates, the capture date, the colour profile and the orientation tag are all left behind. That suits you when shedding them was the point. When the file should stay a JPEG with its colour profile and orientation intact, Remove EXIF edits the metadata blocks in place rather than re-encoding the picture.
What happens when I add a dozen JPEGs?
They are converted one after another rather than all at once, so memory stays in hand and the progress bar runs across the whole set. Any run of more than one file is offered as a single ZIP as well as separate downloads.
What about the other direction, or another format?
PNG to JPG goes back the other way and fills transparency with a colour you pick, and Convert Image handles WebP, AVIF and GIF as well.

Related tools