Guide · Image formats · Updated August 2026

Transparent Backgrounds: When You Need Them and How to Keep Them

A logo trapped in a white box is the most common image mistake on the web. Here is how transparency actually works — and how to stop losing it.

You place your logo on a blue banner and a white rectangle comes with it. Or you convert a PNG and the see-through parts turn solid black. Both accidents have the same root cause: transparency is a feature of specific file formats, not of images in general, and it silently disappears the moment a file passes through a format that cannot carry it. This guide explains what transparency really is, which formats keep it, when you genuinely need it — and when flattening it away is the smarter move.

What an alpha channel actually is

A normal digital image stores three numbers per pixel: how much red, green and blue. An image with transparency stores a fourth number — the alpha channel — which says how opaque that pixel is, on a scale from 0 (fully invisible) to 255 (fully solid).

The key word is per pixel. Alpha is not an on/off switch for the whole image; every pixel gets its own opacity value. That is what makes soft edges possible: the pixels along the rim of a logo can be 30% or 60% opaque, blending smoothly into whatever sits behind them. An anti-aliased curve, a drop shadow, a wisp of smoke in a product cutout — all of these depend on partial transparency, not just "background removed".

Formats that carry transparency — and the one that never does

Only some formats have room for that fourth channel:

  • PNG — full 8-bit alpha, 256 levels of opacity per pixel. The default, universally supported choice for transparent graphics.
  • WebP — also full alpha, in both its lossy and lossless modes, usually at a smaller file size than PNG. Great for websites; occasionally rejected by older tools and platforms.
  • SVG — vector graphics have no background at all unless you draw one, and stay razor-sharp at any size. Ideal for logos and icons when you have a vector source.
  • GIF — a crude 1-bit version: each pixel is either fully solid or fully invisible, nothing in between. Curved edges come out jagged because there are no semi-transparent pixels to smooth them. Avoid it for anything except legacy animation.
  • AVIF — supports alpha too, but tool and platform support still lags behind WebP.

JPG has no alpha channel — full stop. The format simply has nowhere to store opacity, so any transparent region must be flattened onto a solid colour the instant an image is saved as JPG. This is not a quality setting or an export option you missed; it is structural. If you only remember one fact from this page, make it that one. (For the broader trade-offs between the two formats, see PNG vs JPG; for the whole format landscape, Image Formats Explained.)

The two classic accidents

1. The white box around the logo

Someone saves or re-exports a transparent logo as JPG — often without realising, because an email client, CMS or chat app converted it in transit. The transparent pixels get flattened onto white. On a white page nobody notices; on the company's navy header, the logo now sits in a glaring white rectangle. The fix is never to "remove the white" afterwards (you will shred the anti-aliased edges); it is to go back to the original transparent PNG or SVG and keep it in a transparency-capable format the whole way to publication.

2. The black background after conversion

When software flattens transparency without being told which colour to use, some tools default to black — the mathematical zero. A logo that looked fine in the editor suddenly appears on a black slab after conversion. Same disease, different symptom: the alpha channel was discarded and a fallback colour filled the void. Good converters flatten onto white deliberately, which is what ours does (more on that below).

A third, subtler cousin: edge fringing. A graphic flattened onto white and then placed on a dark background shows a faint pale halo along its edges — those are the semi-transparent edge pixels that were blended with white and can no longer adapt. If you see fringing, the transparency was lost one step earlier than you think.

When you need transparency — and when it's wasted bytes

Transparency is required whenever an image must sit on backgrounds you do not control:

  • Logos — the same file must work on white pages, dark footers and photo banners.
  • Watermark overlays — a watermark is by definition a semi-transparent layer over a photo; alpha is the entire mechanism. (See our watermarking strategy guide for placement and opacity.)
  • Product cutouts — an isolated product that stores drop onto category pages, ads and collages.
  • UI icons and badges — buttons and toolbars restyle their backgrounds; icons must not carry one along.

And it is wasted on anything that fills its own rectangle. A photograph has no transparent pixels, and a full-bleed hero image covers whatever is behind it anyway. Keeping such images as PNG "just in case" costs real weight — a photographic PNG is routinely 5–10× the size of a good JPG or WebP with zero visible benefit. If page speed matters to you (it should), that is the first fat to trim; our guide to optimizing images for the web walks through the numbers.

Flattening on purpose

Losing transparency is only an accident when it happens behind your back. Plenty of destinations actively want a flat image on white: marketplaces that require JPG product photos on a white background, print shops, email signatures, systems that reject PNG uploads or choke on alpha. For those cases, our PNG to JPG converter flattens transparent regions onto clean white — the predictable, standard choice, never black — with adjustable JPG quality. Files up to 15 MB are accepted and automatically deleted within 6 hours. Convert a copy, keep the transparent PNG as your master, and you get the best of both worlds.

Keeping transparency when you resize

Resizing is the other place transparency quietly dies: scale a transparent PNG and export as JPG, and the alpha channel is gone. In the TrucosConsejos Image Resizer the rule is simple — export as PNG or WebP and the alpha channel survives the resize intact, semi-transparent edge pixels included; choose JPG and the image is flattened, because it must be. The resizer runs entirely in your browser, so your files are never uploaded anywhere in the first place.

Decision table: need transparency?

What you're savingTransparency needed?Pick this format
Logo or icon (vector source available)YesSVG (PNG fallback)
Logo, badge, UI element (raster)YesPNG, or WebP for the web
Watermark overlayYes — partial opacityPNG
Product cutout for a storeDepends on platformPNG master; JPG on white if required
PhotographNoJPG (or WebP)
Full-bleed hero or banner imageNoJPG or WebP
Screenshot with no cutoutNoPNG (for sharp text, not for alpha)

The bottom line

Transparency lives in the file format, and it dies without an error message. Keep one transparent master — PNG or SVG — for every logo, watermark and cutout you own; stay in PNG or WebP through every edit and resize; and flatten to JPG only at the final step, deliberately, onto white. Do that, and the white-box logo becomes someone else's problem.

Resize without losing transparency

Scale any image and export as PNG or WebP with the alpha channel intact — right in your browser, no upload.

Open the Image Resizer

Related guides