Background removal
What is a transparent background?
A transparent background is an area of an image that has no color of its own, so whatever sits behind the image shows through. The file stores it in an alpha channel, one opacity value for every pixel from fully transparent to fully opaque. PNG and WebP can carry one; JPEG cannot.
By the DreamBench team. Updated .
Transparent backgrounds at a glance
At a glance
- Stored in
- An alpha channel: one opacity value for every pixel.
- Kept by
- PNG, WebP and AVIF in full; GIF for one color only.
- Lost in
- JPEG, which has no alpha channel.
- Shown as
- A gray-and-white checkerboard in most editors, which is not part of the file.
How transparency is stored
A pixel with an alpha channel carries a fourth number beside its red, green and blue: how opaque it is. In the PNG specification zero means fully transparent and the maximum value means fully opaque, and every step in between lets soft edges such as hair or glass stay partly see-through.
Mask
Every pixel is in or out. Fine enough for a solid object, blocky on hair, smoke or motion blur.
Matte
Every pixel has a share of transparency, from 0 to 100%, so loose strands keep their softness.
The gray-and-white checkerboard in an editor is not part of the file. It is how apps show transparent pixels. If you open a PNG somewhere else and still see the checkerboard, the pattern was saved as ordinary pixels and the background is not transparent.
The same goes for a screenshot of a cutout. A screenshot records what was on the screen, the checkerboard or the color behind the subject included, as ordinary pixels, so it has no alpha channel. To keep the transparency, download or export the file itself.
Straight and premultiplied alpha
There are two ways to store a see-through pixel. Straight alpha keeps the color and the opacity apart; premultiplied alpha stores the color already multiplied by the opacity. PNG uses straight alpha. When an app mixes the two up, a cutout gets a dark or light fringe around its edges.
Which file formats keep transparency
| Transparency | Soft edges | Typical use | |
|---|---|---|---|
| PNG | A full alpha channel | Yes | Cutouts, logos, screenshots |
| WebP | An alpha channel, in its lossless and lossy forms | Yes | Images on websites |
| AVIF | An alpha channel, stored as a second image beside the picture | Yes | Images on websites |
| GIF | One color can be marked transparent | No: each pixel is either shown or not | Simple animations and icons |
| JPEG | None: transparent areas are flattened onto a color | No | Photos |
| SVG | A vector format: the canvas starts transparent and only what is drawn has color | By shape, not pixels | Logos and icons that scale |
A PNG is usually larger than a JPEG of the same picture; WebP keeps transparency at a smaller size for the web.
Where people use transparent backgrounds
- Logos that sit on any color of a website, a slide or a video.
- Product cutouts for a shop, a marketplace or a mock-up.
- Stickers and overlays for social posts.
- Cutouts placed into Canva, PowerPoint or Google Slides designs.
How DreamBench makes a transparent background
The transparent background maker and the AI background remover use a matting model, BiRefNet, to work out which pixels belong to the subject, edges included. You download a PNG whose background is fully transparent.
A cutout uses 7 credits. How the subject is found and its edges kept is explained in background removal. To check whether a PNG you already have is really transparent, see how to make a PNG transparent.
At a glance
- Takes
- JPEG, PNG, WebP or HEIC up to 40 MB; a picture over 2048 pixels on its long edge is scaled to 2048 first.
- Returns
- A PNG with a full alpha channel, at the size of your upload, up to 2048 pixels on its long edge.
- Edges
- A matte estimated for every pixel, so hair, fur and feathered edges stay partly see-through rather than cut with a hard line.
- Price
- 7 credits a cutout, with any plan; a run that fails is refunded.
- Time
- A few seconds: one pass of the matting model, nothing redrawn.
- On white instead
- The white background maker flattens the same cutout onto #ffffff for sites that don’t keep transparency.
- Your upload
- Removed from the tool’s storage after 7 days, with the result; not used to train a model.
A transparent PNG keeps its alpha channel through the AI image upscaler, which returns a PNG for a PNG upload, transparency included. In the composer, a cutout is a reference image: the video model draws the subject into a scene, so the clip has a backdrop, not transparency.
Questions
Why is my PNG not transparent?
Your PNG is not transparent because the checkerboard was saved into it as gray and white pixels, because it was saved as a JPEG along the way (a JPEG renamed to .png still has no alpha channel), or because the export had transparency turned off and dropped the alpha channel. Some file browsers and previews also draw transparent pixels as white, so the file may be fine. Test it on a colored background: if white or a checkerboard still shows, the pixels are real.
How do I check whether a PNG is transparent?
Place it on a colored background in any editor or slide app. If the color shows through, it is transparent; if you see white or a gray checkerboard, those are ordinary pixels.
Why does my logo have a white box around it in PowerPoint or Canva?
The file is a JPEG, or a PNG that was flattened: both store white pixels where the transparency was. Export the logo again as a PNG with transparency on, or run it through a background remover and download the PNG.
Why does my transparent PNG show a black background?
A transparent PNG shows a black background when the app or site displaying it doesn’t support transparency and flattens the empty pixels onto black. Many marketplaces and some phone galleries do this. The file is fine; upload a version of the picture on white where transparency isn’t supported, which DreamBench’s white background maker makes in one step.
Why is there a white or dark edge around my cutout?
Either the edge pixels still carry color from the old background, or an app mixed straight and premultiplied alpha. Re-export from the cutout on a transparent layer, and check the file in the viewer you’ll actually use.
Can a JPEG have a transparent background?
No. JPEG has no alpha channel, so a transparent area is filled with a solid color when the file is saved. Use PNG or WebP to keep transparency.
What is an alpha channel?
It is the part of an image file that stores how opaque each pixel is, from fully transparent to fully opaque. With an alpha channel, soft edges such as hair can stay partly see-through.
How do I make a transparent background?
Remove the background with a matting tool, then save the result as a PNG or WebP. A JPEG can’t keep it, so check the file type before you save.
Why does my transparent PNG have jagged edges?
A transparent PNG has jagged edges when each pixel along the edge is either fully shown or fully hidden, with no partial values in between. A GIF works that way, since it can only mark one color transparent, and so does a cutout made by segmentation alone rather than matting. A matting model keeps a partial value at the edge, which is what DreamBench’s maker does; save the result as PNG or WebP, which keep those values, not as GIF.
Is a transparent PNG bigger than a JPEG?
Usually, yes: a PNG compresses without loss and stores a fourth value for every pixel, so a PNG of a photo is larger than a JPEG of the same picture. A cutout on transparency is the exception that compresses well, because the transparent area is all the same value. WebP keeps the alpha channel at a smaller size for the web; convert the PNG in your editor when a site asks for one.
Can I sell stickers, prints or designs made from a transparent PNG?
Yes, for pictures you have the rights to. Under the DreamBench Terms you may use what a tool makes for personal and commercial purposes, including advertising, monetized content and work for clients, with no separate commercial-use upgrade. The Terms don’t guarantee copyright in a result or clear another person’s rights in your upload, so a cutout of someone else’s photo, logo or character is theirs to license, not yours.
Related
DreamBench tools
- Transparent background makerMake any background transparent and download a PNG with see-through pixels, edges and all.
- AI background removerCut the subject out of any photo as a transparent PNG, edges and all.
- White background makerPut the subject of a photo on plain, pure white, edges blended and nothing redrawn.
Terms
Sources
- W3C: Portable Network Graphics (PNG) Specification, Third EditionW3C, read on
- Google for Developers: An image format for the Web (WebP)Google, read on
- W3C: PNG Specification, Third Edition, §6.2 Alpha representationW3C, read on
- AV1 Image File Format (AVIF)Alliance for Open Media, read on
- W3C: Graphics Interchange Format, Version 89aW3C, read on
- W3C: SVG 2, Chapter 3 Rendering ModelW3C, read on
DreamBench is an independent platform and isn’t affiliated with or endorsed by the companies named on this page.