How to make a favicon
The little icon in a browser tab is a favicon, and getting it right means producing several sizes, not just one. This guide shows which sizes you need, how to generate them from a single image, and the HTML to drop in.
The fastest way
Upload a square image to the Favicon Generator and it produces the icon set browsers expect. Read on for how to prepare the source and wire it up.
Start with a square, high-contrast image
Begin from a square image of at least 512×512 so it stays sharp when scaled down. Keep the artwork simple and high-contrast — fine detail vanishes at 16×16. If your source isn't square or is too small, resize and crop it first with Resize Image.
The sizes you actually need
- 16×16 and 32×32 — the classic browser-tab favicon.
- 180×180 — the apple-touch-icon for iOS home screens.
- 192×192 and 512×512 — Android and PWA install icons.
Adding it to your page
Place the generated files at your site root and reference them in the
<head>:
<link rel="icon" href="/favicon.ico" sizes="any">
<link rel="icon" type="image/png" href="/favicon-32x32.png">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
A note on privacy
The Favicon Generator builds every size in your browser, so your source image is never uploaded to a server.