October 18, 2026 · 6 min read
What File Format Keeps a Transparent Background?
Four formats keep a transparent background: PNG, WebP, AVIF, and GIF. Everything else you will be offered — JPEG, BMP, standard TIFF, most HEIC files — either cannot store transparency or quietly destroys it on export. But the four are not interchangeable: PNG, WebP, and AVIF write a full per-pixel alpha channel (256 levels of see-through, which is what makes hair edges and glass look real), while GIF can only declare a single color "transparent" with no in-between. Choosing the wrong one is why a logo looks perfect on your mockup and gets a white box on the live dark header. This page gives you the mechanism in one paragraph, a format-by-format verdict, and the export decision for each common job.
The Mechanism: Alpha Channel vs One Transparent Color
Transparency is stored in one of two ways, and the format you pick is really a pick between these two mechanisms:
- Alpha channel (PNG, WebP, AVIF).Every pixel carries a fourth 8-bit value: 0 = invisible, 255 = solid, 128 = half-transparent. A cut-out of a person keeps its soft hair fringe because those pixels are genuinely semi-transparent, and they blend correctly over any background you place them on later.
- Color-key transparency (GIF).The file marks one palette entry as "display nothing." A pixel is either fully opaque or fully gone — there is no blend. Edges get dithered or jagged, and if you bake a matte color (white halo) into the semi-transparent pixels before saving, that halo is permanent.
JPEG has neither: its encoding math (discrete cosine transform over 8×8 blocks) simply has no channel for it, so "transparent JPEG" does not exist no matter what a converter claims. If a tool offers it, it is compositing your alpha onto a solid color first — which is exactly the fake-transparency failure described in our PNG-without-Photoshop guide. Related: whether the cutout process itself costs quality is broken down on our image quality loss page — the honest answer is that loss comes from the format decision after the cutout, which is this page's topic.
Format-by-Format Verdict
| Format | Transparency? | Mechanism | Best for |
|---|---|---|---|
| PNG | Yes, always available | Full 8-bit alpha (color type 6) | Cutout masters, logos, anything re-composited later |
| WebP | Yes, both modes | Full alpha in lossy and lossless | Web delivery of product photos, hero cutouts |
| AVIF | Yes, best quality/size | Alpha plane, supports 10-bit | High-traffic pages where you control encoding |
| GIF | Yes, binary only | One transparent palette color | Flat animated stickers only; never photos |
| JPEG | Never | No alpha math exists in the format | Photos with a baked-in background |
| TIFF / BMP / HEIC | Edge cases | TIFF can store alpha; BMP's 32-bit alpha is ignored by many viewers; HEIC alpha rarely encoded | Print (TIFF); nothing else for web |
PNG vs WebP vs AVIF: the Real Trade-offs
PNG is the safe default and the format a bulk background remover should hand you: lossless, universal, and its alpha survives every re-save. Its weakness is size — a 2000px product cutout can sit at 2–4MB because PNG compresses color and alpha without discarding data. WebP fixes the size: lossy WebP at quality 80–90 keeps the same 8-bit alpha while cutting file weight 60–70% versus PNG. The catch is the halo: lossy color quantization around a hard alpha edge can tint the fringe with leftover background color, visible on dark layouts at 100% zoom. AVIF beats both on size again (10–20% under WebP) and handles alpha cleanly with optional 10-bit depth, but encoding is slower and a few legacy upload endpoints (older marketplaces, some CMS plugins) still refuse it.
The pipeline that avoids every one of these traps: cut out and archive in PNG, then compress after. Run your master folder through a batch image compressor and export the delivery copies as WebP or AVIF — the alpha plane is passed through untouched by both encoders, and you keep a lossless original if a platform later demands it. This is also the answer when a single-file tool offers you a one-off removal: the transparent background tool outputs RGBA PNG precisely so the format decision stays yours. If you need to run a whole catalog — say 100 images — through this pipeline at once without a quota, our guide on removing 100 backgrounds free in one batch covers the safe batch size and the export order.
Job → Format Cheat Sheet
- Logo on a dark site header:SVG if it is a real vector; otherwise PNG-24 or lossless WebP. Never GIF — the binary transparency will fringe.
- E-commerce product photo cutout:PNG master. Amazon wants a flattened white JPEG copy; Shopify and Etsy accept transparent PNG fine (see our Amazon white-background rules and Etsy photo requirements for per-platform specs).
- Web hero image with a cut-out person:WebP (or AVIF with a WebP fallback) from the PNG master — hair edges need real alpha, so lossy WebP is fine, GIF never is.
- Animated sticker / meme:GIF is the only animated option with any transparency, accept the jagged edges, and pick a matte color close to the destination background.
- Print file:TIFF with alpha (or layered PDF). Check that the print pipeline actually reads the alpha — many composite it to white without telling you.
Two Export Mistakes That Kill Transparency Anyway
First, flattening at the wrong moment. Any tool that asks for an output "quality" slider is likely lossy-encoding color and re-deciding alpha edges; on cutouts with soft edges this produces the semi-transparent ghost fringe people blame on the background remover itself. The order is always: remove background → keep RGBA master → make compressed copies.
Second, trusting the file extension. A file named .png that an encoder wrote with color type 2 (indexed, no alpha) shows a solid background everywhere the name promised transparency. This is the same fake-transparency class as a white-box "transparent" PNG — the black-background paste test from the no-Photoshop guide catches it in five seconds, and our transparency editor guide shows how to read the color type directly instead of eyeballing. If you batch-exported a catalog and suspect a whole folder is fake, re-run it through a multi-image remover that guarantees RGBA output rather than fixing files one by one.
Frequently Asked Questions
Which image file format keeps a transparent background? ▼
PNG, WebP, AVIF, and GIF. The first three store a full per-pixel alpha channel; GIF only marks one color transparent with no soft edges. JPEG can never be transparent — any 'transparent JPEG' is really a background color composited in.
Is WebP as good as PNG for transparency? ▼
Yes on the alpha channel — lossy WebP keeps the same 8-bit transparency and cuts size 60–70%. Its only risk is a tinted halo around hard cut edges. Lossless WebP matches PNG exactly and is still smaller.
What is the best format for product photos with no background? ▼
A PNG master for archive and re-use, compressed WebP or AVIF copies for the storefront. Flatten a white-background JPEG copy only for platforms like Amazon that require one.
Why did my transparent PNG get a white box after conversion? ▼
The converter flattened alpha onto white because the target format had no alpha channel. Re-export as PNG or WebP from the original, and verify with the paste-on-dark-background test.
Can GIF do smooth transparent edges? ▼
No. GIF transparency is binary — fully visible or fully gone — so anti-aliased edges get jaggies or a matte-color fringe. Use PNG/WebP/AVIF for anything photographic.