WebP is Google's image format for the web, and the reason it exists is simple: smaller files for the same picture. Google's own measurements put a lossy WebP at roughly 25 to 34% smaller than a JPG of equal quality, and a lossless WebP at about 26% smaller than a PNG. Unlike JPG it also keeps transparency, and unlike PNG it can compress photos hard - one format covers both jobs.
This guide shows how to convert your images with the WebP Converter, how to choose between lossy and lossless, which quality number to use, and how to put WebP on a website without leaving any visitor with a broken image.
How to convert an image to WebP
- Open the WebP Converter and drop in one or more JPG or PNG files. GIF, BMP and AVIF work too.
- Choose Lossy for photographs or Lossless for logos, screenshots and graphics. The next section explains the difference.
- In lossy mode, leave Quality at 75 for a first try.
- Press Convert to WebP. Each result shows its dimensions and its size before and after, and any file that came out larger than the original is flagged.
- Download the files one at a time, or all together as a zip.
Nothing is uploaded. The encoder is libwebp, Google's reference WebP library, compiled to WebAssembly and run in a background worker on your own device. It is under 300 KB and only downloads the first time you press Convert. Because the tool brings its own encoder it also works in Safari, whose built-in canvas cannot save WebP at all - a converter that relies on the browser quietly hands Safari users a PNG instead.
Lossy or lossless?
WebP is really two formats sharing one file extension, and picking the right one matters more than any quality setting.
- Lossy works like JPG: it discards detail the eye is unlikely to notice, which is where the big savings come from. Use it for photos, hero images, product shots and anything with natural texture.
- Lossless works like PNG: every solid pixel comes back exactly as it went in. Use it for logos, icons, screenshots, charts, diagrams and text, where lossy compression would leave a faint haze around sharp edges.
Both keep transparency. In lossy mode the transparent areas are still stored at full quality, so a cut-out product photo or a logo on a clear background keeps a clean edge. If you are unsure which a picture needs, convert it both ways and compare the sizes - the tool makes that a two-click experiment.
Choosing a lossy quality
- 75 is libwebp's own default and suits most photos on a web page. Start here.
- 80-90 for photos people will zoom into, such as product galleries and portfolios.
- 50-65 for large background images, thumbnails, or anything where weight matters more than fine detail.
To settle on a number, convert one representative image, open it next to the original at full size, and look at the areas with the finest detail - hair, foliage, fabric. If you can see softening or smudged edges, step up by ten and try again, then convert the rest of the batch at that setting.
Worked example: a photo and a logo
Take an aerial landscape photo resized to 2000 x 1054 pixels and saved as a JPG at quality 85, a typical export setting. The converter shows it as 515.5 KB. In lossy mode it comes out at 92.2 KB at quality 50, 127.9 KB at 75 and 270.2 KB at 90. The default setting is about a quarter of the JPG - a 75% saving - and even quality 90 roughly halves it.
The same photo in lossless mode comes out at 1.49 MB, three times the size of the JPG it started as. That is not a fault: lossless has to store every grain of texture the JPG had, plus the compression noise the JPG added. It is the clearest illustration of the rule above - lossless is for graphics, not photos.
Now a graphic: a 512 x 512 logo, a blue circle with white lettering on a transparent background, saved as a PNG by a web browser. The PNG is 19.8 KB. Lossless WebP brings it to 4.6 KB, 77% smaller, with every solid pixel identical and the transparency intact. PNGs written by screenshot tools and browsers are often packed loosely like this, which is why the saving is larger than Google's 26% average; a PNG that has already been through an optimiser will shrink less.
When the WebP comes out bigger
If a result is larger than the original the tool says so in the result line. In lossy mode it usually means the source was already a small, heavily compressed JPG - lower the quality or keep the original. In lossless mode it usually means the picture is a photo, so switch to lossy.
Using WebP on a website
WebP displays in every current major browser: Chrome, Edge, Firefox, Opera, and Safari 14 or later on Mac, iPhone and iPad. That is effectively everyone, so for most sites you can simply use .webp files in ordinary img tags. If you need to support very old Apple devices, offer a fallback with a picture element:
- <picture>
- <source srcset="photo.webp" type="image/webp">
- <img src="photo.jpg" alt="Description of the photo" width="2000" height="1054">
- </picture>
A browser that understands WebP downloads only the WebP; one that does not loads the JPG. Keep the width and height on the img tag so the layout does not jump while the image loads. For the smallest files of all, you can add an AVIF source above the WebP one - the AVIF Converter makes those, and browsers pick the first format they support.
When to keep JPG or PNG
- Uploading to forms, government or exam portals, and older software. Many still accept only JPG or PNG.
- Printing. Print shops and photo labs expect JPG or TIFF.
- Keeping a master copy. WebP is a delivery format; keep your originals for editing and convert copies for the web.
- Photos where camera details matter. EXIF data such as the date and GPS location is not carried across, though the photo's rotation is applied first so it stays upright.
- Animation. Animated GIFs are converted from their first frame only.
To go the other way and turn a WebP into a JPG or PNG that any app will open, use the image converter. And if you want a smaller PNG without changing format at all, Compress PNG shrinks it without altering a pixel.
Frequently asked questions
- Does converting a JPG to WebP lose quality?
- In lossy mode a little detail is discarded, as it is whenever a JPG is re-saved, but at quality 75 or above the difference is very hard to see. Converting cannot restore detail the JPG already lost, so always convert from the best original you have rather than from a copy that has been compressed several times. Lossless mode adds no loss of its own, but on a photo it makes a much bigger file.
- Is WebP better than AVIF?
- AVIF usually makes smaller files for photos at the same quality, but WebP encodes far faster, has been supported in browsers for longer, and is better at lossless graphics. Many sites serve AVIF first with WebP as the fallback; if you only want one modern format, WebP is the safer and simpler choice.
- Can I convert a WebP back to JPG or PNG?
- Yes. Every current browser can open WebP, so the image converter on this site can turn it back into a JPG or PNG for apps and upload forms that do not accept WebP. If the WebP was lossy, the JPG or PNG will look the same as the WebP, not as the original it was made from.