myfavicon

How to add a favicon to your website

Last updated: 18 September 2026

Adding a favicon takes two steps: create the icon file, then link it in your HTML. This guide walks through both, for static sites and modern frameworks.

Create a favicon free →

Step 1 — Create your favicon

Start from a square image of at least 512×512 px. Our free favicon generator converts it to ICO and PNG in all standard sizes, locally in your browser. If you are unsure which format to use, read ICO vs PNG.

Step 2 — Upload the files

Put the generated files in the root of your website (so they are reachable at https://your-site.com/favicon.ico). Keep at least:

Step 3 — Add the link tags to your <head>
<link rel="icon" href="/favicon.ico" sizes="any">
<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" href="/apple-touch-icon.png">
<link rel="manifest" href="/site.webmanifest">
Step 4 — Hard refresh

Browsers cache favicons aggressively. Press Ctrl+F5 (Windows) or Cmd+Shift+R (Mac), or open the site in a private window, to see the new icon.

Framework notes

Why does my favicon not show up?

Most often it is caching. Otherwise check: the file is in the site root, the path in the <link> is correct, and the file is a valid ICO/PNG. Our FAQ covers more troubleshooting.

Generate your favicon now →

Related guides