WebP to PNG Guide: Transparency, Source Validation and Batch Export
Admin ·
WebP to PNG conversion creates a PNG from a browser-decoded still WebP image. ToolMellow lets you keep decoded dimensions or set a maximum side, apply a clockwise quarter turn and postrotation flips, then inspect and download PNG files individually or as a batch ZIP.
PNG can retain rendered transparency, but it cannot restore detail already lost in a lossy WebP source. This workflow always encodes a new PNG; it does not preserve the original file bytes or offer the compressor’s original-file fallback. The guide explains the actual source validation, controls, geometry, metadata and size tradeoffs.
Choose still WebP images and inspect the new PNG
Use Choose images or drop local files into the workspace. Select up to 20 still WebP images and wait for preview reading to settle. Maximum image side starts at 0, rotation at 0 and both flips off. Press Convert to PNG, inspect each result’s image and dimensions, then download individual PNG files or the completed batch ZIP.
The output type is fixed as PNG. There is no output-format chooser or crop editor in this workspace. Settings and queue edits clear generated results, so process again after changing them. Keep the original WebP separately while comparing a new PNG with the source.
- Check that the actual input is still WebP rather than relying on its extension or thumbnail.
- Inspect transparency, orientation and pixel dimensions in the processed result.
- Compare actual output bytes when another application has a file-size limit.
A preview and filename do not prove a valid WebP source
The converter inspects the source header for WebP and validates decoded dimensions before exporting. Its file-picker filter names WebP, but a drop or misleading filename can still supply another type. Renaming a PNG to a .webp extension does not convert it. A recognizable header can also fail actual decoding if the file is corrupt.
The separate preview reader accepts the broader still JPG/PNG/WebP family used by image workspaces. A PNG or JPG can therefore show a thumbnail while strict WebP processing later rejects it. Treat a preview as a visual aid, not as proof that this converter accepted the format. The bounded header scan is not a complete RIFF-conformance audit; the browser decoder remains a separate check.
| Input case | Processing behavior |
|---|---|
| Valid still WebP | Header and decoded limits checked, then PNG encoded |
| PNG/JPG with a .webp name | Can preview, but strict source check rejects it |
| Supported-looking damaged WebP | Can fail decoding |
| Animated WebP | Rejected rather than silently reduced to a frame |
MDN: File API and user-selected filesMDN: createImageBitmap orientation and decoding optionsGoogle WebP: RIFF container, still images, animation and metadata
Per-image and batch allocation limits
Limits apply to each full source before any resizing. The worker checks header dimensions and actual decoded dimensions, including source orientation handling. A tiny desired output does not make an oversized source acceptable. Input bytes use decimal MB rather than MiB.
Source totals and encoded-PNG totals are separate budgets. The worker checks accumulated output buffers while processing and returns the result list only after every file succeeds. A file or output-budget error prevents a partial completed batch from being displayed. ZIP wrapper overhead is separate from the encoded-image sum.
| Boundary | Maximum |
|---|---|
| Files in a job | 20 |
| Each source file | 25000000 bytes, inclusive |
| Each decoded image | 24000000 pixels |
| Either source side | 12000 pixels |
| Combined source files | 100000000 bytes, inclusive |
| Combined encoded PNGs | 100000000 bytes, inclusive |
MDN: createImageBitmap orientation and decoding optionsMDN: OffscreenCanvas image encoding and quality
Still lossy/lossless WebP is different from animation
WebP can contain lossy or lossless still-image data, transparency, animation and metadata. This tool accepts supported still WebP decoding and rejects the animation flag during preflight. It has no frame selector, animation extraction, GIF conversion or animated-PNG export option.
If you need one frame from an animation, make an explicit still export before using this workflow. Do not assume that a file called WebP is necessarily a single image or that converting its name will preserve every frame. The output here is one static PNG per accepted source, not an animation project.
Google WebP: RIFF container, still images, animation and metadataGoogle WebP: lossy and lossless compressionW3C PNG format: lossless images and alpha
PNG retains transparency without using JPG background
The worker creates a PNG canvas and draws the decoded source without filling a JPG backdrop. Existing alpha can therefore remain in the rendered PNG. The generic JPG background control is visible but has no flattening role in this converter; choosing black or white there does not turn transparent pixels opaque.
Transparency is still subject to decoding, canvas rendering and any resizing. Fully transparent pixels may not retain their original hidden RGB values, and exact source color/profile identity is not certified. Inspect translucent edges against the real background where you will use the PNG. Select WebP to JPG separately when you explicitly need a flattened opaque image.
MDN: createImageBitmap orientation and decoding optionsMDN: OffscreenCanvas image encoding and qualityW3C PNG format: lossless images and alpha
Disabled quality does not mean recovered source detail
Quality is disabled because the forced target is PNG, whose canvas encoding does not use the lossy quality request. Its generic value is not a PNG compression-level or palette-size control. The tool does not offer a target-byte search or a dedicated PNG palette optimizer.
PNG losslessly encodes the rendered canvas, not the history of the original image. If the WebP source already lost detail through lossy compression, PNG cannot recreate it. Browser color/alpha conversion, orientation and optional resampling also separate the rendered image from original encoded bytes. A new PNG is not a source-file identity or print-profile guarantee.
MDN: OffscreenCanvas image encoding and qualityGoogle WebP: lossy and lossless compressionW3C PNG format: lossless images and alpha
Maximum side and rotation determine the final dimensions
Maximum image side accepts whole numbers from 0 to 12000. Zero keeps the transformed dimensions; a positive cap fits within that longest side without enlargement and rounds to whole pixels. A larger cap does not upscale a smaller image. Very small outputs can approximate a source ratio when integer rounding matters.
For the examples below, the source has decoded dimensions of 4000 × 3000 unless another size is named. The worker applies the clockwise turn and rotated-axis flips before optional downscaling, so a 90-degree turn followed by a 1200-side cap produces a portrait PNG. Flips do not change dimensions, and a cap is not a crop or an exact width-and-height preset.
| Decoded source / rotation | Maximum side | Actual PNG dimensions |
|---|---|---|
4000 × 3000 / 0° | 0 | 4000 × 3000 |
4000 × 3000 / 0° | 1200 | 1200 × 900 |
4000 × 3000 / 90° | 1200 | 900 × 1200 |
600 × 400 / 90° | 1200 | 400 × 600 |
3 × 2 / 0° | 1 | 1 × 1 |
MDN: Canvas drawImage source rectanglesMDN: Canvas clockwise rotation and transform originMDN: Canvas scale and negative-axis reflections
Source orientation, quarter turns and output-axis flips
The decoder requests orientation from image metadata when present and supported. Your rotation and flips act on that decoded appearance. Rotate clockwise offers 0, 90, 180 or 270 degrees; it does not straighten a horizon by a small arbitrary angle. Source and output dimension lines help distinguish metadata orientation from your additional turn.
Flip horizontally after rotation swaps left and right in the rotated output; Flip vertically after rotation swaps top and bottom there. An asymmetric image or readable text makes the order easy to inspect. Every file uses the shared settings, with no per-file angle buttons. Queue sorting, reversing, moving or removing retains the selected global angle and later angle changes.
MDN: createImageBitmap orientation and decoding optionsMDN: Canvas clockwise rotation and transform originMDN: Canvas scale and negative-axis reflections
A new PNG can be larger and is always newly encoded
PNG and WebP use different encodings, so a PNG can require more bytes even at the same dimensions. The result card shows actual returned bytes and a smaller/larger comparison to the source. A lower pixel count can help size, but this converter has no guarantee that PNG will be smaller or meet a particular upload threshold.
Every successful result is a newly encoded PNG. Unlike Compress image, this converter does not return the original WebP when the PNG is larger. Even with angle 0, no flips and maximum side 0, it must change the format. Keep the source and inspect the new file rather than interpreting unchanged dimensions as unchanged payload.
MDN: OffscreenCanvas image encoding and qualityGoogle WebP: lossy and lossless compressionW3C PNG format: lossless images and alpha
Original metadata and encoded-byte identity are not copied
The source may contain ICC, EXIF or XMP metadata, but this canvas-conversion path does not copy those original metadata chunks into the PNG. Encoders can add their own format metadata, so the output is not guaranteed to contain no metadata. Browser decoding/color conversion also does not certify preservation of an original color-managed workflow.
The result reports the full decoded source dimensions, which can reflect supported orientation metadata, and the actual output dimensions. Its pixels are rendered browser data rather than a raw WebP-bitstream export. Review color-critical work in the intended viewer and keep the original if source metadata or exact encoding is part of your requirement.
Google WebP: RIFF container, still images, animation and metadataMDN: createImageBitmap orientation and decoding optionsMDN: OffscreenCanvas image encoding and quality
The small preview does not limit export resolution
Input previews are resized PNG thumbnails with their longest side at most 640 pixels and no enlargement of smaller sources. Reported source dimensions remain the full decoded dimensions. Export reads the actual WebP source rather than converting that thumbnail, so keeping dimensions can produce a PNG much larger than the on-page preview.
The source thumbnail shows decoded input, not the final user rotation or flips. Inspect the processed PNG preview and dimension line after conversion. Changing JPG background also clears the old result through the generic settings handler even though it does not affect PNG flattening; process again rather than treating that cleared result as an output change.
MDN: Canvas drawImage source rectanglesMDN: OffscreenCanvas image encoding and quality
Manage the queue and download real PNG files
Use Move up/down, Remove, Sort by filename or Reverse order to arrange the job. Filename sorting uses the interface language with numeric comparison and base sensitivity, not a universal bytewise order. Output numbering follows the current queue, while the same maximum side and transformation choices apply to all files.
Generated names use cleaned source basenames, a new PNG extension and a prefix: photo.webp in first position becomes 01-photo.png. Each result has Download, Resize image and Make a PDF actions. More than one result enables Download all as ZIP, named toolmellow-images.zip, and Make one PDF for the batch. The ZIP contains the generated PNG payloads; changing only an extension is not a substitute for this conversion.
Recover from format errors, failed jobs and retained settings
If a non-WebP previews but conversion fails, remove it and provide a valid still WebP. A decoder, encoder or allocation failure can also occur inside the stated maxima. The local engine needs browser worker/bitmap/canvas support. Smaller supported inputs or a current compatible browser can help, while input/format validation still applies.
The whole processing job has a 60-second timeout. Cancel terminates it while keeping selected files; no partial completed batch is shown. Clear files removes inputs/previews/results while retaining visible maximum-side, rotation, flips and background choices. New files use those retained choices. Changing a setting clears results without automatic processing, and clearing/cancelling does not delete downloaded files.
Local file processing and deliberate next steps
You choose source files on the device; preview reading, decoding, transformation and PNG encoding run in a local browser worker. This workflow has no remote-URL, cloud-drive or server image-conversion endpoint and does not save an edit project. Ordinary hosting, asset and analytics requests remain separate from image-byte processing, without an anonymity or zero-logging guarantee.
Resize/PDF buttons pass generated files through a deliberate one-time in-memory handoff in the same tab, under the destination’s own settings and limits. Refreshing or leaving discards this workspace. If you only need an opaque version, compare the separate WebP-to-JPG workflow using the original source instead of assuming a PNG result should always be the final format.
Embed the WebP-to-PNG tool with a visible backlink
Use Add this tool to your website on the localized tool page to copy or download its supplied HTML snippet. Retain the interactive iframe, sizing behavior and visible ToolMellow backlink with the existing link attributes. Choose the intended language and allow enough frame space for file controls and result inspection.
Visitors choose their own still WebP files and receive the same strict source checks, transformations, PNG output and job limits. It is not an API for automatically converting images hosted by your webpage. Test the embedded workflow in the browsers and layout you use, and keep the ToolMellow credit link visible.
Common questions
How do I convert WebP to PNG?
Choose supported local still WebP files, wait for preview reading, set an optional maximum side and transformation, then press Convert to PNG. Inspect the result dimensions and transparency before downloading PNGs or a batch ZIP.
Will my transparent background remain transparent?
PNG can retain alpha through the supported canvas conversion. The visible JPG background control does not flatten this PNG output. Decoding and resizing can affect edge/color values; inspect the rendered result.
Does PNG restore quality lost in WebP?
No. PNG losslessly encodes the rendered canvas, but it cannot recover detail removed by prior lossy WebP compression or guarantee original profile, hidden RGB or encoded-byte identity.
Why does a non-WebP file show a preview?
The separate preview reader accepts generic still JPG/PNG/WebP. Processing then performs this converter’s strict WebP header check. A thumbnail or .webp extension is not proof that the source is valid WebP.
Can I convert an animated WebP?
Not in this workflow. Animated WebP is rejected rather than silently exporting one frame. Make an explicit still-image export first if you need one static PNG; there is no frame chooser or APNG output here.
Why is the PNG file larger?
Its encoding differs from WebP, and rendered PNG can require more bytes even with the same dimensions. This converter always returns a new PNG and has no smaller-original fallback. Compare actual output size.
Does the quality slider change PNG output?
No. It is disabled because PNG encoding ignores the lossy quality request. There is no PNG compression-level, palette-size or target-byte setting in this converter.
Does JPG background affect this converter?
It does not fill or flatten PNG transparency. It is a generic visible control; changing it still clears the old result through the settings handler, so process again to obtain a fresh result.
How do maximum dimensions and rotation interact?
The decoded image is quarter-turned and flipped in the rotated axes, then optionally downscaled to a maximum side with whole-pixel rounding. Zero keeps transformed dimensions; positive caps never enlarge a smaller image.
Is original camera metadata copied?
No original ICC/EXIF/XMP chunks are copied by this canvas path. The PNG encoder may add its own format metadata. Keep the original if metadata or exact profile/encoding identity is required.
How do I download a batch ZIP?
Convert more than one accepted WebP successfully, then use Download all as ZIP. It contains the generated PNG files in numbered queue order. A failed file prevents a partial completed batch from appearing.
Can I embed the WebP-to-PNG converter?
Yes. Copy the localized HTML from Add this tool to your website, retain the iframe and visible ToolMellow backlink, and test its dimensions. Visitors still choose and process their own supported local files.
Can I convert PNG or JPG using this page?
This page requires actual still WebP input. A PNG/JPG may preview but is rejected during strict conversion. Choose a converter for that source format rather than only renaming its extension.
What does Clear files reset?
It removes files, previews and generated results while keeping maximum side, rotation, flips and other visible output settings. New files use those choices. Already downloaded files remain on your device.
Sources and further reading
- MDN: File API and user-selected files
- MDN: createImageBitmap orientation and decoding options
- MDN: Canvas drawImage source rectangles
- MDN: OffscreenCanvas image encoding and quality
- MDN: Using Web Workers
- MDN: Worker termination
- MDN: localeCompare and language-sensitive ordering
- MDN: Canvas clockwise rotation and transform origin
- MDN: Canvas scale and negative-axis reflections
- Google WebP: RIFF container, still images, animation and metadata
- Google WebP: lossy and lossless compression
- W3C PNG format: lossless images and alpha