2026-11-12 · Branding
A favicon is your logo at 16 pixels. Here is how to simplify a symbol for that size, write a lean favicon.svg, add PNG fallbacks and check it in light and dark tabs.
A favicon is the smallest place your brand appears: a browser tab, a bookmark list, a history entry, a pinned tab. On a standard screen the tab icon is drawn at 16 × 16 px, and on high-density screens at 32 × 32 px. That is 256 or 1,024 pixels to say who you are.
A full logo with a wordmark cannot survive that. Letters turn into grey smudges below about 24 px. A symbol on its own, or a single initial, usually can, because it is one shape with a clear silhouette. If your brand already has a symbol-only variant, start there. If it does not, this guide shows how to derive one and turn it into a favicon set that works in every browser.
The end result is small: one SVG file, three or four PNG files and four lines of HTML. The work is in the simplifying.
Open the symbol in a vector editor and set the artboard to a square, for example a viewBox of 0 0 32 32. Working on a 32-unit grid makes it easy to see what will happen at real size, because one unit equals one pixel at 32 px and half a pixel at 16 px.
Then simplify with these rules:
1. Remove the wordmark and any slogan. A favicon is the symbol only. 2. Make strokes at least 2 units wide on the 32-unit grid. Anything at 1 unit becomes a faint half-pixel line at 16 px. 3. Keep gaps between shapes at least 2 units wide too, or they fill in. 4. Cut to two colours, three at most. Gradients and soft shadows turn to mud at this size. 5. Fill most of the canvas. Leave about 1–2 units of margin on each side, not the generous padding you would use on a social avatar. A favicon with lots of empty space looks smaller than its neighbours in the tab bar. 6. Snap edges to whole units where you can. Straight edges that land on the pixel grid stay crisp; edges that land between pixels blur.
If the symbol has fine interior detail that matters at large sizes, keep the detailed version for the website header and make the favicon a separate, simpler file. Brands do this routinely; the logo file kit guide covers that "small symbol" variant along with the rest of a brand's exports.
Modern Chrome, Edge and Firefox accept an SVG favicon. Its advantage is that one file stays sharp at 16 px, 32 px and on any zoom level, and it can switch colours for dark mode.
Keep the file lean. A favicon SVG should be a few hundred bytes to a couple of kilobytes. Remove editor metadata, hidden layers, unused definitions and embedded raster images. Round coordinates to one decimal place. The checklist in cutting SVG file size applies here and matters more than usual, because the file loads on every page.
A minimal favicon.svg has a square viewBox and no width or height attributes:
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#1a1a1a" d="..."/></svg>
Check one detail: many generated logos and icons come with a background shape, such as a white square, as part of the artwork. Decide on purpose whether the favicon keeps it. A white square looks fine on a light tab bar and like a white sticker on a dark one. Removing it usually reads better, but then the symbol itself must carry enough contrast on both light and dark tab bars (see Step 5).
SVG is not enough on its own. Safari has lagged on SVG favicon support, home-screen shortcuts on phones use a separate touch icon, and some tools that fetch favicons (link previews, feed readers, bookmark managers) only read raster files. Export these PNGs from the same simplified symbol:
- favicon-32.png at 32 × 32 px, the general fallback for browsers that skip the SVG. - apple-touch-icon.png at 180 × 180 px, used when someone adds the site to an iPhone or iPad home screen. Give it a solid background colour and about 10–15% padding on each side, because the system rounds the corners and transparent areas do not display well there. - icon-192.png and icon-512.png at 192 × 192 and 512 × 512 px if the site has a web app manifest. Android uses these for home-screen icons and splash screens.
You can make all of these from the SVG in the image converter: upload favicon.svg, choose PNG, set the size and the background, and download. It runs in the browser, so the file is not uploaded, and it is free on every plan. Repeat once per size. If you only have a PNG of your logo, the converter also goes the other way: choose SVG as the output and it traces the raster into a vector you can then clean up in Step 2.
The classic favicon.ico format is not among the converter's outputs. Most sites no longer need one, because browsers that support link tags will use the PNG. If an old system on your stack insists on /favicon.ico, make it with a dedicated ICO tool from the 32 px PNG.
Place the files in your site's public root and add these lines inside <head>:
<link rel="icon" href="/favicon.svg" type="image/svg+xml"> <link rel="icon" href="/favicon-32.png" sizes="32x32" type="image/png"> <link rel="apple-touch-icon" href="/apple-touch-icon.png">
If you have a manifest, reference icon-192.png and icon-512.png in its icons array with their sizes.
Browsers that understand SVG pick the SVG; others fall back to the PNG. Keep the order as shown. Browsers cache favicons aggressively, so when you replace one, change the file name (favicon-v2.svg) or add a query string (favicon.svg?v=2), and test in a private window. A favicon that "didn't update" is almost always a cached one.
Tab bars are light or dark depending on the operating system theme, the browser theme and sometimes the site's own colour. A black symbol disappears on a dark tab bar; a white one disappears on a light one.
An SVG favicon can handle this itself with a media query inside the file:
<style>path{fill:#1a1a1a}@media (prefers-color-scheme:dark){path{fill:#f2f2f2}}</style>
The query follows the system or browser colour scheme, not the exact colour of the tab, so test both modes rather than assuming. Browsers that only use the PNG will not switch, so pick a PNG colour that holds up on both backgrounds: a mid-tone brand colour, or the symbol on a small solid shape.
Run this test before shipping:
1. Open the site in Chrome and Firefox in light mode and dark mode. 2. Pin the tab, since pinned tabs show only the icon. 3. Open ten other tabs and check that the favicon is still recognisable at a glance among them. 4. Bookmark the page and look at the bookmark bar. 5. Add the page to a phone home screen and check the touch icon's padding and corners.
If the symbol fails step 3, go back to Step 1. A favicon that needs explaining is too detailed.
If your brand has only a wordmark, use its first letter or a two-letter monogram as the favicon, set heavy enough to read at 16 px: a bold weight, no thin serifs, filling about 80% of the square.
Another option is to generate a symbol. The logo generator can make a symbol-only logo or a monogram of your initials; pick "No name" for a symbol without text. Generate a few candidates, shrink each to 16 px on screen and keep only the ones that still read as a shape. On the free Starter plan a logo exports as PNG or JPEG, which you can trace to SVG in the converter; Pro adds direct SVG export and the vector editor for the clean-up in Step 1.
For reference shapes, the simple symbols in the free SVG icon packs show the kind of bold, low-detail shapes that hold up in a tab. Labelled "Free", they are useful for studying proportions and stroke weights at small sizes. Check the licence before using any asset as part of a brand.
1. Symbol only, on a square 32-unit grid, strokes and gaps at least 2 units. 2. Two or three colours, no gradients, 1–2 units of margin. 3. favicon.svg under a couple of kilobytes, with a dark-mode media query if needed. 4. PNGs at 32, 180, 192 and 512 px; the 180 px touch icon on a solid background. 5. Link tags in <head>, SVG first, PNG fallback, touch icon. 6. Versioned file names when you replace a favicon. 7. Tested in light and dark mode, pinned, among ten tabs and on a phone home screen.
For when to use SVG and when PNG beyond favicons, see SVG vs PNG.