PNG & JPG to WebP
Make lighter images for your website, shop or blog. Convert PNG screenshots, transparent graphics and JPG photos to WebP, compare the sizes, and keep whichever mode wins.
Tip: your phone's file picker also lists Dropbox and Google Drive when their apps are installed.
Making WebP files that are actually smaller
- 1
Add PNG and JPG files
Mix them freely. Screenshots, product photos and logos with transparency all work.
- 2
Lossy, at the right quality
Leave Lossless WebP off and use the slider: around 80 for photos, 90 for screenshots and graphics with text. For screenshots and flat graphics, tick Lossless WebP instead; as measured below, it can beat both the PNG and the lossy result.
- 3
Compare the numbers
Each row lists the original size, the WebP size and the change in percent. Change a setting and small batches update by themselves.
- 4
Download
Save singly or as a ZIP.
hero.pngbecomeshero.webp, ready to upload.
You see the saving
Sizes are shown before you download, so you never ship a WebP that turned out bigger than its source.
Transparency in both modes
Unlike JPG, WebP keeps the alpha channel, even when the colours are compressed lossily.
Displays in every current browser
Chrome, Edge, Firefox and Safari 14 or later show WebP. Older systems are covered below.
Unreleased product shots stay unreleased
libwebp, the reference WebP encoder, runs inside this tab as WebAssembly and does the work on this computer. Images for a launch that has not happened yet are never sent anywhere.
Measured on our own sample images
Four self-made files, converted on this page in Chrome. The percentage compares the WebP with the file that went in.
| Input | Setting | WebP |
|---|---|---|
| Landscape photo PNG, 1200 × 800, 704 KB | Quality 80 | 26 KB (−96%) |
| Quality 90 | 73 KB (−90%) | |
| Lossless | 475 KB (−33%) | |
| App screenshot PNG, 1280 × 800, 67 KB | Quality 90 | 41 KB (−39%) |
| Quality 75 | 28 KB (−58%) | |
| Lossless | 21 KB (−69%) | |
| Same landscape as a JPG, 86 KB | Quality 80 | 26 KB (−70%) |
| Quality 90 | 73 KB (−15%) | |
| Transparent badge PNG, 512 × 512, 45 KB | Quality 80 | 14 KB (−69%), alpha kept |
| Lossless | 20 KB (−56%) |
Three things stand out. First, the starting format decides less than you might think: the PNG and the JPG hold the same pixels and came out the same size at each quality; the PNG simply had far more to lose. Second, for screenshots and flat graphics, lossless is the one to try first: the screenshot shrank to 21 KB with every pixel kept, smaller than at quality 75. Photos are the opposite; lossless keeps every speck of grain and stays large. Third, re-compressing the JPG cut it by more than two thirds at 80, but that is a second lossy step, so look at the preview before you replace the original.
These numbers come from Chrome, with the page's own libwebp encoder (lossy at method 6, its most thorough setting). The same encoder runs in Firefox and Safari, so sizes there should be close. In the rare browser that cannot run WebAssembly, the page falls back to the browser's built-in WebP encoder, where there is one, and files come out somewhat larger.
Questions & answers
Should I use lossy or lossless WebP?
Lossy at 75 to 85 for photos. For screenshots and flat graphics try lossless first: it keeps every pixel exact and, in our test, made a smaller file than quality 75. Lossless photos stay large, so check the row size before keeping one.
My WebP came out bigger than the JPG. Why?
The JPG was already heavily compressed, or you chose a higher quality than it was saved at. Lower the WebP quality, or simply keep the JPG; the row shows the size so you can decide.
Does WebP keep the transparent background of my PNG?
Yes, in both modes. Our 512 × 512 badge kept its clear corners at quality 80 and shrank from 45 KB to 14 KB.
Can I upload WebP to WordPress, Shopify or social networks?
WordPress accepts WebP uploads since version 5.8, and most site builders and shop platforms do too. Some email programs and older desktop apps still do not, so keep a JPG or PNG for those.
Can I create WebP files in Safari?
Safari has no WebP encoder of its own, so this page brings one: libwebp compiled to WebAssembly, which current Safari versions run. Only if that cannot load does the conversion stop with a message saying so; then use Chrome, Edge or Firefox. Nothing is uploaded in any of them.
Is there a separate JPG to WebP converter?
This page is it: JPG files go in the same way as PNG files. If you need to go back the other way, use WebP to PNG or WebP to JPG.
Browser and app support for WebP
Every current browser displays WebP: Chrome and Edge, Firefox since version 65, and Safari 14 or later, which needs macOS 11 Big Sur or newer on a Mac and iOS 14 or newer on an iPhone. The gaps today are older Macs stuck on earlier Safari versions, some email clients and a handful of desktop programs.
On your own site you can serve WebP to everyone and keep a fallback for the rest with the <picture> element:
<picture>
<source srcset="hero.webp" type="image/webp">
<img src="hero.jpg" alt="Lake at sunset" width="1200" height="800">
</picture>
Browsers that understand WebP take the first source; anything else falls back to the JPG.
When not to convert
- Print and archiving. Printers and long-term archives expect JPG, PNG or TIFF.
- Email attachments. Recipients may not be able to preview a WebP.
- Tiny icons. Savings on files of a few kilobytes are rarely worth a second format.
For more ways to cut image weight, see how to compress images without losing quality.
Learn more