JPG vs WebP

WebP at the same visual quality is roughly a quarter to a third smaller.

Choose JPG when

When the file has to work everywhere without thinking — a CV, a marketplace listing, a printer, a decade-old phone. JPG is the most universally readable image there is.

Choose WebP when

On a website you control. Same photograph, same apparent quality, meaningfully fewer bytes, and every browser in current use reads it.

The thing that catches people out

Converting an existing JPG to WebP does not recover what JPG already discarded. It re-compresses an already lossy image, so start from the original if you still have it.

Switching from JPG to WebP

What is lost

WebP has nowhere to put IPTC fields, which hold captions, credits and keywords and the GPS coordinates, so those go no further than the JPG. Worth checking before the original is deleted, and worth knowing if the point was to strip it.

What the target format adds

WebP supports transparency and JPG does not. That is room the result has and the original never used — converting does not create a transparent background, it only makes one possible afterwards.

WebP can hold animation; a JPG is one frame. The result is a single-frame file in a format that could hold more.

Opening the result

Adobe Photoshop and GIMP read both JPG and WebP, so there is a way to check the result against the original without a second tool.

File size and quality

The result is larger than the original and no better. JPG has already discarded detail, and WebP stores what is left without discarding more — it prevents further loss rather than undoing the first one.

What each format is for

JPG is Joint Photographic Experts Group's format, published in 1992. It records 8 bits per channel.

WebP comes from Google and dates from 2010, specified as RFC 9649. Adobe Photoshop, GIMP and Squoosh all read it.

JPG was published in 1992 and WebP in 2010. The older one is generally the safer file to hand to somebody; the newer one usually does the job in fewer bytes.

Switching from WebP to JPG

What is lost

JPG has no alpha channel. A transparent WebP comes out with those areas filled in — white unless something else is set — and no setting in JPG brings the transparency back.

JPG holds a single still image. An animated WebP keeps its first frame and loses the rest, so a conversion is a way to take a still out of one, not a way to move it.

Opening the result

Adobe Photoshop and GIMP read both WebP and JPG, so there is a way to check the result against the original without a second tool.

File size and quality

The file gets substantially smaller, and it gets smaller by discarding detail. WebP keeps everything; JPG keeps what the eye is poor at noticing. On a photograph that trade is close to free; on text, a screenshot or a line drawing it is visible as haloing around the edges.

What each format is for

WebP is Google's format, published in 2010. It records 8 bits per channel.

JPG comes from Joint Photographic Experts Group and dates from 1992, specified as ITU-T T.81. Adobe Photoshop, GIMP and Preview all read it.

JPG was published in 1992 and WebP in 2010. The older one is generally the safer file to hand to somebody; the newer one usually does the job in fewer bytes.

What JPG to WebP actually does

A generated landscape with a low sun and three ridges, used to show what JPEG does to continuous tone. Shown as JPG.

JPG9 KB

A generated landscape with a low sun and three ridges, used to show what JPEG does to continuous tone. Shown as WebP.

WebP14 KB65% larger

A photographic scene — smooth gradients, soft edges, grain. This is the case WebP is designed for or against, and the figures show which. Both images are drawn in code and encoded by the same converter that runs on this page, so the sizes are this site's own output.
A generated badge: a circular gradient on a transparent background with a white bar across it, used to show what each format does with transparency and with hundreds of shades. Shown as JPG.

JPG6 KB

A generated badge: a circular gradient on a transparent background with a white bar across it, used to show what each format does with transparency and with hundreds of shades. Shown as WebP.

WebP4 KB25% smaller

A transparent background and a gradient across the shape. WebP either keeps both, keeps one, or fills the transparency with a solid colour — which is the difference that catches people out. Both images are drawn in code and encoded by the same converter that runs on this page, so the sizes are this site's own output.
A generated application window with a sidebar, a table and a bar chart, used to show what JPEG does to flat colour and hard edges. Shown as JPG.

JPG16 KB

A generated application window with a sidebar, a table and a bar chart, used to show what JPEG does to flat colour and hard edges. Shown as WebP.

WebP11 KB34% smaller

Flat colour and hard edges, as in an interface, a chart or a logo. Very different behaviour from the photograph above, and the reason the answer is "it depends what is in the file". Both images are drawn in code and encoded by the same converter that runs on this page, so the sizes are this site's own output.

Side by side

JPG and WebP compared row by row: what each stores, and what it costs.
JPGWebP
Full nameJPEG ImageWebP Image
Extension.jpg, .jpeg, .jpe.webp
Media typeimage/jpegimage/webp
CompressionLossy — file size is bought with qualityEither, depending on the setting
This site can write itYesYes

