Favicon generator
Make the tiny icon that shows in browser tabs, bookmarks and home screens, from letters or an icon, and get every size plus the HTML to paste in.
<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="#4f46e5">
Your browser just drew your design onto a canvas at 16, 32 and 48 pixels, saved each as a PNG, and packed them into a real favicon.ico. The format starts with a 6-byte header and a 16-byte directory entry per image, then the images themselves. Since Windows Vista those images can be complete PNG files, which is what modern generators use.
A favicon is usually seen smaller than a fingernail, in a row of other tabs. What survives at that size:
Every platform looks for its icon in a slightly different place. These are the files in the package above, the tag or convention that points to each one, and the quirks that catch people out.
favicon.ico16, 32, 48<link rel="icon" href="/favicon.ico" sizes="32x32">Browsers also request /favicon.ico from the site root automatically if no tag points elsewhere, as do RSS readers and many link-preview bots.icon.svgany<link rel="icon" type="image/svg+xml">Scales perfectly and can switch colours with a prefers-color-scheme media query inside the SVG. Supported in Chromium browsers and Firefox; Safari has long preferred raster icons.apple-touch-icon.png180×180<link rel="apple-touch-icon">Used when someone adds the site to an iPhone or iPad home screen. iOS also probes /apple-touch-icon.png. Transparent areas turn black, so this file is drawn without rounded corners.icon-192.png192×192site.webmanifest → icons[]Android home screen and install prompts.icon-512.png512×512site.webmanifest → icons[]Splash screens and app stores for installed web apps. Chrome needs 192 and 512 to offer installation.maskable icon512×512"purpose": "maskable"Android crops it to a circle, squircle or other shape. Keep the logo inside the central circle, 80% of the width, so nothing important is cut.theme-colorcolour<meta name="theme-color">Tints the address bar on Android and Safari, and the title bar of installed apps.The other small things that make a site look finished.