Contents
  1. The short answer
  2. First, identify what kind of artwork you have
  3. How to remove the white background and export the favicon
  4. What you need
  5. Steps for a vector source
  6. Steps for a raster-only source
  7. Format choices
  8. Referencing the files
  9. Handling dark browser tabs
  10. Final inspection
  11. Evidence gaps

The short answer

A favicon shows a white box when the white is part of the image itself. That white can be a filled rectangle behind the logo, a white artboard baked in at export, or the background of a raster image. To remove it, delete or knock out that white in the source artwork. Then export to a format that keeps transparency, such as PNG with an alpha channel, ICO, or SVG. JPEG cannot store transparency, so a favicon made from a JPEG will always have a solid background.

How you do this depends on what you are starting from. A true vector logo lets you delete the background shape and re-export cleanly. A raster file, or a vector file that only wraps an embedded raster image, needs pixel-level background removal. That usually leaves rougher edges, which show up at favicon sizes.

First, identify what kind of artwork you have

A file extension alone does not tell you whether the logo has editable vector paths. An SVG, PDF, EPS or AI file can contain real paths, or it can simply hold an embedded PNG or JPEG. Open the file in a vector editor and switch to outline or wireframe view. Real vector shapes show as path outlines. An embedded image shows as a single rectangular box with no inner structure. A raster preview or thumbnail of a vector file is also not the vector artwork itself.

  • Vector paths: the white background is usually a separate rectangle or the artboard color, and it can be deleted directly.
  • White shapes inside the logo: letter counters or cut-outs may be drawn as white-filled shapes instead of holes. These need converting to true knockouts, or they will stay white once the background is gone.
  • Embedded raster image: the white is pixels inside the image. You must erase it in an image editor, or rebuild the mark as vectors.
  • Raster-only file (PNG, JPEG, ICO): background removal is a pixel task, and edge quality depends on the source resolution.

If the logo belongs to someone else, check your rights before you edit it. Being able to download a logo does not grant permission to modify the artwork, change its colors or composition, or use its fonts and trademark in your own favicon.

How to remove the white background and export the favicon

What you need

  • The most original logo file you can get, ideally a vector source with real paths.
  • A vector editor for path work, or an image editor if you only have raster files.
  • A simplified favicon version of the mark, if the full logo is too detailed for very small sizes.
  • Access to the site's HTML head, or to the platform setting where the favicon is uploaded.

Steps for a vector source

  • 1. Open the file and check it in outline view to confirm it contains paths, not an embedded image.
  • 2. Select and delete any background rectangle. If the artboard or document background is set to white, set it to transparent or make sure it is excluded from export.
  • 3. Find white shapes that represent negative space, such as the inside of an O or a cut-out in a symbol. Combine them with the shape beneath into a compound path, or use a subtract or exclude operation, so they become true holes.
  • 4. Outline any live text, so the favicon does not depend on fonts being installed.
  • 5. Simplify the mark for small sizes if needed. Remove fine details, thicken thin strokes, and align key edges to the pixel grid at the target sizes so edges render crisply instead of blurring.
  • 6. Export to formats that keep transparency: an SVG of the clean paths, PNGs at the sizes you need with transparency enabled, and an ICO if you want a broad fallback.

Steps for a raster-only source

  • 1. Start from the largest, cleanest version available, not a small favicon you already have.
  • 2. Remove the white with a selection or background-removal tool. Then inspect the edges zoomed in.
  • 3. Watch for a halo: anti-aliased edge pixels that were blended with white keep a pale fringe. It is invisible on white but obvious on dark browser tabs. Remove or recolor that fringe, or tighten the selection slightly.
  • 4. Save as PNG with transparency. Do not save as JPEG, which fills transparent areas with a solid color.
  • 5. If the edges stay rough at small sizes, tracing or redrawing the mark as vectors usually gives a cleaner result than further pixel cleanup.

Format choices

Format | Transparency | Practical notes
SVG | Yes | Scales cleanly and can adapt to dark mode. Browser support varies, so keep a raster fallback.
PNG | Yes, when saved with an alpha channel | Widely supported. Export each size you reference.
ICO | Yes | Can bundle several sizes in one file. Useful as a legacy fallback.
JPEG | No | Always has a solid background. Avoid for favicons.

Referencing the files

A common setup offers an SVG favicon with raster fallbacks. Adjust the filenames and sizes to match the files you actually export.

<link rel="icon" href="favicon.ico" sizes="any">
<link rel="icon" href="favicon.svg" type="image/svg+xml">
<link rel="icon" href="favicon-32.png" type="image/png" sizes="32x32">

Handling dark browser tabs

Removing the white background can create a new problem. A dark logo that relied on the white box may become hard to see on dark tabs. There are several ways to handle this. You can add a thin light outline, place the mark on a deliberate colored shape instead of plain white, or use an SVG favicon that switches colors with a media query.

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
  <style>
    path { fill: #1a1a1a; }
    @media (prefers-color-scheme: dark) {
      path { fill: #f5f5f5; }
    }
  </style>
  <path d="...your logo path data..."/>
</svg>

The xmlns value in this snippet is the standard SVG namespace identifier, which SVG files require. Replace the path data with your own artwork. The colors are placeholders, not recommendations.

Final inspection

  • View the favicon on both light and dark browser tabs, and in bookmarks or tab lists if those matter to you.
  • Zoom into the exported PNGs and check for white halos, stray background pixels or leftover white counters.
  • Confirm the mark is still recognizable at the smallest size you ship.
  • Browsers cache favicons aggressively. If the old white version still appears, try a hard refresh, a private window, or a changed filename before assuming the export failed.

Evidence gaps

No specific logo files, editing tools, browser test results or platform settings were supplied for this article. The guidance above therefore rests on general file-format and design principles. It does not cover tool-by-tool instructions or verified browser behavior. Check how your own browser targets and site platform handle SVG favicons and favicon uploads before you finalize.