What the JPG to WebP does
WebP is Google's image format for the web. Its lossy mode is derived from the VP8 video codec and, according to Google's own figures, produces files 25 to 34% smaller than comparable JPEGs at equivalent quality. This converter decodes your JPEG, draws it on a canvas at the same width and height and asks the browser to encode image/webp at the quality you set.
The slider runs from 45 to 100 and starts at 90, passed to the encoder as 0.90. Lower values mean a smaller file and more visible smoothing of fine texture. After conversion the tool prints the pixel dimensions and the size before and after, so you can decide whether a further drop in quality is worth it.
The download takes the original file name with a .webp extension. Current versions of Chrome, Edge, Firefox and Safari display WebP, which makes it a practical choice for img elements and CSS backgrounds. Keep the JPEG as your master copy: a WebP made from a JPEG cannot be more detailed than the JPEG it came from.
How to use it
Choose a JPG
Select a .jpg or .jpeg from your device. The picker accepts only JPEG files for this converter.
Set the WebP quality
Drag the slider between 45 and 100. Start at 90, then lower it in steps, converting again each time, while the result still looks right; the preview is scaled to fit, so download it to judge fine detail at full size.
Convert to WebP
Press Convert to WebP. The browser encodes the WebP and shows a preview with both file sizes; the Download button saves it under the same name with a .webp extension.
What the quality value does in WebP
Lossy WebP works much like JPEG: it predicts blocks of pixels from their neighbors and quantizes the difference, throwing away detail the eye is least likely to notice. The quality number controls how aggressive that quantization is. Around 90 the output is hard to tell from the JPEG at normal size; toward 45 smooth areas start to flatten and fine texture such as hair, grass or fabric is simplified.
Because the source is already a JPEG, the WebP encoder is compressing an image that has lost detail once. It cannot recover that detail, and at very high quality it may spend bits faithfully reproducing JPEG artifacts. A quality of 100 is therefore rarely worth the extra size; compare it with 90 on your own image.
Why the WebP is sometimes not smaller
A JPEG saved at low quality is already small, and re-encoding it as WebP at quality 90 can produce a larger file because the encoder reproduces the existing artifacts in detail. Small thumbnails behave the same way. The size message makes this visible: if the WebP is larger, keep the JPEG or lower the WebP quality.
Images above 80 megapixels are refused before drawing, because a canvas that size can exhaust browser memory. Photos from most cameras and phones are well below that limit, but stitched panoramas and high-resolution scans may need the Image Resizer first.
Browser support for viewing and creating WebP
Viewing WebP is supported in current versions of all major browsers, as Can I use documents. Creating WebP from a canvas is a separate capability. Browsers are only required to encode PNG, and the HTML specification says that when a requested type is unsupported the canvas must produce PNG instead. This tool checks the type of what the canvas produced; in such a browser it reports that the browser cannot save WebP and creates no file, rather than saving PNG data under a .webp name.
If the tool reports that your browser cannot save WebP, try a current version of another browser. For visitors on old browsers, serve the WebP through a picture element with the original JPEG as the fallback source.
Limits to know before you rely on it
- The source must be JPEG; use PNG to WebP for PNG files and the Image Compressor for WebP input.
- Detail already lost in the JPEG is not recovered; the WebP can only be as good as its source.
- Images above 80 megapixels are refused to protect browser memory.
- If your browser cannot encode WebP, the tool reports it and creates no file; it never saves PNG data under a .webp name.
- EXIF data, including capture date, location and camera model, is not copied.
- One file at a time; there is no batch conversion.
Questions people ask about the JPG to WebP
What WebP quality should I use for photos?
Start at the default of 90 and look at the result at full size. Lower it to 80 or 75 if the size still matters and you cannot see the difference; stop when fine texture starts to look smeared. Keep it high for images containing text.
Will the WebP always be smaller than the JPG?
Usually, but not always. A JPEG that was saved at low quality or is already small can re-encode into a larger WebP, because the encoder has to reproduce the JPEG's own artifacts. The size readout after conversion tells you which file to keep.
Does converting change the image dimensions?
No. The canvas is created at the JPEG's natural width and height and the WebP has the same pixel size. Resize first with the Image Resizer if you also need a smaller picture, then convert the resized PNG with PNG to WebP.
Can I use the WebP in a web page?
Yes. Current versions of Chrome, Edge, Firefox and Safari display WebP in img elements and CSS backgrounds. For older browsers, the picture element lets you offer the WebP with the original JPEG as a fallback.
Is EXIF data such as location kept in the WebP?
No. The output is built from decoded pixels only, so camera metadata, GPS coordinates and color profiles are not copied. Keep the JPEG if you need that information; the loss is often a benefit before publishing a photo.
Is the JPG uploaded during conversion?
No. The file is opened through a temporary browser URL, drawn on a canvas in the page and encoded there with HTMLCanvasElement.toBlob. The download is also a temporary URL, revoked shortly after saving starts. The site stores nothing.
Sources and further reading
- Google Developers, An image format for the Web (WebP): lossy and lossless modes and Google's size comparisons with JPEG and PNG
- Google Developers, WebP Compression Techniques: how lossy WebP encoding based on VP8 prediction works
- Can I use, WebP image format: browser support for displaying WebP
- WHATWG HTML Standard, the canvas element: toBlob() must produce PNG when the requested type is unsupported