Skip to content

Convert WebP to JPG or PNG on Windows Free

Convert WebP to JPG or PNG free on Windows using WSL. Use dwebp for PNG, ImageMagick for JPG, batch a whole folder, and keep every file local — no uploads.

MGMCSA Guru Team June 10, 2026 3 min read
A WSL terminal converting a WebP image to JPG and PNG using dwebp and ImageMagick on Windows

You downloaded an image and it came as .webp, but the app you need it in only wants JPG or PNG. It’s a common dead end — plenty of Windows apps open WebP but refuse to export it, and the usual fix is to upload the file to some converter site you’ve never heard of.

You don’t have to. WSL converts WebP to PNG with dwebp and to JPG with ImageMagick, both for free and entirely on your own machine. One file or a whole folder, no uploads.

New to WSL? Set it up with our WSL install guide. If you’re going the other direction, see convert JPG to WebP.

Install the tools

You’ll use two packages: webp (for dwebp) and imagemagick.

sudo apt update && sudo apt install -y webp imagemagick

Quick check:

dwebp -version
magick -version

On older ImageMagick the command is convert instead of magick; both work the same way for these examples.

Convert WebP to PNG (lossless, keeps transparency)

dwebp is purpose-built for decoding WebP. For PNG output it’s the cleanest choice and preserves any transparency:

dwebp input.webp -o output.png

PNG is lossless, so this is the right target when the image has sharp graphics, text, or an alpha channel you want kept exactly.

Convert WebP to JPG (smaller, for photos)

JPG suits photos and can’t hold transparency, so flatten onto a background to avoid black blotches where the image was transparent:

magick input.webp -background white -flatten output.jpg

Set quality if you want to control size:

magick input.webp -background white -flatten -quality 90 output.jpg

Batch convert a folder

To turn every WebP in the current folder into PNG:

for f in *.webp; do dwebp "$f" -o "${f%.webp}.png"; done

To convert them all to JPG instead:

for f in *.webp; do magick "$f" -background white -flatten -quality 90 "${f%.webp}.jpg"; done

Both loops write new files alongside the originals — photo.webp becomes photo.png or photo.jpg — and leave your .webp files untouched.

Pick the right command

dwebp f.webp -o f.png WebP to PNG, lossless, keeps transparency
magick f.webp -background white -flatten f.jpg WebP to JPG, fills transparency
magick f.webp -quality 90 f.jpg JPG with explicit quality
for f in *.webp; do dwebp ... done Whole folder to PNG
for f in *.webp; do magick ... done Whole folder to JPG

Animated WebP: a special case

If your WebP is animated, converting to a single JPG or PNG only captures one frame. To extract every frame as numbered PNGs:

magick animation.webp frame-%03d.png

That writes frame-000.png, frame-001.png, and so on. If you actually want a moving result, converting the animation to a GIF or MP4 is the better route and a different job entirely.

Wrapping up

Converting WebP to JPG or PNG on Windows is a two-tool job: dwebp input.webp -o output.png for lossless PNG with transparency, and magick input.webp -background white -flatten output.jpg for photo-friendly JPG. Wrap either in a for loop to clear a whole folder at once.

It’s free, it handles batches, and because everything runs in WSL, none of your images are uploaded to a third-party site. To compress the results further or resize them for the web, see compress images without losing quality.

Frequently asked questions

Why won't Windows let me save a WebP as JPG directly?

Some apps open WebP but won't export it, and the built-in tools are inconsistent. Converting in WSL avoids that: dwebp turns WebP into PNG, and ImageMagick turns it into JPG. Both run locally, so the files never get uploaded to a converter site.

Should I convert WebP to PNG or to JPG?

Use PNG if the image has transparency or sharp graphics you want kept exactly — PNG is lossless. Use JPG for photos where a smaller file matters and transparency isn't needed. JPG can't store transparency, so any transparent areas need a background color.

What happens to transparency when I convert WebP to JPG?

JPG has no alpha channel, so transparent areas turn into whatever background you set. Flatten onto white (or another color) with ImageMagick's -background and -flatten options, otherwise transparent regions may come out black.

Can I convert a whole folder of WebP files at once?

Yes. A short bash loop runs dwebp or ImageMagick on every .webp in the folder and writes a matching .png or .jpg. The loops in this guide do that and keep your original WebP files.

Does this work for animated WebP files?

Converting an animated WebP to a single JPG or PNG only gives you one frame. To pull every frame out, use ImageMagick to write numbered images, or convert the animation to a GIF or MP4 instead, which is a separate task.

Sources & further reading

Official vendor documentation referenced while writing this guide.

MG

MCSA Guru Team

IT & Systems Administration

We are working IT pros and system administrators who spend our days in Windows Server, Microsoft 365, and the wider Microsoft stack. MCSA Guru is where we write down the fixes and walkthroughs we wish we had found the first time.

MCSA Guru provides independent, educational IT guidance. Microsoft, Windows, Windows Server, Microsoft 365, Exchange, and Microsoft Teams are trademarks of Microsoft Corporation; Docker is a trademark of Docker, Inc. MCSA Guru is not affiliated with or endorsed by Microsoft or Docker. Always test changes in a safe environment before applying them in production.

Related guides

Fixing something right now?

Jump straight into the guide library or search for the exact error or task you are dealing with.