Image Formats · Guide

Do WebP and AVIF Support Transparency? Why Cut-Outs Come Back Black or White (and How to Fix It)

14 min read · September 21, 2026 · Mochify Engineering Team

Yes. WebP and AVIF both carry a full alpha channel, so a cut-out product shot, logo or sticker can stay transparent in either format, usually at a fraction of the PNG's size. When a transparent WebP or AVIF comes back with a black or white background, the format is almost never the reason. Something in the chain flattened it: the site you uploaded to re-encoded the file as a JPEG, the app that opened it could not read the alpha channel, or the export you ran never wrote one in the first place. This guide explains how the two formats store transparency, where it displays correctly in 2026, the five ways it gets lost, and how to check a file before you blame the format.

How WebP and AVIF store transparency

Both formats store transparency as a real per-pixel alpha channel, not the single "this one color is invisible" trick that GIF and paletted PNG use, so soft edges, drop shadows and semi-transparent glass all survive. The details differ, and one of them explains why AVIF cut-outs are often smaller.

WebP has two internal codings. Lossless WebP (VP8L) stores every pixel as a 32-bit ARGB value, alpha included, and Google's lossless bitstream specification states that it "stores and restores the pixel values exactly, including the color values for fully transparent pixels". Lossy WebP (VP8) has no alpha of its own, so the container specification adds a separate ALPH chunk holding an 8-bit alpha plane, with an alpha flag in the extended VP8X header. That alpha plane is stored raw or compressed with the lossless coder: a lossy WebP therefore has lossy color and near-lossless transparency, which is why a WebP with a large soft shadow can be surprisingly big.

AVIF stores alpha as a second, monochrome AV1 image inside the same file, marked as an auxiliary alpha item; the AVIF specification requires it to be encoded at the same bit depth as the color image, so an 8-, 10- or 12-bit AVIF gets an 8-, 10- or 12-bit alpha channel. Because the alpha plane is just another AV1 picture, it can be compressed lossily, which WebP cannot do. Jake Archibald's "AVIF has landed" singles this out as part of AVIF's advantage on images with complex transparency. The specification also defines a flag for premultiplied alpha, and mishandling that flag is behind some of the darkened-edge bugs later in this guide.

PNG, for comparison, has two transparency mechanisms: a full alpha channel in RGBA images, and a tRNS chunk that marks one color or a palette entry as transparent. A "transparent PNG" that was saved as an indexed image with tRNS has hard, binary edges; the RGBA kind has soft ones. JPEG has no alpha channel at all, which is the single most common reason a transparent image turns opaque: the moment anything in the chain saves it as a JPEG, the background has to become a color, and that color is usually white or black.

Where transparent WebP and AVIF display correctly in 2026

In every current browser, and in most current apps, both formats show their transparency as intended. Where the alpha channel goes missing, it is nearly always an old decoder, a thumbnail renderer or a platform that converts uploads.

Browsers. Per caniuse.com, WebP is supported by 96.82% of browsers in use as of August 2026; Firefox added it in version 65 (January 2019) and Safari needs version 14 on macOS Big Sur or later. AVIF sits at 95.36%: Chrome 85, Firefox 93 (animated AVIF from Firefox 113), Edge 121, and full support in Safari 16.4, with 16.1 to 16.3 marked partial. Static WebP and AVIF with alpha render correctly in all of them. The known exceptions are animation-specific: WebKit bug 275906, filed in June 2024 and duplicated again in January 2026, reports animated AVIF with transparency playing back with incorrect transparency in Safari, and an Apple Developer Forums thread reproduces the same animated file rendering with a black background in Safari 16.6, 18.3 and 18.5 while Safari 17.5 and Chrome 138 show it correctly.

Operating systems. macOS and iOS decode WebP and AVIF natively in current releases, and Android has decoded AVIF since Android 12. Windows 11 still leans on Microsoft Store extensions for AVIF thumbnails and previews in some configurations, which is why a transparent AVIF can show a plain thumbnail in File Explorer while it renders perfectly in Edge.

