JPG or PNG: which should you use?

One of them is right for photographs and wrong for screenshots, and the other is the reverse. Nothing about the formats changes — only what is in the picture.

6 min read · last checked 2026-09-04

People want a single word, and there is one — it just depends on something first. The right format is decided entirely by what is in the image, because these two are good at opposite things.

Here is the answer, and then the reason, which is worth two minutes because it means never having to look it up again.

The tool Image Converter PNG, JPG, WebP and AVIF in any direction, with transparency handled properly.

The short version

What the image isUseWhy
A photographJPGFive to ten times smaller, and you cannot see the difference
A screenshot, or anything with textPNGJPG blurs every letter edge, and is often bigger anyway
A logo or icon with a transparent backgroundPNGJPG cannot store transparency at all
A chart, diagram or flat illustrationPNGFlat colour compresses beautifully and stays sharp
A photo you are still editingPNG now, JPG at the endEvery JPG save loses a little more

They compress in opposite directions

JPEG throws detail away. It works by smoothing — it discards the fine, high-frequency detail the eye is worst at noticing, and reconstructs an approximation when the file is opened. That is why it is called lossy, and why the file is small.

PNG throws nothing away. It compresses by finding repetition: runs of identical pixels, patterns that recur, rows that resemble the row above. What comes out is bit-for-bit what went in.

Now send a photograph through both. A photograph is essentially noise — no two neighbouring pixels are quite the same, so PNG finds almost nothing to compress and the file stays enormous. JPEG’s smoothing, meanwhile, is invisible on a face or a sky. JPG wins, by a wide margin.

A bar chart comparing one 900 by 600 test image saved as PNG at 509 KB and as JPG at 92 KB.
Not a real photograph: an image generated to compress like one, with the gradients, grain and hard edges that make a photograph hard to compress. Encoded twice, sizes as measured.

Now send a screenshot through both. Flat backgrounds, repeated pixels, hard black-on-white text. PNG compresses that superbly. JPEG’s smoothing lands on every letter edge and leaves a faint grey halo around it. PNG wins, and it is usually the smaller file too.

The word Invoice magnified four times, saved as PNG on the left with clean letter edges, and as a low-quality JPG on the right where a grey haze surrounds every letter.
Both panels are what the encoders actually produced — nothing has been drawn on. The haze on the right is JPEG smoothing a hard edge.

Same two formats, opposite verdicts, and the only thing that changed was the content.

Transparency settles itself

JPG has no way to record “nothing here”. Every pixel in a JPG has a colour, so a transparent background has to become something — and left alone it becomes black, because to a decoder that has not been told otherwise, no light is black. That is why a logo converted carelessly comes back sitting on a black rectangle.

If the transparency has to survive, the decision is already made. If it does not — the image will sit on a white page forever — then converting to JPG with the transparent parts filled in a colour you pick is perfectly sensible, and much smaller.

The myth worth killing: PNG is not “higher quality”

PNG is lossless, which is a different claim, and the difference matters.

Lossless means it loses nothing relative to what you hand it. Hand a PNG encoder a JPG that has already been compressed half to death and you get a perfect, enormous, lossless copy of a damaged picture.

Converting JPG to PNG is genuinely useful — it stops any further loss while you edit, and it gives you transparency to work with. What it cannot do is recover a single pixel the JPG already discarded. Nothing can. If somebody tells you a converter improves quality, they are describing something that is not possible.

Generation loss, and why it matters more than the first save

One JPG save at a sensible quality is invisible. The problem is that pictures are rarely saved once.

Open it, crop it, save. Send it to somebody who adds text and saves again. They send it on, it gets resized, saved. Each re-encode compresses the previous compression’s artefacts along with the picture, and by the fifth generation it looks like it was faxed. This is the single most common way images are ruined, and no individual step looks like the culprit.

PNG has no such problem — re-save it a hundred times and it is identical to the first.

Which gives the working rule most people reach eventually: edit in PNG, publish in JPG. Keep the lossless copy as the master, and export a JPG each time you need to send one. The next edit starts from the master, not from the copy.

Why your PNG is enormous

Three usual causes, in order of how often they turn out to be it:

  • It is a photograph. PNG has nothing to work with, so the file is close to raw. This is not a fault to fix; it is the wrong format for the job.
  • It stores far more colour than it uses. A PNG can carry a full colour range per pixel, or a palette of up to 256 colours. A flat logo might use six. Exported as a palette PNG rather than a full-colour one, the same image is often a small fraction of the size, pixel for pixel identical.
  • It is much bigger than it will ever be shown. A 4000-pixel PNG displayed in a 600-pixel column is storing detail nobody will ever see. Resizing it to the size it is actually displayed at is the first and largest saving, and it costs nothing visible.

If the format has to stay and the file still has to come down, compressing on purpose beats letting an upload form decide for you — you get to look at the result before you commit to it.

Where WebP fits

There is a third answer, and for a website it is usually the right one.

WebP does both jobs: a lossy mode that beats JPEG and a lossless mode that beats PNG, keeping transparency in either. The figures usually quoted are around a quarter to a third smaller than the equivalent JPG or PNG at the same visible quality, which on a page full of images is the difference between fast and slow.

