Image Guides

How to Convert WebP to PNG Without Changing Image Dimensions

Convert WebP to PNG with the same width, height and transparency. We checked every pixel against Google's decoder; plus Windows, Mac and dwebp methods.

VelixaKit Editorial Team 8 min read
On this page
  1. The Short Answer
  2. Convert WebP to PNG in Your Browser
  3. Why Dimensions Sometimes Change
  4. What We Checked, Pixel by Pixel
  5. Keeping the Transparent Background
  6. Why the PNG Is Bigger Than the WebP
  7. Other Ways to Convert WebP to PNG
  8. How to Check the Width and Height
  9. When PNG Isn't the Right Choice
  10. Questions About Converting WebP to PNG
  11. Same Picture, New Format

The Short Answer

Converting WebP to PNG doesn't change the width or height by itself. Both formats store a grid of pixels, and a straight conversion copies that grid across. Dimensions change only when a resize, upscale or size-limit option is switched on along the way. Use a converter without one, check the numbers afterwards, and you'll get the same width, height and transparency you started with.

We converted four WebP files with VelixaKit Image Format Converter: two with transparent backgrounds, one lossy cut-out and one photo. Then we compared every pixel of each PNG with what Google's own WebP decoder reads from the original. All of them matched, down to the last pixel, in Chrome, Firefox and Safari's engine. Along the way we found one place where browser-based converters do go wrong, and fixed it in ours. More on that below.

Convert WebP to PNG in Your Browser

No install, no account, and the picture stays on your computer or phone.

1

Step 1: Add the WebP

Open Image Format Converter and drop in one WebP file or several, up to 50 MB each.

2

Step 2: Choose PNG

Under Convert to, pick PNG. There's no quality slider, because PNG is lossless and has nothing to choose.

3

Step 3: Convert and check the size

Press Convert to PNG. Each file shows its old and new size and its dimensions, such as "117.7 KB → 220.4 KB · 1000 × 800". The width and height are those of the original.

4

Step 4: Download

Save each PNG on its own, or use Download all to get them together as a ZIP. The names stay the same, with .png in place of .webp.

Why Dimensions Sometimes Change

If a converted PNG comes out a different size, one of these is nearly always the reason:

A resize option or a size cap

Some converters have a scale or "max width" setting, and some free plans quietly limit the output size. If a box like that is set, the PNG comes out smaller in pixels. Look for it before converting, or use a converter that has none.

Upscaling for "HD"

A few tools offer to enlarge pictures while converting. The extra pixels are guessed, not recovered, and the file grows a lot. For a straight format change, leave it off.

DPI confused with pixels

A PNG can carry a DPI note for printing. Changing it alters how many inches the picture prints at, not how many pixels it has. If an app says your image is "smaller" after converting, check the pixel numbers, not the inches.

An animated WebP

PNG as most programs use it holds one still picture. When we converted a three-frame animated WebP, Chrome, Firefox and Safari's engine all saved its first frame, at the same width and height. If you need the animation, keep the WebP or make a GIF instead.

One limit belongs to WebP itself rather than the converter: a WebP can be at most 16,383 pixels on each side, according to Google's WebP FAQ. PNG has no practical limit at that size, so anything a WebP can hold fits in a PNG unchanged.

What We Checked, Pixel by Pixel

For each file we decoded the original WebP with dwebp, the reference decoder Google publishes, and compared its output with our PNG: width, height, and the red, green, blue and transparency values of every pixel.

WebP fileWebP → PNGPixels (both)Identical
Sticker with a soft shadow, lossless117.7 KB → 220.4 KB1000 × 800All 800,000
Portrait cut-out, faded edge, lossless433.4 KB → 697.0 KB800 × 1000All 800,000
The same cut-out, lossy72.2 KB → 578.1 KB800 × 1000All 800,000
Moon-walk photo, lossy, no transparency259.6 KB → 3.9 MB1600 × 1562All 2,499,200

The PNG sizes are from Chrome. Firefox and Safari write PNG files of slightly different sizes (the photo came to 3.2 MB in Firefox), but the pixels inside were identical in all three.

The first version of our converter didn't pass. It drew each picture onto a browser canvas and saved that, which is how many in-browser converters work. A canvas stores colour already multiplied by transparency, so in faint, half-transparent areas the colour gets rounded. On our portrait cut-out, 336,050 of the 389,709 half-transparent pixels changed colour that way. The dimensions were right and the picture looked the same on a page, but it wasn't the same file inside.

Two zoomed views of the faded lower edge of a portrait cut-out with the transparency removed: on the left, saved through a browser canvas, the colours in the faint area show bands and dark streaks; on the right, saved by VelixaKit, the blue suit and white background continue smoothly
Remove the transparency and the canvas copy shows banding in the faint areas. Ours keeps the colours the WebP stored. Photo: NASA/Bill Stafford.

Does it matter? Laid over a background, the two look the same. It matters once you edit the PNG. If you raise the opacity of a soft shadow, remove a background or reuse the picture as a mask, the rounded colours show up as bands and streaks, as in the picture above. So we changed the converter: when a picture has see-through parts, it now reads the pixels through WebGL, which returns them without that rounding, and writes the PNG itself. That's the version the table above measures.

Keeping the Transparent Background