Platforms that keep the alpha channel. Discord's engineering team wrote in March 2025 that its media pipeline serves emoji and stickers as WebP and AVIF precisely because both "support variable transparency levels (or alpha channels)", and that more than 95% of its animated emoji now go out as animated WebP. WordPress has accepted WebP uploads since 5.8 and AVIF uploads since 6.5 (February 2024), with a caveat about thumbnails covered below. Wix lists WEBP and AVIF among the formats it accepts for site media.

Platforms that do not. Etsy's help center is unusually direct: "If a file contains transparency, the transparent parts of the image will appear black on Etsy", and transparent PNGs are listed as unsupported. Shopify's CDN has been reported to convert some large PNGs to JPEG, filling the transparency with black. Any marketplace or social network that only stores JPEG will do the same, whatever format you upload. We could not confirm the exact current behavior of eBay, Amazon, Instagram, Facebook or X from their own documentation while researching this guide, so treat every JPEG-only destination as "flatten it yourself, onto the background color the platform wants".

If you sell on marketplaces, the marketplace product image requirements guide covers which platforms want white backgrounds and at what size.

Why your cut-out came back black or white: five causes

A transparent image turns black or white for one of five reasons, and the fix is different for each, so it is worth identifying which one you have before re-exporting anything.

1. The destination re-encoded it as a JPEG

This is the most common cause and the only one you cannot fix with a better file. Marketplaces, social networks and some CMS image pipelines normalize every upload to JPEG for storage and delivery. JPEG cannot represent transparency, so the encoder composites your cut-out onto a solid color. Etsy documents black; many other pipelines default to white. A Shopify community thread from October 2023 describes exactly this: large PNGs automatically converted to progressive JPEG with black backgrounds on roughly one product image in ten.

2. The app that opened it cannot read the alpha channel

