How to find broken links on your own site
A broken link is one that no longer leads where it should. Wikipedia says it usually leads to a 404 Not Found message.1 You can find these by hand, with Google's Search Console, or with a link-checking tool. Each one catches something the others miss.
Why links break
Pages don't have to be deleted for a link to fail. Wikipedia lists several causes, and two are the restructuring of websites that causes changes in URLs, and the expiration of a domain name registration.1
That second one affects links to other people's sites. You can do nothing about it, but you can notice it.
MDN says the number of broken links, internal and external, should be minimised to prevent frustration for readers.2
Method one: click through by hand
On a small site, this is a fair start. Open your most visited pages, such as the home page, services, contact and any page with many links. Click every link. Note any that show an error or land on a page that's clearly wrong.
It's slow, and it's easy to skip a link. But it shows you what a visitor actually sees. A tool can't tell you that a link lands on the wrong page.
Method two: Search Console
Search Console is a free service from Google that reports how Google sees your site. Its Page indexing report can list pages marked "Not found (404)."3
Google describes that status this way. The page returned a 404 error when requested. Google might have discovered the address as a link from another page, or possibly the page existed before and was deleted.3
So the report can include addresses you didn't know were linked, such as a link on another website. That's useful. Treat each as a clue to follow up, not as proof that something on your own pages is wrong.
Search Console only shows what Google has found, so it won't replace a check of your own.
Method three: a link checker
A link checker is a tool that visits your pages and tests every link it finds. Wikipedia says a number of tools exist that crawl through a website to find pages that return 404 status codes.4 There are plug-ins for some content management systems too, and standalone checkers.1
Two limits are worth knowing.
- The tools only find links within one particular website. They ignore 404s that come from links on other websites.4
- Automatic checking may not detect a link that returns a soft 404, or one that returns a 200 OK response but points to content that has changed.1
A soft 404 is a "not found" page that falsely reports the page loaded properly.4 The page on soft 404 errors covers that in detail.
A link checker needs only your public web address. If a tool asks for a password, a hosting login or a registrar login, don't give it. You don't need to.
How often to check
Links keep failing over time. Wikipedia quotes a Pew Research finding that in 2023, 38% of pages from 2013 went missing.1 That figure is about the wider web, not your site, but it shows why one check isn't enough.
A sensible habit is to check after any change to page addresses, and now and then otherwise. How often is up to you.
What to do with your list
Sort what you find into two piles. In the first pile are links on your own pages that point to somewhere broken. In the second are links from other places to a page of yours that's moved or gone.
Each pile has a different fix. Fixing a broken link goes through them one by one.
Reference list
- Link rot, Wikipedia
- 404 Not Found, MDN Web Docs (Mozilla)
- Page indexing report, Google Search Console Help
- HTTP 404, Wikipedia