Same job, twenty years apart

Both are lossy formats for photographs, and they work the same way in outline: discard detail the eye is unlikely to miss, describe what is left compactly. JPEG was standardised in 1992 and WebP in 2010, and the eighteen years between them are most of the difference.

WebP’s compression comes from video coding — it is a still frame of the VP8 codec — and it brings techniques JPEG predates: better prediction from surrounding blocks, a smarter transform, and an entropy coder that squeezes more out of what remains. At comparable visual quality the file is typically twenty-five to thirty-five per cent smaller.

What that saving is worth

On a page with one photograph, nothing you would notice. On an e-commerce category page with forty product images, a third off the largest thing on the page is the difference between a site that feels immediate and one that does not — and it is measured directly by the metric search engines use for page experience.

It also compounds on mobile connections, where the bytes arrive slowly and the visitor is most likely to leave. If images are the bulk of a page’s weight, and on most pages they are, converting them is the single highest-return performance change available.

WebP also handles what JPEG cannot

Transparency, with a real alpha channel — so a product photograph cut out from its background can be a WebP where it previously had to be a PNG at several times the size. That is a bigger practical win than the compression on many sites.

And a lossless mode, which JPEG has no useful equivalent of. So one format covers photographs, cut-outs and interface graphics, where a site previously needed JPG for one and PNG for the others. Fewer formats in a build pipeline is worth something on its own.

Where JPEG still wins outright

Everywhere that is not a browser. Every camera writes JPEG, every phone gallery opens it, every printing service takes it, every upload form accepts it, every email client shows it, and every piece of software written in the last thirty years reads it. Nothing else in imaging is that universal.

So the rule is about destination, not quality. A photograph going onto a web page: WebP. A photograph being emailed, printed, uploaded to somebody else’s system, or handed to a person: JPG. Sending a WebP to a client and being asked what the file is is a conversation nobody needs.

Do not convert a JPG you already have

This is the mistake worth naming. Converting an existing JPG to WebP re-encodes an image that has already been compressed lossily. The artefacts from the first pass are treated as detail and preserved faithfully, and new ones are added on top.

The saving is real and the quality is a generation down from what it should be. Where possible, generate the WebP from the original — the camera file, the master, the export from the design tool. Where that is impossible, converting is still usually worth doing at a high quality setting, and it should be a considered decision rather than an automatic one.

Serving both, which is the actual answer

A picture element takes several sources and the browser picks the first it understands. Put the WebP first and the JPG second and every visitor gets the best file their browser can read, with no detection and nothing to maintain.

Most content management systems and image services now do this automatically — they store one original and deliver whichever format the requesting browser advertises. If your platform offers that, it is the whole job, and hand-converting an image library is unnecessary work.

And where AVIF fits

AVIF is smaller again on photographs, often by another twenty to thirty per cent against WebP, and it handles gradients and skies with less banding. It is also considerably slower to encode, which matters when a site generates images on upload.

Both are read by every current browser, so the sensible arrangement is AVIF first, WebP second, JPG as the fallback. If that is more pipeline than the site justifies, WebP with a JPG fallback captures the great majority of the benefit for a fraction of the effort.

JPG or WebP: common questions

Is WebP better than JPG?

For serving photographs on a web page, yes — typically 25 to 35 per cent smaller at comparable quality, plus transparency and a lossless mode JPEG has no equivalent of. Outside a browser, JPG is the file that always works, and that is what keeps it.

Should I convert my existing JPGs to WebP?

With care. Converting re-encodes an already lossy image, so the first pass’s artefacts are preserved and new ones added. Generate WebP from the original where you can. Where you cannot, convert at a high quality setting and treat it as a considered trade rather than a free win.

Can I email someone a WebP?

Better not to. Email clients, older phone galleries, plenty of desktop software and many upload forms do not handle it. For anything a person receives directly, send JPG.

Does WebP support transparency?

Yes, with a full alpha channel — which JPEG has none of. That lets a cut-out product photograph be a WebP instead of a PNG at several times the size, and on many sites it is a bigger saving than the compression itself.

Do I need a JPG fallback?

Not for browsers — every current one reads WebP. Keep the JPG anyway as the file you send, print and upload elsewhere, and serve it as a picture element fallback if you want the belt and braces.

Should I skip WebP and use AVIF?

AVIF is smaller again on photographs and much slower to encode. Both are supported everywhere current, so the best arrangement serves AVIF first, WebP second and JPG as the fallback. WebP alone still captures most of the benefit.

Decided? Convert it here

Where these figures come from

The claims this page makes about JPG and WebP are checkable, and these are the documents that settle them.