Convert JPG to WebP

Converting JPG to WebP stores the same photograph in roughly 25 to 35 per cent less space, which on an image-heavy page is the largest saving available without changing what the page contains. Drop a folder of JPGs above: they convert on your own machine, keep their names, and come back as one ZIP.

  • Where it runs In your browser. The file is never uploaded.
  • Lossy Some detail is traded for size. WebP cannot hold everything a JPG can.
  • File size limit Up to 100 MB per file, free, without an account.

Up to 100 files at once. Mixed formats are fine.

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.

What converting JPG to WebP actually saves

If you are here, something has probably told you to do this — a Lighthouse audit, a page speed report, a client asking why the site is slow on a phone. The advice is sound. WebP typically produces a file 25 to 35 per cent smaller than a JPG of the same visual quality, and on an image-heavy page that is the single largest saving available without changing what the page contains.

Is WebP safe to serve yet?

The support question is settled and has been for a while. Every current browser reads WebP, including Safari since 2020, so a site serving it today is not excluding anyone in practice.

Where it still trips people up is outside the browser: some desktop image viewers, older versions of Office, and the occasional upload form will not recognise the format. WebP is a format for the web, and it is worth keeping the JPG for anything a human might be sent by email.

You are compressing an already-compressed image

One thing to be clear-eyed about: converting a JPG to WebP compresses an image that has already lost detail. Your JPG discarded it when it was made, and WebP now compresses what is left. At the default quality the result is visually identical and the saving is real, but you are working from a copy.

If the original photograph still exists as a RAW file, a PNG or straight off the camera, converting that gives a better result at the same file size. In practice most people only have the JPG, and converting it is still worth doing — just do it once rather than round-tripping.

WebP can also replace your PNGs

WebP carries an alpha channel, which JPG does not. That matters less coming from a JPG, since there is no transparency to preserve, but it is why WebP can replace both JPG and PNG on a site. A logo that had to be PNG for its transparency and a photograph that had to be JPG for its size can both be WebP, which is one format to serve instead of two.

WebP or AVIF?

The honest answer is: AVIF is better, but not yet instead of. It compresses roughly 20 per cent tighter than WebP, at the cost of much slower encoding and thinner support in older software. If your setup can serve both and let the browser choose with a picture element, do that. If you are picking one format and moving on, WebP is the one that works everywhere today.

The conversion runs in your browser, which for this use is a practical benefit rather than a privacy one: you can drop a hundred images from a build folder — the batch cap — and none of them go anywhere, so there is no upload wait and no daily allowance. Take the results as a single ZIP.

Serving both, and letting the browser choose

A website does not have to pick. The picture element lets you offer WebP with a JPG beside it, and every browser takes the first format it understands — which means the modern ones get the smaller file and the rest keep working, with no user agent sniffing anywhere.

That is worth knowing before converting an entire image library in place. Keep the JPGs, add the WebPs, and the day something in the chain turns out not to read WebP, nothing is lost.

Do not convert the same picture twice

A JPG has already had detail removed. Converting it to WebP removes more, on top of what is gone — the second encoder cannot see what the first discarded and spends its effort on the artefacts instead of the picture. At sensible quality settings nobody notices, and it is still the right move for a page that needs to load faster.

Where it does show is repetition. An image converted, edited, re-saved and converted again accumulates the damage each time. If the original is still somewhere, going to WebP from that rather than from the JPG gives a smaller file and a better one.

How to convert JPG files to WebP in bulk

  1. Drop your JPG files onto this page — a whole folder is fine.
  2. Each converts in your browser, with its own progress.
  3. Download them individually, or take the batch as one ZIP.

JPG vs WebP: the same picture, a third lighter

JPG compared with WebP
JPGWebP
Full nameJPEG ImageWebP Image
File extension.jpg, .jpeg, .jpe.webp
Media typeimage/jpegimage/webp
CompressionLossy — file size is bought with qualityEither, depending on the setting
First published19922010
Published byJoint Photographic Experts GroupGoogle
SpecificationITU-T T.81RFC 9649
LicensingOpen standardOpen standard
Standing todayCurrentCurrent
Bit depth88
Colour it can describeRGB, greyscale, YCbCrRGB, YCbCr
Largest image65,535 px per side16,383 px per side
Opens in a browserEvery browserEvery browser
Considered insteadAVIF, HEICAVIF, PNG

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.

JPG to WebP: support, quality and AVIF

Are my JPG files uploaded anywhere?

No. This conversion runs entirely inside your browser, so the file never leaves your device. You can confirm it yourself: open the network tab of your browser's developer tools and convert something. You will see the page load, plus the analytics and advertising the site is paid for with — and nothing carrying your file. The engine behind this particular pair is jSquash, WebAssembly builds of the reference image codecs; your browser fetches it once and caches it.

How much smaller is WebP than JPG?

Around 25 to 35 per cent for the same visual quality, on a typical photograph. Less on images that were already heavily compressed — there is only so much to win back once the detail is gone.

Do all browsers support WebP?

Yes, for practical purposes. Every current browser has supported it for years, including Safari since 2020. The remaining gap is old software rather than old browsers — some desktop image viewers, older Office versions and a few upload forms still do not recognise it.

Is converting a JPG to WebP lossy?

Yes, twice over. Your JPG has already lost detail, and WebP compresses the decoded result again. At the default setting it is not visible, but converting the same image back and forth repeatedly will degrade it. Convert from the original if you still have it.

Should I use WebP or AVIF?

AVIF compresses better — often another 20 per cent — but encodes far more slowly and support in older software is thinner. WebP is the safe default for a site that has to work everywhere today. If you can serve both and let the browser pick, do that.

Can I convert a whole folder at once?

Drop up to a hundred files at a time and each converts separately, then take the lot as a single ZIP. Each one keeps its own name with the extension swapped, and nothing is uploaded, so there is no queue and no daily allowance to run out of.

Not sure which you need?

This page converts one into the other. If you are choosing rather than converting, JPG vs WebP answers which to use, for what, and what each is bad at.

More about these formats

Where these figures come from

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