Every current browser reads it. The catch is everything that is not a browser — some desktop software, some upload forms, some older phones still refuse it. So: WebP for a site you control, JPG or PNG for a file you are handing to somebody else.

And for printing?

For a photograph going to print, a high-quality JPG has always been fine. What matters far more than the format is the resolution — 300 dpi at the size it will be printed, which is a property of the original and cannot be added afterwards.

For anything with text or line art — a poster, a certificate, a diagram — use PNG. Print shows the halo around letters that a screen forgives.

The rule that covers nearly everything

Does the image have hard edges or transparency?

If yes, PNG. If no, JPG. Everything above this line is just the explanation for that one question.

Common questions

Should I use JPG or PNG?

JPG for photographs — it is five to ten times smaller and the difference is not visible. PNG for anything with hard edges, text or transparency, where JPG blurs the edges and is often no smaller.

Is PNG better quality than JPG?

PNG is lossless, which is not the same as higher quality. It loses nothing relative to what you give it. A PNG made from an already-compressed JPG is a perfect copy of a damaged picture, not a better one.

Does converting JPG to PNG improve the image?

No. Nothing recovers detail a JPG has discarded. Converting to PNG is still worth doing before editing, because it stops any further loss from that point on — but the damage already done is permanent.

Why is my PNG file so large?

Usually because it is a photograph, which PNG cannot compress meaningfully. Otherwise: it is stored with far more colour than it uses, or it is far larger than it is ever displayed. Resizing is normally the biggest single saving.

Which format is better for screenshots?

PNG, clearly. A screenshot is hard edges and flat colour, which is exactly what PNG compresses well and exactly what JPEG smooths into a grey halo around every letter.

Should I use WebP instead?

For a website you control, usually yes — it beats both at their own jobs and keeps transparency. For a file you are sending to somebody else, no: some software and some upload forms still refuse it.

Does saving a JPG again lose quality?

Yes, every time it is re-encoded. One save is invisible; the fifth is not, because each pass compresses the previous pass’s artefacts along with the picture. Keep a lossless master and export a fresh JPG each time.

More guides

What is a HEIC file, and why will your PC not open it?

Half the size of a JPG, and a patent licence is why Windows refuses it.

How to get a PDF under an upload limit

Most PDFs cannot be compressed at all. Ten seconds tells you which kind you have.

Why WhatsApp ruins your photos, and how to send one properly

It re-compresses every picture you send. There is one way around it, and it is not the quality setting.

How to get a photo under a KB limit

The quality slider is the wrong first move. Pixels are the lever that works.

Are QR codes safe? What is actually inside one

Nothing inside one can run. The risks are the destination, the sticker over the original, and who owns the code.

Why video files are so big, and what actually shrinks them

Bitrate times length is the file size. Everything else follows from that.

MP3, WAV or M4A: which audio format, and at what bitrate?

128 kbps is about a megabyte a minute. Everything else follows from that.

Percentages, and the four sums people actually get wrong

20% off then 10% off is not 30% off, and adding 20% then taking it back leaves you short.

How to take a passport photo at home that is not rejected

The rule is the height of your head, not the size of the photo — and the shadow behind you is geometry.

How to make a ringtone, and why the cutting is the easy part

Android takes an MP3 straight. An iPhone wants an M4R, which is an M4A with a different extension.

Compound interest, in both directions

Savings growing and a card balance running away are the same sum. Only the side you are standing on differs.

What actually happens when a password leaks

Why one company’s bad week becomes your problem at forty other sites — and the single habit that breaks the chain.

What you can change in a PDF without Acrobat

Moving pages and stamping them costs nothing. Changing the words is the one genuinely hard edit, and this is why.

Are electronic signatures legally binding?

Valid nearly everywhere — but a drawn signature proves the mark is there, not who put it there. What that changes, and when it is not enough.

Why background removal cuts off hair

Hair, glass and plants come out ragged for a reason that is not fixable by trying another site. What causes it, and what to photograph instead.

Why OCR gets text wrong

Why the mistakes land in invoice numbers rather than in sentences, what actually ruins a scan, and how to photograph a page properly.

What the numbers on a barcode mean

Three fields and a checksum. Why “690 means made in China” is wrong, and how the last digit is worked out from the others.

Why date calculators disagree with each other

One month after 31 January is 28 February, 2 March or 3 March depending on the rule. Why the calendar refuses to be arithmetic.

What fitness numbers actually tell you

Why the level a fitness formula gives you is usually wrong, why the change usually is not, and which of the two is worth watching.

What has to be on an invoice

The blocks nearly every country expects, the two that people get wrong, and why “net 30” gets paid later than a date.

Subtitles: a separate file, or burned into the video?

A file the player draws, or pixels in the picture. What each costs, and why automatic captions get names wrong and sentences right.

Why your final grade is not the average of your grades

The same four marks give 82.5 averaged and 74.0 weighted. How weighting works, and what you really need on the final.

Does decoy pricing actually work?

A real 1982 effect, a famous 84%-vs-32% demonstration, and a 2014 attempt to reproduce it on real products that worked about once in eight tries.

How to save a picture that is only on the clipboard

Why Ctrl+V does nothing in a folder after you copy a picture, what your computer can already save on its own, and the shortest way round it.