You do not need dozens of icons. The set below covers every current browser, iOS, Android, installed web apps and search engines. Our generators create all of these files for you.
| File | Size | Used by |
|---|---|---|
favicon.ico | 16, 32 and 48 px in one file | All browsers, the automatic /favicon.ico request |
favicon.svg | Vector | Modern browsers; stays sharp at any size |
favicon-16x16.png | 16×16 | Browser tabs |
favicon-32x32.png | 32×32 | Tabs on high-density screens, taskbar shortcuts |
favicon-48x48.png | 48×48 | Google search results (multiples of 48 px) |
apple-touch-icon.png | 180×180 | iPhone and iPad home screen |
android-chrome-192x192.png | 192×192 | Android home screen |
android-chrome-512x512.png | 512×512 | PWA install and splash screen |
maskable-icon-512x512.png | 512×512 | Android adaptive icons (circle, squircle…) |
mstile-150x150.png | 150×150 | Windows pinned tiles |
Tips for small sizes
- Keep it simple. At 16 pixels, details disappear. One or two letters or a bold symbol works best.
- Use strong contrast so the icon works on both light and dark browser themes.
- Fill the square. Leave only a little padding; Apple adds rounded corners itself.
- Maskable icons need a safe zone. Keep the important part inside the central 80% circle, because Android may crop the edges.
The HTML
Put these lines inside <head> and upload the files to your site root:
<link rel="icon" href="/favicon.ico" sizes="48x48">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="manifest" href="/site.webmanifest">