PNG and WebP both support transparency, so a logo or product cut-out should stay see-through after converting. If it comes out on a white or black box, the file was saved as JPG somewhere on the way, since JPG can't store transparency at all. In Image Format Converter, make sure the PNG tab is selected, not JPG.

To check, open the PNG in a browser tab or an image viewer that shows a chequered background. The checks should show through wherever the WebP was clear.

Your images aren't uploaded

Image Format Converter decodes and saves every picture inside your browser tab, so product shots, logos and personal photos aren't sent to a server. We do use analytics and show ads on the site (see the Privacy Policy); your images reach neither.

Why the PNG Is Bigger Than the WebP

Expect the PNG to be larger, sometimes much larger. Our photo went from 259.6 KB to 3.9 MB, about 15 times the size. Lossy WebP gets its small size by discarding detail; PNG keeps every pixel exactly, so it has to store the whole decoded picture. Graphics with flat colour grow less: our sale sticker went from 117.7 KB to 220.4 KB.

Converting to PNG doesn't bring back detail a lossy WebP already threw away. It stops any more from being lost, which is why PNG is a good working copy for editing. If you only need the picture smaller again later, compress the PNG with Image Compressor, or for a form with a size limit, use Compress Image to KB.

Other Ways to Convert WebP to PNG

On a Mac: Preview

Open the WebP in Preview, choose File > Export, and pick PNG from the Format menu. Apple describes it on its Preview support page. We tested the Mac's built-in sips command, which uses the system's image support as Preview does, and its PNG matched Google's decoder pixel for pixel, at the same size.

On Windows: Paint

Right-click the WebP, choose Open with > Paint, then File > Save as > PNG picture. If Paint can't open the file, Microsoft's free WebP Image Extensions from the Microsoft Store add support. We haven't tested how Paint handles half-transparent pixels, so for a logo or cut-out, open the PNG afterwards and check the edges and shadows.

On the command line: dwebp

Google's libwebp tools include dwebp, which converts with one command: dwebp image.webp -o image.png. It's the decoder we compared everything against. It doesn't handle animated WebP files, as Google's dwebp documentation notes.

How to Check the Width and Height

Image Format Converter shows the dimensions next to each converted file. To check on your own computer:

  • Windows: right-click the file, choose Properties, then the Details tab, and look at Dimensions.
  • Mac: select the file in Finder, choose File > Get Info, and look under More Info.
  • Anywhere: open the PNG in a browser tab; most browsers put the pixel size in the tab title.

Compare the result with the original WebP. If both say the same, nothing was resized.

When PNG Isn't the Right Choice

PNG is the right choice for logos, icons, screenshots, cut-outs and anything you'll edit again. For an ordinary photo going to an upload form, JPG is usually better: it's accepted almost everywhere and far smaller. Our guide on resizing an image to 100 KB for online forms walks through that. And if the WebP needs to end up in a document, WebP to PDF puts it straight into a PDF, keeping transparent and lossless WebP pictures without loss. MDN's guide to image file types compares the formats in more depth.

Questions About Converting WebP to PNG

Does converting WebP to PNG change the image size?

Not the width and height. A straight conversion copies the same grid of pixels; only a resize, upscale or size-limit option changes it. The file size does change: PNG is lossless, so it's usually bigger than the WebP.

How do I convert WebP to PNG without losing quality?

Use a converter that copies the decoded pixels exactly. In our tests every pixel of the PNGs from Image Format Converter matched Google's own WebP decoder, including half-transparent ones. Converting can't restore detail a lossy WebP already discarded, but it won't lose any more.

Will the transparent background stay transparent?

Yes, if you save as PNG. PNG and WebP both store transparency. If the background turns white or black, the file was saved as JPG somewhere along the way.

Why is my PNG so much bigger than the WebP?

Lossy WebP saves space by discarding detail, while PNG stores every pixel exactly. Our 259.6 KB WebP photo became a 3.9 MB PNG. Logos and flat graphics grow much less; our sticker went from 117.7 KB to 220.4 KB.

How do I convert WebP to PNG on Windows?

Open the WebP in Paint and use File, Save as, PNG picture, or use a browser-based converter. If Paint can't open WebP, Microsoft's WebP Image Extensions from the Microsoft Store add support. Check transparent edges afterwards, as we haven't tested how Paint handles them.

How do I convert WebP to PNG on a Mac?

Open it in Preview, choose File, Export, and pick PNG as the format. We tested the Mac's built-in image support with the sips command and the PNG matched Google's decoder pixel for pixel.

Can I convert an animated WebP to PNG?

You'll get a still picture. Chrome, Firefox and Safari's engine all saved the first frame of our animated WebP, at the same width and height. Keep the WebP, or make a GIF, if you need the animation.

Can I convert several WebP files at once?

Yes. Add them all to Image Format Converter, choose PNG and press Convert; Download all saves them together in one ZIP, each with its original name and .png on the end.

Same Picture, New Format

A WebP to PNG conversion should change one thing: the file type. Width, height, transparency and every pixel should come through as they were, and you can check all of it in seconds. When you're ready, open Image Format Converter, choose PNG and add your files.

Same Size, Same Pixels

No account and no watermark. Add one WebP or a whole folder and download them as PNG.