How to make a favicon
- Choose your source. Type a letter, initials or an emoji and pick colours and a shape, or switch to An image and choose your logo. A square SVG or a PNG of at least 512 px works best.
- Check the previews. The browser-tab mock-up shows the icon at its real 16 px size, which is where most logos struggle. If yours turns to mush, try a simpler mark or a single letter.
- Download the ZIP and copy the HTML tags.
- Upload the files to the root of your website and paste the tags into the
<head>of your pages.
What’s in the ZIP
| File | Size | Used for |
|---|---|---|
favicon.ico | 16, 32, 48 px inside one file | Browser tabs, bookmarks, history, and older software that looks for /favicon.ico |
apple-touch-icon.png | 180 × 180 px | iPhone and iPad home screen |
icon-192.png | 192 × 192 px | Android home screen (web manifest) |
icon-512.png | 512 × 512 px | Android splash screen and app stores (web manifest) |
icon.svg | Any size | Sharp tab icon in modern browsers (only when made from a letter or an SVG) |
site.webmanifest | Text | Tells Android your site’s name, icons and colours |
That’s deliberately short. Older generators also made dozens of extra sizes for Windows tiles and old phones. Current browsers don’t need them.
The HTML tags
With the files at your site’s root, these lines go in the <head> of every page:
<link rel="icon" href="/favicon.ico" sizes="32x32">
<link rel="icon" href="/icon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="manifest" href="/site.webmanifest">
<meta name="theme-color" content="#0a6bb8">The sizes="32x32" on the .ico line stops Chrome choosing it over the SVG. If your site has no SVG icon, that line is left out. The theme colour tints the browser bar on some phones.
A worked example
A bakery called Crumb wants a simple icon. Type C, choose white on a warm brown with the Rounded shape, and set the site name to Crumb. The ZIP holds a favicon.ico of 3 sizes, three PNGs, an icon.svg and a manifest, all well under 100 KB together. The Apple icon is drawn as a full square, because iPhones round the corners themselves and would show black behind any see-through corners.
Tips for icons that read well at 16 px
- Simplify. Use just the symbol from your logo, or its first letter. Words are unreadable at 16 px.
- Fill the square. Choose no padding unless the shape touches the edges awkwardly. Tiny icons need every pixel.
- Strong contrast. The icon sits on light and dark browser themes, so a solid background shape is safest.
- Give the home-screen icon a background. For images with see-through areas, pick a home screen background colour so iPhones don’t fill it with black.
Common mistakes
- Renaming a PNG to .ico. Some browsers cope, many tools don’t. The favicon.ico here is a real icon file.
- Putting the files in a subfolder without changing the paths in the tags. The tags assume the site root.
- Forgetting the cache. If you can’t see your new icon, it’s almost always the browser’s cache.
Got your logo as an SVG? Tidy it with the SVG optimiser first. Need a bigger version for social media? Use Resize image. Making a QR code to go with it? Try the QR code generator.