Formats6 min read

PNG to JPG and JPG to PNG: When to Convert and How

When converting PNG to JPG makes sense, when JPG to PNG does, and how to do both on Windows, Mac, a phone or in your browser without uploading your images.

By Published
A PNG file and a JPG file with arrows pointing both ways between them, next to their file sizes

PNG to JPG and JPG to PNG solve opposite problems. One makes a file smaller so it fits an upload limit. The other keeps an image from getting worse while you edit it, or satisfies a form that only takes PNG. Pick the wrong direction and you can lose a transparent background or turn a small photo into a huge one, so it’s worth knowing what each conversion does before you click.

Quick answer: Convert PNG to JPG when the image is a photo and you need a smaller file; transparent areas turn solid (white in ResizeAny). Convert JPG to PNG when a form demands PNG or you’ll edit and re-save the image many times; it won’t restore lost detail and the file gets bigger. Both run in your browser with ResizeAny’s PNG to JPG and JPG to PNG converters.

PNG vs JPG: what actually differs

PNG is a lossless format, now in its third edition as a W3C specification. The spec defines lossless compression as one that lets the original data be rebuilt exactly, bit for bit, and the format supports an optional alpha channel for transparency. JPG (or JPEG, same thing) is lossy: it throws away fine detail people rarely notice, which is why photos come out so small.

MDN’s image format guide puts the split simply: JPEG for photographs, PNG for screenshots, diagrams and line art, and PNG whenever an image needs transparency, because JPEG has no alpha channel. Microsoft’s help on saving pictures in Office agrees: JPEG for pictures with many colours, PNG for graphics with transparent parts.

PNG JPG / JPEG
Compression Lossless (exact pixels) Lossy (drops fine detail)
Transparency Yes, full alpha channel No
Best for Screenshots, text, logos, line art Photos
File size for a photo Large Small
Quality after many re-saves Unchanged Drops a little each time
Quality setting None Yes

When to convert PNG to JPG

The usual reason is size. A photo saved as PNG keeps every grain of noise exactly, and that takes a lot of bytes. A screenshot of a photo or an export from an app that defaults to PNG can easily be too big for an email or a job portal.

Convert when:

  • the image is a photo or has lots of gradients and texture
  • a form lists only JPG or JPEG
  • you need the file under a KB or MB limit
  • there’s no transparency you care about

Leave screenshots of text, charts and logos as PNG unless something forces you. JPG smudges sharp edges, and since PNG already packs flat colour well, the JPG may barely be smaller. Transparent logos are the other trap: JPG can’t hold transparency, so ResizeAny fills those areas with white, and a logo meant for a dark header arrives in a white box.

When to convert JPG to PNG

This direction doesn’t make anything sharper. The detail a JPG dropped when it was first saved is gone, and the PNG copies the pixels as they are now, blocky artefacts and all. Expect the file to grow, often a lot for a photo.

So why do it? Three cases come up again and again:

  1. A portal asks for a PNG, often for a signature or a scan. Converting meets the rule without changing how the image looks.
  2. You’re about to edit the image in several rounds. Every JPG save compresses again and loses a little more; a PNG working copy doesn’t.
  3. A chart, diagram or screenshot was saved as JPG by mistake and you want to mark it up without making it worse.

What JPG to PNG won’t do is make the background transparent. A JPG has no transparency to carry over, so a white background stays white. Removing it is a separate editing job.

How to convert in your browser, without uploading

Most online converters send your file to a server and back. Fine for a meme, less fine for a scanned ID card. ResizeAny converts the image inside your browser tab, so the file stays on your device.

  1. Open PNG to JPG or JPG to PNG. The editor opens with the right output format already selected.
  2. Drop in one file or many, or paste an image with Ctrl+V. One file can be up to 70 MB; a batch takes up to 100 files at 50 MB each.
  3. Leave width and height empty to keep the original pixel size.
  4. Press Resize, then Download. A batch downloads as one ZIP.

JPGs are saved at quality 92 out of 100. If a form caps the size, type a target such as 200 KB and the tool finds the highest quality that fits, shrinking the pixels too if it has to. The 200 KB and 100 KB presets have those limits filled in, and how we test explains how a target is reached.

PNG has no quality setting, so with PNG as the output the target size box is switched off. If a form wants a PNG under a limit, type a smaller width and leave the height empty; the file shrinks with the pixels. For a whole folder, use bulk image resize.

How to convert on Windows and Mac

On Windows, open the file in Paint and choose File > Save as, then JPEG picture or PNG picture. Use Save as, not Save, so the original isn’t overwritten.

On a Mac, open the image in Preview, choose File > Export and pick JPEG or PNG in the Format menu. Apple’s Preview guide notes that JPEG export has a quality slider, and that you can convert several files at once by opening them in one window, selecting them in the sidebar and exporting.

Fine for a couple of files, but neither has a file-size target.

On iPhone and Android

On an iPhone, the Shortcuts app has transform actions that convert content between formats; Apple’s own example is a PNG to a JPEG. It works, but building a shortcut for a one-off job is a lot of tapping.

On either phone, the browser is simpler. Open the converter in Safari or Chrome, pick the image, press Resize and download.

Renaming doesn’t convert anything

Changing photo.png to photo.jpg only edits the label. Under the PNG spec, every PNG file starts with the same 8-byte signature, with the letters “PNG” in bytes two to four, and programs that check the content see it straight away. Some apps open a renamed file anyway, so the trick seems to work until an upload gets rejected.

If your file came from a website as WebP, see how to convert WebP to JPG; iPhone photos are in the HEIC to JPG guide. For WebP and AVIF next to these two, read JPG vs PNG vs WebP vs AVIF.

And keep your original. PNG to JPG can’t give back transparency, and JPG to PNG can’t give back detail.

Frequently asked questions

How do I convert PNG to JPG for free?▼
Open ResizeAny's PNG to JPG converter in a browser, drop in your PNG files, press Resize and then Download. The conversion runs on your device, so nothing is uploaded. On Windows you can also open the file in Paint and use Save as > JPEG picture, and on a Mac you can use File > Export in Preview and set Format to JPEG.
Does converting JPG to PNG improve image quality?▼
No. The detail a JPG lost when it was first saved is gone for good. A PNG copy stores the pixels exactly as they are, artefacts included, so it looks the same. What it does stop is further loss when you edit and save the image again and again.
Why is my PNG so much bigger than the JPG?▼
PNG is lossless, so it keeps every pixel exactly. That works well for flat colours and text but poorly for the fine noise in a photo. A photo converted from JPG to PNG often ends up several times larger than the JPG.
What happens to a transparent background when I convert PNG to JPG?▼
JPG has no alpha channel, so it can't store transparency. ResizeAny fills transparent areas with white. If you need the background to stay see-through, keep the image as PNG or save it as WebP.
Will converting JPG to PNG make the background transparent?▼
No. A JPG has no transparency to carry over, so the PNG keeps the same solid background. Making it see-through means removing the background in an editor, which is a separate step.
Can I just rename a .png file to .jpg?▼
No. Renaming changes the label, not the data. A PNG file starts with its own 8-byte signature, and a form or program that checks the content will still see a PNG. The image has to be decoded and saved again in the new format.

Written by

Niks runs Nikshub, the small studio behind ResizeAny, a free image resizer that works entirely in your browser. The numbers in these guides come from the tool itself and from official sources, and you can check them with the free tools on this site.

Keep reading

Send feedback

How do you like ResizeAny?
What is it about?

With your message we send the page address, screen size and browser, to help fix problems. Your images are never sent. Privacy