Skip to content
AgileLogics

JPG to PNG

Converts a JPG image to PNG format using an in-browser canvas.

How it works

Choose a JPG image and click Convert.

What does a JPG to PNG converter do?

A JPG to PNG converter turns a JPEG image, which uses lossy compression, into a PNG, which uses lossless compression. This tool decodes your JPG in the browser, draws it at its original pixel size, and saves it as PNG. The picture looks the same; what changes is how it's stored and how it behaves when edited.

People usually convert for one of three reasons: an app or upload form only accepts PNG, they want to edit an image repeatedly without each save adding more JPEG artifacts, or they plan to add transparency or sharp overlays later in an editor.

How to convert JPG to PNG

  1. Click Choose File and select a .jpg or .jpeg image.
  2. Click Convert.
  3. Check the preview, then click Download to save converted.png.

The width and height stay the same. A 1600 × 1200 JPG gives a 1600 × 1200 PNG.

JPG vs PNG

JPG (JPEG) PNG
Compression Lossy: discards detail to save space Lossless: every pixel is kept exactly
Transparency Not supported Supported (alpha channel)
Best for Photographs Screenshots, logos, diagrams, text, images you'll keep editing
File size for photos Small Large
Repeated saving Each save can add more artifacts No loss from re-saving
Specification ITU-T T.81 W3C PNG

MDN's image file type guide has more detail on when each format fits.

What converting can't do

It can't restore lost detail. Blockiness, smudged edges and color banding from JPEG compression are part of the pixels now. The PNG preserves them faithfully. If you have access to the original camera file or a higher-quality export, convert that instead.

It doesn't make a transparent background. A product photo on white is still on white after conversion. PNG can store transparency, but something has to decide which pixels should be see-through, and that's an editing job.

It won't make files smaller. For photographs the PNG is usually much larger. If the goal is a smaller file, use the image compressor or the WebP converter instead.

What happens to metadata

The PNG is created from pixels drawn onto an HTML canvas and exported with toDataURL('image/png'). Nothing else from the JPG file is copied, so EXIF data (camera model, date, GPS location), XMP and the embedded color profile are all left behind. That's handy if you're sharing the image, but if you need the capture date or camera details later, keep the original JPG. You can check what the original contains with the EXIF viewer.

Worked example

You have a 1200 × 800 JPG screenshot of a chart that a slide template only accepts as PNG.

  1. Choose the JPG and click Convert.
  2. Download converted.png. It's 1200 × 800 and fully opaque.
  3. If you need it at a different size for the slide, run it through the image resizer, which also outputs PNG.

If you're starting from a screenshot tool, save as PNG in the first place next time. Text and chart lines stay sharper that way than going through JPEG and back.

Other inputs

The file picker accepts any image type, so the same conversion works for WebP, GIF and BMP files your browser can open. For an animated GIF or WebP, the canvas draws a single frame (the HTML standard specifies the default image or the first frame), so the PNG is a still image.

Last updated

Frequently asked questions

Is my image uploaded anywhere?
No. The JPG is decoded and saved as PNG by your own browser using a canvas element, so the file never leaves your device.
Will converting JPG to PNG improve quality?
No. JPEG compression has already discarded some detail, and converting can't bring it back. The PNG is a lossless copy of the JPG as it looks now, artifacts included. The benefit is that further edits and saves won't add more JPEG loss.
Why is the PNG so much bigger than the JPG?
PNG compresses without losing anything, and photos have a lot of fine detail that lossless compression can't squeeze much. So a PNG of a photograph is usually considerably larger than the JPG it came from. That's expected.
Does the PNG have a transparent background?
No. JPEG has no transparency, so every pixel in the PNG is fully opaque, including white backgrounds. Converting doesn't remove a background; that needs a separate editing step.
Can I convert other formats to PNG with this tool?
Yes. Although it's built for JPG, it accepts any image your browser can open, such as WebP, GIF or BMP, and always outputs PNG. An animated GIF or WebP becomes a single still frame.