How to Convert JPG to PNG and PNG to JPG

People convert **JPG to PNG** because a form, an editor, or a teammate asked for a `.png`. They convert **PNG to JPG** because a website still only lists `.jpg`. Both jobs are format changes. Neither one resizes the picture. Neither one is magic.

JPG and **JPEG** are the same encoding; the filename letters differ. **PNG** is a different container with different rules: lossless for the pixels it is given, optional transparency, and often a larger file when the subject is a photograph.

RootoverZero’s [JPG to PNG converter](/tools/jpg-to-png) also converts PNG to JPG on the same page. Drop a JPEG, and the action is Convert to PNG. Drop a PNG, and the action is Convert to JPG. The image is processed in the browser. It is not uploaded to RootoverZero for storage or transcoding.

What you are converting

A **raster image** is a grid of pixels. JPG, JPEG, and PNG all store that kind of grid. They disagree about how the grid is packed and what extra features exist.

JPEG compression is **lossy**. The encoder is allowed to throw away information that it thinks you will not notice. Once that pass has happened, those values are not in the file. Decoding gives you an approximation of the original camera scene, not a reversible archive.

PNG encoding is **lossless** for the pixels you hand it. If you give PNG a decoded JPEG, it will store that decoded JPEG faithfully. It will not reconstruct the camera RAW or the detail JPEG already discarded. If you give PNG a graphic with flat color and a transparent hole, it can keep both.

That distinction is the whole quality story. JPG → PNG preserves decoded pixels. PNG → JPG takes those pixels and runs a JPEG encode. The second direction can add JPEG artifacts and must flatten transparency.

Convert in the browser, on the device

Some sites take your file, run it on a server, and hand you a download. That is a second copy of the image on someone else’s disk.

This tool decodes and encodes in the tab. Limits are honest: 25 MB, one still at a time, JPG/JPEG/PNG only. Very large pixel grids can still exhaust a phone browser. If the tab dies, the file is too large for that device, not automatically “corrupt.”

iPhone **HEIC** stills are a different format. Convert those with [HEIC to JPG](/tools/heic-to-jpg) first. Then, if you truly need PNG, bring the JPG here.

How to convert JPG to PNG

Start from the original JPEG, not a screenshot and not a messenger export that already re-encoded the photo. Open the [free JPG to PNG tool](/tools/jpg-to-png) and drop the `.jpg` or `.jpeg`. Read the original card: name, size, width, height, format. Check the preview. Convert to PNG. Wait for the processing state. The UI will not run a second convert on the same result by accident. Confirm the PNG width and height match the JPG. 1920 × 1080 must stay 1920 × 1080. Download `photo.png` from `photo.jpg`, or `holiday-photo.png` from `holiday-photo.jpeg`.

There is no PNG “quality” slider. PNG does not work like JPEG in that way. A slider labeled 90% PNG quality would be misleading, so it is not there.

The pipeline is: original JPG → decode → PNG encode → download. It is not JPG → another JPEG → PNG.

How to convert PNG to JPG

Drop the `.png` on the same converter. You do not need a second product. If the PNG is a cut-out or a UI with empty corners, decide whether you can live with a white fill. JPEG has no alpha. Convert to JPG. Encoding stays at a high quality setting. Dimensions do not change. Preview edges and type. Photographs usually look fine. Tiny text on a screenshot may show ringing. Download `logo.jpg` only if you accept the trade. Keep the PNG as the master when the graphic still matters.

Do not add a JPEG-style quality slider here either. The point of this page is conversion at a high encode, not a compress studio. If the JPG is still heavy and the pixels are already right, use the [Image Compressor](/tools/image-compressor). If the layout needs different pixels, use the [Image Resizer](/tools/image-resizer).

Does JPG to PNG improve image quality?

**No.** PNG cannot recover information already lost in the original JPG.

What conversion actually does is put the decoded pixels into a lossless file. The picture should look like the JPEG you started from, not like a better camera. If the JPEG was 400 pixels wide, the PNG is still 400 pixels wide. Enlarging that later will not grow new detail.

The useful gain is practical: some tools only accept PNG; some editing chains are safer if you stop saving JPEG over and over. That is workflow, not restoration.

