How to convert WebP to PNG or JPG
Websites serve WebP because it's small, so a saved image often arrives as a .webp that older apps and upload forms won't take. To save one WebP as a PNG or JPG, the apps already on your computer do it: Preview on a Mac, Paint on Windows. For a folder of them, one convt command converts everything.
Updated
The short version
Mac: open the WebP in Preview, choose File › Export, set Format to PNG or JPEG and click Save. Windows: open it in Paint, choose File › Save as and pick PNG picture or JPEG picture.
PNG or JPG?
- PNG
- Logos, screenshots, graphics with text, anything with a transparent background. Lossless, so the file is often bigger than the WebP.
- JPG
- Photos. Smaller than PNG and accepted everywhere, but it has no transparency: see-through areas get a solid color.
Save a WebP as PNG or JPG in Preview
From Apple's guide, Convert image file types in Preview. We haven't run it ourselves.
- Double-click the WebP image. It opens in Preview.
- Choose File › Export.
- Open the Format menu and choose PNG or JPEG. JPEG shows a quality slider.
- Choose where to save it and click Save.
Apple's guide says you can convert several images at once: open them in one Preview window, select them all in the sidebar, then export. Preview doesn't look inside folders, so for a downloads folder full of WebPs, use convt.
Save a WebP as PNG or JPG in Paint
From answers on Microsoft's Windows 11 forum. We haven't run it on Windows.
- Right-click the WebP and choose Open with › Paint.
- Choose File › Save as.
- Pick PNG picture or JPEG picture, choose a folder and click Save.
Paint converts one picture at a time. For more than a few, it's quicker to convert the folder in one go with convt.
Convert a folder of WebP images with convt
Run with the released convt 0.5.0 command-line tool on Linux, on WebP files we made in nested folders. The image conversion is the same code on Mac and Windows.
convt is a desktop app for Mac and Windows that converts files on your computer, with a command-line tool in the same install. Local conversions never upload your images.
Install it from the download page or GitHub releases. On a Mac, Homebrew also puts the convt command in Terminal:
brew tap opencoredev/convt https://github.com/opencoredev/convtbrew install --cask convtOn a Mac
In Terminal, go to the folder that holds your images folder and run one of these. If you installed from the disk image, type /Applications/convt.app/Contents/MacOS/convt instead of convt.
convt images --to png -r -o pngconvt images --to jpg -r -o jpgimages/sub/logo.webp -> png/sub/logo.png
images/photo.webp -> png/photo.png
2 converted, 0 failedOn Windows
The installer doesn't add convt to your PATH, so PowerShell needs its full path:
& "$env:LOCALAPPDATA\Programs\convt\convt.exe" images --to png -r -o png-r includes subfolders and -o png writes the copies into a new folder with the same subfolders. Leave out -o and each copy is written next to its WebP. A folder input converts every image convt can turn into the target, so other images in it get copies too; with -o they land in the output folder, and the originals stay as they are.
-q 80- JPEG quality from 1 to 100. Without it, convt uses 90.
--max-size 1200- Limits the longest side to 1,200 pixels.
--background black- What transparent areas become in a JPG: white by default, black, or a color like #ff8800.
What came out of our test
- Size
- 1600 × 1000 and 2400 × 1600 in, the same out. Nothing cropped or scaled.
- Transparency in PNG
- Kept. Transparent pixels stayed fully transparent.
- Transparency in JPG
- Filled with white, because JPG has no transparency. --background black filled it with black.
- Subfolders
- With -r, an image in sub/ was converted into png/sub/.
- Animated WebP
- Only the first frame was written, to PNG and to GIF alike.
For an animated WebP, convt 0.5.0 keeps the first frame only, even when the target is GIF. To keep the animation, use a tool that writes animated GIFs.
Questions
- Can I just rename .webp to .png?
- No. Renaming changes the name, not the data, so the file is still WebP inside and many apps will refuse it. It has to be decoded and saved again.
- Does converting WebP to PNG lose quality?
- No. PNG is lossless, so the PNG holds exactly the pixels the WebP decodes to. It can't undo compression the WebP already had. Converting to JPG compresses the image again, which loses a little.
- Why is the PNG so much bigger?
- WebP is usually lossy and PNG is lossless, so the same picture takes more space. In our test a 16 KB WebP graphic became a 135 KB PNG. For photos, JPG is the smaller choice.
- Does convt upload my images?
- Not for local conversions. The app and the command-line tool convert on your computer. The app uploads a file only if you pick Cloud for a job, which is part of convt Pro. For iPhone photos, see HEIC to JPG on a Mac, or every format convt handles on the formats page.