Skip to main content
Faviqo

SVG favicon

Build a scalable SVG favicon

Upload your logo and download just favicon.svg — one crisp file that scales to any size in modern browsers, without the rest of the icon kit.

  • 100% browser-based
  • No upload
  • Stays a true vector
  • One file

No SVG handy?

Why ship an SVG favicon

An SVG favicon is vector — the same file renders sharp at 16px in a browser tab and at 512px on a splash screen, with no separate export per size. Every current browser supports <link rel="icon" type="image/svg+xml">.

It doesn't replace favicon.ico entirely: browsers still request /favicon.ico from the site root even with an SVG link tag, and some tools don't read SVG icons yet. Keep an ICO as a fallback — the full favicon generator ships both together, or convert this SVG with the icon converter.

What the SVG favicon tool does

This tool produces a single file, favicon.svg, from the logo you drop in. If your logo is already an SVG and you have not asked for a background, shape or padding, the file is your original artwork, cleaned of scripts and external references. If you do ask for any of those, the browser's canvas has to draw the result, so the SVG becomes a wrapper around an embedded PNG. The badge above the download button tells you which of the two you got.

A true vector favicon matters because it is one file for every size. The same bytes are drawn at 16 pixels in a tab and at 32 or 48 on a high-density screen, with no blur from scaling. An SVG can also respond to the visitor's colour scheme with a prefers-color-scheme media query inside the file, so a dark logo can switch to a light one in a dark browser theme.

Support is wide but not complete. Current Chrome, Edge and Firefox use an SVG icon. Safari accepts one in recent versions but has historically preferred PNG and the Apple Touch icon. Many crawlers, link unfurlers and older browsers still ask for /favicon.ico. That is why the guidance on this page is to ship the SVG together with an ICO fallback, not instead of one.

How to use it

  1. Drop in your logo. SVG gives the best result; PNG, JPG, WebP and GIF are accepted and will be embedded as a raster image.
  2. Check the preview. Small sizes expose problems quickly: thin strokes disappear and text becomes unreadable below about 24 pixels.
  3. Leave padding at 0, shape at square and the background transparent if you want a true vector. Change any of them and the file will wrap a PNG.
  4. Download favicon.svg and put it in the root of your site, next to your index page.
  5. Copy the link tag from the page and paste it into the <head> of every page, or into your shared layout.
  6. Keep a favicon.ico in the site root as a fallback, and add an Apple Touch icon for iPhones. The main generator builds all of these in one ZIP.

Common mistakes

  • Using a full wordmark. A logo with text is unreadable at 16 pixels. Use the symbol or a monogram.
  • Relying on an SVG that references fonts. A favicon is rendered in isolation and cannot load web fonts, so text falls back to a default face. Convert text to outlines before exporting.
  • Embedding external images or stylesheets. Browsers block them inside an icon, which is why this tool strips them.
  • Forgetting the type attribute. Without type="image/svg+xml" some browsers download the file and try to guess what it is.
  • Deleting favicon.ico because an SVG exists. Crawlers and some tools request the ICO directly and will log a 404.

The tag you install

Put this in the <head>, after any existing icon tags have been removed. The sizes="any" hint tells browsers that prefer a fixed-size icon that the SVG is scalable.

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

Frequently asked questions

Do all browsers support SVG favicons?

Chrome, Edge and Firefox do. Safari support is more limited, and some tools that fetch favicons only look for PNG or ICO. Ship an ICO fallback and an Apple Touch icon alongside the SVG.

Why does my download say 'PNG embedded in SVG'?

You asked for something plain SVG cannot express here: a background, a shape, padding or a crop. Reset those and the tool keeps your original vector.

Can an SVG favicon change colour in dark mode?

Yes. Add a <style> block with @media (prefers-color-scheme: dark) to the SVG and change the fill colours inside it. Only a true vector can do this.

Is my logo uploaded anywhere?

No. The file is read and processed in your browser. Nothing is sent to a server.

Related:Full favicon generatorIcon converterFavicon sizes guide