Does PNG to JPG reduce image quality?

It can. JPEG is lossy. A high-quality encode at the original size should look like the photograph on a phone or laptop. It will not match a bit-for-bit hash of the PNG.

Graphics suffer more than photos. Hard edges, screenshots, and logos pick up the softness and mosquito noise JPEG is known for. If the destination will take PNG, keep PNG.

Transparency is a hard loss. This converter fills transparent pixels with white. It does not invent a studio backdrop, and it does not remove a background. If you needed a cut-out, stay on PNG or use a dedicated background tool later — not this page.

Why PNG is often larger than JPG

JPEG is good at packing continuous-tone photographs: skies, skin, foliage. PNG then stores the decoded grid without that packing. Going from `820 KB` to `1.9 MB` can be a correct result.

That is why this tool shows the size difference in both directions and does not market conversion as compression. A larger PNG is not a bug. A smaller JPG from a photographic PNG is also not a promise that the picture is “optimized”; it is the usual cost of JPEG.

If you converted to PNG because a tool asked for PNG, keep the PNG. If you converted to PNG and now a website wants a small photo, you may want JPG again — or compress the file you actually have to upload.

JPG vs PNG in real jobs

**Websites.** Photographs almost always ship as JPEG or a modern photo format. PNG is for logos, icons, and UI. A full-page PNG photo wastes bandwidth without restoring quality.

**Screenshots.** PNG is usually kinder to type and interface edges. Convert to JPG only when the uploader refuses PNG.

**Graphics and logos.** Stay PNG (or SVG, which is a different conversation). JPEG is the wrong interchange format for a mark that must stay crisp.

**Photographs.** JPG is the default to send. PNG is a reasonable edit copy after a JPEG decode, with the quality ceiling already set by that JPEG.

**Compatibility.** Both types are widely understood. The friction is allow-lists: some fields accept one and not the other. Convert a copy. Keep the master.

Common problems

**Unsupported file.** This page takes JPG, JPEG, and PNG. WebP, GIF, BMP, AVIF, and HEIC belong on the other RootoverZero tools or a later converter.

**Corrupt or invalid JPG/PNG.** If decode fails, the file is damaged, truncated, or not really that format. Try another export from the source app.

**PNG encoding failure or memory errors.** Huge pixel counts can exceed what a tab can hold. Try a smaller source, or resize first if you do not need the full grid.

**The download name looks wrong.** `photo.jpg` becomes `photo.png`. `holiday-photo.jpeg` becomes `holiday-photo.png`. PNG to JPG uses `.jpg`.

**I needed different dimensions.** Conversion does not crop or scale. Use the resizer.

**I needed a smaller file and I already have the right format.** Use the compressor, not another format hop, unless the destination format is the problem.

After you have the file you needed

If the next layout wants exact pixels, [resize without stretching](/blog/resize-image-without-losing-quality). If the grid is right and the upload is still too heavy, [compress without a quality-crushing slider](/blog/compress-image-without-losing-quality). If the original was an iPhone still, start from [HEIC to JPG](/blog/convert-heic-to-jpg). If you only needed the other of JPG or PNG, stop at the [JPG to PNG converter](/tools/jpg-to-png) and keep the source file you still trust.

FAQ

Is JPG the same as JPEG?

Yes. Same encoding. Use `.jpg` unless a form literally demands `.jpeg`.

Can I convert JPG to PNG without uploading the image?

Yes. This RootoverZero tool processes the file in the browser.

Can I convert PNG to JPG in the same tool?

Yes. Drop a PNG and convert to JPG. You do not need a separate page for V1 of this converter.

Will JPG to PNG make a blurry photo sharp?

No. Sharpness that JPEG already spent is not in the file.

Will PNG to JPG keep a transparent background?

No. Transparent areas become white.

Why did file size go up after JPG to PNG?

PNG stored the decoded photograph without JPEG’s lossy packing. That often costs more bytes.

Does conversion change width and height?

No.

Should I convert a logo from PNG to JPG?

Usually no. Keep PNG for logos unless a stubborn uploader refuses it.

What about iPhone photos?

If the file is HEIC, convert to JPG first with the HEIC tool. If it is already JPG, use this page only when you need PNG.