WebP vs JPG vs PNG: which format should you use?

This is one of those questions with a short answer and a long answer. The short one: photographs go in WebP or JPEG, screenshots and logos go in PNG. The long answer is about the cases where that rule breaks, and those are the cases that waste people's afternoons.

Open the format converter →

Batch-convert between WebP, PNG and JPEG without uploading. Handles transparency properly when converting to JPEG.

The thirty-second version

JPEGWebPPNG
CompressionLossyLossy or losslessLossless only
TransparencyNoYesYes
AnimationNoYesNo
Relative sizeBaselineSmallestLargest for photos
Works everywhereYesAlmost — see belowYes
Good atPhotographsEverything, best of bothText, flat colour, sharp edges
Bad atText and sharp edgesNothing much, except old softwarePhotographs (huge files)

On paper WebP wins almost every row, which is why it exists. The reason it has not replaced everything is entirely about the last row of the "works everywhere" line, and that is not a technical question — it is a question about what the software at the other end will accept.

Why JPEG fails on text and PNG fails on photographs

Both failures come from the same cause, which is worth understanding because it explains the whole table.

JPEG compresses by throwing away detail it estimates you will not notice. It was designed around photographs, where neighbouring pixels are usually similar and small errors are invisible in a mass of texture. Applied to a screenshot, it produces exactly the wrong result: thin dark lines on a white background have no neighbouring similarity to exploit, so the algorithm's approximations show up as fuzzy halos around every letter. Text that was crisp becomes muddy, and it gets worse each time the file is saved.

PNG is the opposite: it stores every pixel exactly. That is perfect for flat colour, sharp edges and text, where the file only needs to record a few distinct values. It is terrible for a photograph, where every one of millions of pixels is slightly different and all of them have to be written down.

The practical test: is the image mostly a continuous surface, or mostly sharp boundaries? Continuous surfaces — skin, sky, fabric, food — want JPEG or WebP. Sharp boundaries — text, charts, UI, logos — want PNG or WebP.

Where WebP support still fails

Browser support for WebP is effectively universal now, on every current version of every major browser. The failures come from everywhere else:

A rule that never fails: if a system rejects your file and you sent WebP, convert it to JPEG and try again before you investigate anything else. Across every case in the list above, that is the fix.

So when should you actually use WebP?

On your own website, almost always. That is where WebP's advantages are fully usable and its one weakness — downstream acceptance — does not apply, because you control both ends. Smaller files mean faster pages, and page speed affects both how long people stay and how search engines rank you.

When you need transparency and a small file. This is WebP's strongest single case. A transparent PNG of a logo or a cut-out product is often several times larger than the WebP equivalent with no visible difference. If you have been distributing transparent PNGs because JPEG cannot do transparency, WebP is the format you were waiting for.

When you are fighting a hard file size limit on a photograph. At equivalent visible quality, WebP is typically 25–35% smaller than JPEG. When a form says 100 KB and your photograph will not fit, converting to WebP frequently solves it without touching the dimensions.

When should you not use WebP?

The rule of thumb, in one line

Where you control both ends, use WebP. Where somebody else's system is the destination, use JPEG for photographs and PNG for everything else.

That single sentence resolves nearly every real situation. The remaining ambiguity is almost always about whether a given platform accepts WebP, and the honest answer is that you find out by trying — which is exactly why it helps to have a converter that does not require uploading your files to a stranger's server first.

Converting between them: what to expect

ConversionResult
WebP → JPEGReliable. Slightly larger file. Transparency, if any, must be given a background colour
WebP → PNGReliable but usually much larger, since PNG stores everything exactly
JPEG → WebPSmaller file, visually equivalent. The most useful conversion there is
JPEG → PNGPointless for photographs. Much larger file, and no quality is recovered
PNG → JPEGFine for photographs. Bad for anything with text, and transparency becomes a solid colour
PNG → WebPExcellent for logos and cut-outs — keeps transparency, much smaller

Two things to internalise from that table. First, converting from a lossy format to a lossless one recovers nothing — the damage from the original JPEG compression is already in the pixels, and PNG will store it faithfully in a much larger file. Second, every lossy step compounds. Convert from the original every time; do not convert a file you already converted once.

Questions

Is WebP actually better than JPEG?

For file size at equivalent visible quality, yes, typically by 25–35%, and it adds transparency and animation on top. The reason to use JPEG anyway is compatibility, not quality: some systems accept JPEG and reject WebP, and that difference matters more than the byte count.

Will converting a JPEG to PNG improve the quality?

No. It cannot recover detail that the original compression discarded. The pixels are what they are; PNG merely stores them exactly, which makes the file several times larger for no visible gain.

Why does my WebP file get rejected when the browser displays it fine?

Because displaying a format and accepting it are different capabilities. Your browser understands WebP; the server-side validation on the receiving form may only be configured for JPEG and PNG. Convert to JPEG and resubmit.

Should I use WebP for a logo?

If the logo goes on your own website, yes — it keeps transparency and is far smaller than PNG. If you are supplying it to somebody else for their use, supply PNG, since you cannot know what their tools accept. Supplying both is the pragmatic answer.

Does converting lose the transparency in my PNG?

Only if the target format cannot store it. PNG and WebP both support transparency. JPEG does not, so those pixels have to become a solid colour — which is why the conversion tool asks you which colour rather than silently choosing black.

Related