A favicon can be broken in two completely different places, and only one of them is visible from the HTML. The declaration in your head can be wrong: a missing size, the wrong kind of tag. Or the declaration can be perfect while the file it points to is gone: moved in a redesign, renamed, never uploaded. A checker catches the first kind in seconds. The second produces no error anywhere, because browsers treat a missing favicon as a shrug and show a default instead.
This guide splits the mistakes along that line: the Favicon Link Checker for the half it can see, a short manual habit for the half it cannot.
Contents
- Quick answer
- Two kinds of favicon mistakes
- Declaration mistakes a checker exposes
- Path and file mistakes no checker can see
- How to audit both halves, step by step
- Worked example: the declaration that lied
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
- References
Quick answer
Run both halves of the check. Paste your head HTML into the Favicon Link Checker: it lists each icon declaration with its rel, sizes and href, and flags the missing standard ones, exposing declaration mistakes such as a missing 32x32 PNG or a mask-icon standing where a tab icon should be. Then, because the checker reads declarations only and never requests the files, open every href yourself and confirm an icon actually loads. A clean report plus a dead href is still a broken favicon.
Two kinds of favicon mistakes
An icon reaches the browser in two steps. First, the HTML declares it: a <link> tag states the icon's role (rel), its size (sizes) and its address (href). Second, the browser follows that address to the file.
A mistake in step one is a declaration mistake, fully visible in the HTML. A mistake in step two is a file mistake, and the HTML looks flawless while it happens. The two need different tools: the declaration half yields to a checker, the file half only to actually requesting the file.
Declaration mistakes a checker exposes
These are the errors sitting in plain sight in your head:
- A missing standard size. The head declares an ICO and a touch icon but no 16x16 or 32x32 PNG. The checker lists what is present and names what is absent, so the gap is a line in a report, not a suspicion.
- A mask-icon mistaken for the tab icon. The
mask-iconis the Safari pinned-tab icon, a separate declaration with a different job. A head that has one and no ordinary icon has a gap the owner often believes is covered. - An SVG without sizes="any". An SVG icon scales to any size, but only if the declaration says so. Without
sizes="any", the 16 and 32 sizes stay flagged as missing, because nothing told the browser the file covers them.
Each is a fact about the text of your HTML, which is why a declaration check settles them completely.
Path and file mistakes no checker can see
These are the errors that survive a clean report:
- The href points at the old folder. A redesign moves assets from
/images/to/assets/, the files move with it, and the head still points at the old path. The declaration is well formed. The file is simply not there. - The file was never uploaded. The icon exists in the project folder and the local preview, and it never made it into the build or the deployment.
- The name drifted. The file on the server is
favicon-32.pngand the href saysfavicon-32x32.png. One character of difference, one quiet 404.
None of these looks unusual in the HTML, and a declaration checker has no way to know. The browser knows but does not complain: it falls back to a default icon, and the owner may never notice.
How to audit both halves, step by step
- Copy your page's head HTML from the page source or developer tools.
- Paste it into the Favicon Link Checker and read the two lists: declarations found, each with rel, sizes and href, and standard declarations missing.
- Fix the declaration gaps: add the missing sizes, correct any tag doing the wrong job, add
sizes="any"to an SVG icon. - Now audit the files. Take each href from the report, resolve it against your domain, and open it in a browser tab.
- Confirm each address returns the icon itself, not a 404 or an HTML error page served with a success status. If one fails, check the path against the real folder and the filename character by character.
- Open your web app manifest as well. The 192 and 512 icons live there, and each path deserves the same open-it-yourself test.
Worked example: the declaration that lied
Consider a common report: a favicon.ico and an apple-touch-icon at 180, giving "2 icon declarations found", with the 16x16 PNG, 32x32 PNG and the 192/512 manifest icons missing. Three gaps are now facts instead of guesses.
But suppose the owner fixes the gaps, re-runs the check, and gets a clean list, while the touch icon's href still reads /images/apple-touch-icon.png and the redesign moved every image to /assets/ months ago. The declaration check is satisfied. The shortcut still falls back to a screenshot, because the file at that address returns a 404. Only step 4, opening the href, catches it. The two halves are not a thorough version and a quick version: they check different things, and each misses exactly what the other catches.
Limitations and honest tradeoffs
The checker reads declarations in pasted HTML. It cannot confirm that a referenced file exists, cannot render an icon, and cannot see the manifest icons at 192 and 512, declared outside the HTML. Nothing here should be read as the checker validating files: it does not, and any workflow built on that assumption will pass broken icons.
The manual half has its own limit: opening an href confirms the file answers today. It does not prove the icon looks right at small sizes, and it does not monitor the path after the next deployment. The audit is a habit to repeat after redesigns and migrations, not a one-time certificate.
Common mistakes
- Trusting a clean declaration report as a finished audit. It covers the HTML half only. The files still need opening, one by one.
- Testing the icon on the homepage only. A landing page or checkout on a second template can carry an older head with older paths.
- Relative paths that resolve differently than expected. An href like
images/favicon.pngresolves relative to the page's address, so it can work on the homepage and 404 on a nested page. Root-relative paths starting with/remove the ambiguity. - Forgetting the manifest icons entirely. Invisible to an HTML check, they are the easiest to leave pointing at a folder that no longer exists.
- Renaming files during cleanup without touching the head. Every rename is a path change, and the declaration does not follow the file on its own.
FAQs
Can a favicon checker tell me if my icon file is missing? No. The checker inspects the declarations in the HTML you paste and lists each tag with its rel, sizes and href, plus the standard declarations that are absent. It never requests the file, so a declaration pointing at a deleted or never-uploaded file looks exactly like a healthy one. Open the href yourself to find out.
Why does my favicon work locally but not on the live site? Usually the path or the upload: the href points at a folder that exists on your machine but not the server, or the file never made it into the deployment. Browsers fall back quietly to a default icon, so nothing reports the 404 unless you request the icon address directly.
What declaration mistakes can a checker actually catch? Missing standard sizes such as a 16x16 or 32x32 PNG, a mask-icon declared in place of the tab icon it is not, and an SVG icon without sizes="any", which leaves the 16 and 32 sizes flagged as missing even though an SVG is declared.
Do the 192 and 512 icons show up in a declaration check? No. Those sizes are declared in the web app manifest, not in the HTML, so an HTML check cannot count them. A complete audit opens the manifest separately and confirms the icons are declared there and their files exist.
What is the fastest reliable way to audit my favicon links? Two passes. Paste your head HTML into the checker and fix every declaration gap it lists. Then open each href from the report in a browser and confirm an icon file loads rather than a 404 page. The first pass takes a minute, the second a minute more.
Conclusion
Favicon failures split cleanly in two: declarations a checker can read, and files it cannot. Use the Favicon Link Checker to make the first half a fact, then open every href yourself to settle the second, and repeat both after any redesign. For the declaration most often missing from the first list, our explainer on the apple-touch-icon covers what it does and why its size is 180. More guides in this series live in our Website and Webmaster Tools guides.
References
- MDN Web Docs, on the link element, icon relationships and the manifest: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link
- web.dev (Google), on adding a favicon to your site: https://web.dev/articles/add-a-favicon