JPG to WebP

Making a site or an upload form lighter? Turn JPG photos into WebP, choose the quality, and read the new size of every file before you save it. Your photos stay in your browser.

JPG to WebP

How to convert JPG to WebP

  1. Add your JPG files by dropping them on the box above or clicking it. The limit is 50 per run.
  2. Leave Quality at 85 or move it. Lower is smaller, higher keeps more detail. Tick Lossless only if you need an exact copy of the pixels.
  3. Press Convert to WebP.
  4. Check the size line under each result. A note appears if a file got bigger.
  5. Save the files one by one, or take them all with Download all as ZIP.

What this JPG to WebP converter does

Your browser decodes each JPG and writes a WebP with the quality you set. The default is 85, and the slider runs from 10 to 100. A file named holiday.jpg comes out as holiday.webp, and the original stays as it was.

Only JPG and JPEG files are accepted. A PNG dropped on the page was refused with "this file type is not supported here." For a PNG source, see PNG to WebP. For the reverse, and for when a program will not open WebP, use WebP to JPG.

How much smaller will it be?

It depends on the picture and the quality, so we measured. Our 1280 by 960 test photo, a 247,358 byte JPG, became 42,846 bytes at the default quality 85, which is 17 percent of the original. At 75 it was 15,480 bytes, at 50 it was 11,138, and at 10 it was 7,044. The table below has the rest.

Do not expect those ratios everywhere. our test picture is synthetic and smooth, which suits WebP, so check the result line on your own files.

Higher settings give less saving. At 95 the same photo was 201,398 bytes, 81 percent of the JPG, and at 100 it grew to 299,712 bytes, 21 percent bigger than the JPG. When a WebP comes out larger than its source, the note under the result says "This WebP came out larger than the original." Lower the quality, or keep the JPG.

Choosing a quality

Both formats are lossy, and the source is already compressed once. In our photo test the average pixel moved by 1.86 on a 0 to 255 scale at quality 85, and 2.07 at quality 50. Those are small averages and say little about how it looks, so open a result before you convert a batch.

Convert one file at 85, view it at full size, then go lower or higher.

The Lossless option

Ticking Lossless makes the WebP an exact copy of the decoded JPG pixels, with a difference of 0 in our test. It is usually a bad trade for photos. The test photo grew to 1,219,696 bytes, almost five times the JPG. For flat artwork it can pay off: a screenshot-like JPG of 71,391 bytes became 11,416 bytes lossless, against 30,198 at quality 85.

Rotation, EXIF and location data

The WebP files carry no EXIF tags, so camera details and GPS location are gone, and the result note says so. Rotation is handled before the data is dropped: our test JPG stored sideways with an EXIF orientation of 6 came out as an upright 1280 by 960 WebP of 38,536 bytes, down from 158,364.

If you need the metadata, or a colour profile other than the browser default, keep the original file.

When to keep the JPG

WebP is not accepted everywhere. Some older programs, email tools and upload forms only take JPG or PNG. If a place rejects the file, convert back with WebP to JPG, though that adds a second round of loss. A better habit is to keep your originals and make WebP copies only for the web.

Limits and what we did not test

Up to 50 files per run, 100 MB each. The 51st gets "Only 50 files at a time." A text file renamed .jpg fails with "this is not an image this tool can read." Fifty copies of the photo, 11.8 MB together, came out as 2.04 MB of WebP in about 8.4 seconds.

The pictures we used are synthetic or made with Pillow. We did not test real camera photos, progressive or CMYK JPGs, or files near 100 MB, and we ran only Chromium.

Measured results

Each row is one run in a Chromium test browser. Pixel change is the average difference from the JPG on a 0 to 255 scale. The samples are synthetic or made with Pillow.
Source JPGSettingWebP bytesPixel change
Photo, 247,358 bytesQuality 100299,7121.03
PhotoQuality 95201,3981.24
PhotoQuality 85 (default)42,8461.86
PhotoQuality 7515,4801.97
PhotoQuality 5011,1382.07
PhotoQuality 107,0442.46
PhotoLossless1,219,6960
Sideways EXIF photo, 158,364 bytesQuality 8538,5361.5
Screenshot-like, 71,391 bytesQuality 8530,1980.3
Screenshot-likeQuality 5020,5100.55
Screenshot-likeLossless11,4160

If you work in bulk or need control

A desktop image program suits a large library, batch renaming, or output settings that go beyond one quality slider. GramFile has pages for XnView MP and IrfanView.

Frequently asked questions

Are my photos uploaded?

No. The page made 18 requests in our log with two JPGs, none carrying a body. The outside hosts were Google's ad and analytics services, and the picture codecs (now fetched from jsDelivr) were not requested until a file was added.

Will the WebP be smaller than the JPG?

Usually, at moderate quality. Our photo went from 247,358 to 42,846 bytes at 85. At quality 100 it became larger, and the page warns you when that happens.

What quality should I pick?

Start at 85, then compare the result with the original. Go lower if you need a smaller file and the picture still looks right.

Does JPG to WebP lose quality?

Yes, unless you tick Lossless. Both formats are lossy. At 85 the average pixel in our photo moved by 1.86 on a 0 to 255 scale.

Is JPEG to WebP the same as JPG to WebP?

Yes. JPG and JPEG are one format with two spellings, and files with either ending are accepted.

What happens to EXIF and location data?

They are removed. The WebP files we read back had no EXIF tags. A sideways photo is turned upright first.

Can I convert JPG to lossless WebP?

Yes, tick Lossless. The photo grew almost five times, though, so it is better for flat graphics than for photos.

How many files can I convert at once?

Up to 50 per run, each up to 100 MB. Use Download all as ZIP to take them together.