The file is fine; the viewer is not. Three well-documented examples: image libraries built on ImageMagick 6 produced AVIFs with black backgrounds instead of transparency (documented in January 2023; the fix was ImageMagick 7), and the same behavior sat as a confirmed, unassigned Ubuntu bug filed in June 2022. WordPress's performance team traced AVIF thumbnails losing their alpha to the server's Imagick version rather than to WordPress itself. On Android, apps using the Glide image loader without its AVIF module rendered transparent AVIFs with black backgrounds on Android 12 and 13 devices (bumptech/glide #5140, May 2023). In each case the same file opened correctly elsewhere.

3. The export never wrote an alpha channel

Some export paths silently drop transparency. LibreOffice added WebP export in 7.4 but its bug tracker carries a confirmed report (bug 160305, March 2024) that WebP export "does not support transparency", which matches the Impress and Draw complaints that a transparent slide element comes out on a white box. Canva accepts WebP uploads but, as of a May 2026 audit of its export menu, offers no WebP or AVIF download at all, so a "transparent WebP" from Canva is a PNG that was renamed or re-encoded somewhere else. Figma's built-in export panel is PNG, JPG, SVG and PDF; WebP and AVIF need a plugin. GIMP exports both formats with alpha, but animated WebP made from layers can composite frames over each other unless you run Filters, Animation, Unoptimize first (GNOME Discourse, October 2023).

4. It is the page, not the file

Two of the three Shopify "transparent product images show a black background" threads we read (April and June 2023) turned out to be theme CSS: the Dawn theme's product-media container had a background color, and the transparent image was doing exactly what it should over it. A one-line CSS change fixed both. Before you re-export anything, open the image on its own; if it is transparent alone and black in the layout, the layout is the problem.

5. Animation and premultiplied alpha edge cases

The rarest cause, and the one with the least satisfying fix. Animated AVIF with transparency renders with a black background in some Safari versions (the WebKit bug above), while static AVIF is fine. Firefox 86 darkened semi-transparent regions of AVIF images on Windows and Linux because alpha premultiplication was applied inconsistently; Bugzilla 1684688 records the fix landing in Firefox 87. If your problem is dark or fringed edges rather than a solid background, and it only shows in one browser, you are here.

Check the file first: does it actually have an alpha channel?

Before changing anything, confirm whether the file you have actually contains transparency, because half of these problems are a file that was flattened before you ever looked at it. Two checks cover both formats.

The visual check. Put the image on a strongly colored page and look at the edges. A one-line HTML file does it:

html
<body style="background:#e91e63"><img src="cutout.webp"></body>

If the pink shows through around the subject, the file has alpha and the problem is downstream. If you see a white or black box, the file is already flat. Any editor with a checkerboard view (GIMP, Photoshop, Affinity) tells you the same thing.

The command-line check. ImageMagick's identify reports whether every pixel is opaque:

bash
identify -format '%[opaque]' cutout.avif

False means the file contains transparent pixels; True means it is fully opaque, whatever its extension says. The same command works for WebP and PNG. For WebP specifically, ExifTool exposes the container's alpha flag in its WebP_Flags tag, and libwebp's webpinfo lists the chunks (a transparent lossy WebP shows an ALPH chunk; a lossless one carries alpha inside the VP8L bitstream). libavif's avifdec --info does the equivalent chunk-level dump for AVIF.

Once you know the file is transparent, work through the causes above in order: destination, viewer, export, page, then the animation edge cases.

The fix for each cause

Match the fix to the cause; re-exporting a file that was flattened by the destination only wastes the afternoon.

CauseFix
Destination re-encodes to JPEGStop fighting it. Composite the cut-out onto the exact background the platform wants (pure white for most marketplaces) and upload that. Keep the transparent master for everywhere else.
Viewer or library cannot read alphaUpdate the specific component: ImageMagick 7 rather than 6, the Glide AVIF module, the Windows AVIF extension, your CMS host's Imagick build. Test the same file in a current browser to prove the file is good.
Export dropped the alphaExport a PNG from the app that cannot write transparent WebP or AVIF, then convert the PNG with a tool that preserves alpha (any current libwebp or libavif build, or an online converter that states it keeps transparency).
The page, not the fileRemove the background color from the container element, or set it deliberately. Check by opening the image URL on its own.
Animated or premultiplied-alpha edge caseShip a static image where you can; for animated AVIF, serve animated WebP to Safari or provide a fallback in a <picture> element until the WebKit bug is closed.

If the cause turns out to be the export, the quickest replacement is a fresh cut-out: Remove Background to WebP writes the alpha channel every time, from the original photo rather than a flattened copy.

PNG, WebP or AVIF for a cut-out?

Key takeaway

For the web, WebP is the safe default and AVIF is the smaller one; PNG remains the right choice for print, for archiving a master, and for any destination that is going to re-encode the file anyway.

Google's own figure for lossless WebP is 26% smaller than PNG on average (WebP FAQ), and a lossy WebP with a lossless alpha plane is smaller again. AVIF can go further on images with large soft-edged transparent regions because it compresses the alpha plane lossily, but the gain depends heavily on the image, and we have not benchmarked it on cut-outs, so treat "AVIF is smaller" as usually rather than always true. The trade-off is reach: WebP's 96.82% browser coverage versus AVIF's 95.36% is close, but the long tail of apps, CMS thumbnailers and Windows previews still handles WebP more reliably than AVIF in 2026.

A practical rule: keep a PNG master, publish WebP by default, add AVIF where your stack (a modern CMS, an image CDN, or your own build pipeline) serves it with a fallback, and flatten to JPEG only for the platforms that will do it for you anyway. Our AVIF or WebP for product images answer goes deeper on the size and compatibility trade for e-commerce, and What Is an AVIF File? covers opening AVIF on machines that cannot.

Mochify Workflow: remove a background to transparent WebP or AVIF

Mochify removes a background and writes the result as a transparent WebP or AVIF in one step, on every plan including Free, from any browser. There are three ways in, depending on what you need.

  1. Magic Flow, for anything with a twist.

    Open mochify.app/flow, drop your images, and describe the result. "Remove the background, transparent PNG" is one of the page's own example prompts; "remove the background and place it on white" gives you the flattened version a marketplace wants, so you can produce both from the same upload. There are no format pickers or quality sliders to set.

  2. The fixed-purpose pages, for a plain cut-out.

    Remove Background to WebP and Remove Background to AVIF do one job each: drop a JPG, PNG, WebP, AVIF, HEIC, HEIF or HIF file and download the cut-out with a full alpha channel. Without an account you can process 3 files per batch at up to 20MB each, 3 images a month; a free account raises that to 25 a month, and paid plans raise the file size to 75MB and batches to 25.

  3. The API and MCP, for batches and automation.

    Background removal is available through the REST API and both MCP surfaces on every tier, so an agent or a script can run the same cut-out over a folder. The API strips EXIF by default (GPS included) unless you pass stripExif=false; the two solution pages have no settings at all.

One thing the workflow will not do: make a platform that stores JPEG keep your transparency. If the destination is Etsy, upload the "place it on white" version.

Cheat Sheet: symptom, cause, fix

What you seeMost likely causeDo this
Black background after uploading to a marketplace or social appPlatform re-encoded to JPEG (Etsy documents black)Upload a version composited onto the platform's required color
White background after uploading to a marketplace or CMSSame, with a white matteSame; or check the CMS thumbnail library version
Fine in Chrome, black in an app or a Windows thumbnailViewer lacks an AVIF/WebP-alpha decoderUpdate the decoder or extension; keep the file
White box after exporting from LibreOffice, Canva or FigmaExport path never wrote alphaExport PNG, convert with a tool that keeps alpha
Transparent on its own, black inside the web pageContainer CSS backgroundFix the CSS, not the image
Animated AVIF black in Safari onlyWebKit animated-AVIF bugServe animated WebP or a fallback to Safari
Dark fringe on soft edges in one browserPremultiplied-alpha handlingRe-encode with a current encoder; test another browser
identify -format '%[opaque]' prints TrueThe file is already flatGo back to the master and export again

FAQ

Does WebP support transparency?

Yes. Lossless WebP stores a full 8-bit alpha channel with every pixel, and lossy WebP adds a separate alpha plane in an ALPH chunk, so both kinds can hold soft, partial transparency. Every current browser renders it; the only common failures are apps with old decoders and platforms that convert uploads to JPEG.

Does AVIF support transparency?

Yes. AVIF stores transparency as a second, monochrome AV1 image inside the file at the same bit depth as the color image, and it can compress that alpha plane lossily, which is one reason AVIF cut-outs are often smaller than WebP ones. Static AVIF with alpha displays correctly in Chrome, Firefox, Edge and Safari 16.4 or later.

Why does my transparent PNG turn black when I convert it to AVIF?

Usually because the converter is built on an old ImageMagick 6 or a library without alpha support, both of which write the color image and drop the alpha item. Convert with a current libavif or ImageMagick 7 build, then run identify -format '%[opaque]' on the output; False confirms the transparency survived.

Why does my cut-out show a black background on Etsy?

Because Etsy stores listing images as JPEG and states in its help center that "the transparent parts of the image will appear black on Etsy". No file format changes that. Composite the cut-out onto the background you want before uploading; Magic Flow's "remove the background and place it on white" does it in one prompt.

How do I check whether an image file actually has an alpha channel?

Open it on a brightly colored web page and see whether the color shows through, or run ImageMagick's identify -format '%[opaque]' file and read False (has transparent pixels) or True (fully opaque). For WebP, ExifTool's WebP_Flags tag also reports the alpha bit.

Does removing the background on Mochify cost extra or need a paid plan?

No. Background removal is on every plan including Free, and it works without an account within the same allowance as any other conversion: 3 images a month with no signup, 25 a month with a free account, at up to 20MB and 3 files per batch. Paid plans raise the allowance, the file size (75MB) and the batch size (25).

Should I use PNG, WebP or AVIF for a transparent logo?

Keep a PNG master, publish WebP by default, and serve AVIF where your site or CDN can fall back to WebP for the rest. Google puts lossless WebP at 26% smaller than PNG, AVIF is usually smaller still on soft-edged cut-outs, and PNG is the one to send wherever the destination will flatten the file anyway.

Whatever caused the black box, the master file is the thing to protect: keep the transparent original, and make each flattened copy from it rather than from the last upload. If you need a new cut-out, mochify.app/flow will remove the background and hand you a transparent PNG in one prompt, and the WebP and AVIF pages do the same for those two formats.

Need a cut-out that keeps its transparency?

Both write a full alpha channel from the original photo, on every plan including Free, with no settings to get wrong.