Broken link
A broken link is a hyperlink that no longer reaches what it promised. The server answers 404 Not Found or 410 Gone, the domain no longer resolves, the request times out, or the page loads without the section the link pointed at. Broken links occur between pages of one site, to other sites, and in the images and scripts a page loads.
The longer version
A broken link fails in one of a few recognisable ways, and the way decides the fix. The server answers 404 Not Found, the commonest kind, when nothing exists at the address, or 410 Gone when the content was removed on purpose. A 5xx status means the server itself failed, which may be temporary. For a link to another site, the domain may no longer resolve in DNS, or the request may time out. Two kinds escape a check that reads status codes alone. A soft 404 is a page that says it cannot be found, or is empty, while the server answers 200 OK. A broken anchor is a link to a fragment such as #delivery on a page that no longer has an element with that id, so the page loads and the browser stays at the top. Links also break inside a page: an image, a stylesheet or a script that fails to load shows as a missing picture or an unstyled layout, and as a failed request in the console.
Google Search Central documents how its crawler treats these codes. Every 4xx status except 429 is handled the same way: the URL is removed from the index if it was indexed, and Google crawls it less often over time. A Search Central post of May 2011, Do 404s hurt my site?, says that URLs returning 404 do not, by that fact alone, count against a site in search, and that a page removed on purpose should return 404 or 410. Several of the pages that rank for the term warn of Google penalties, and Google's own documentation describes nothing of the kind. The real cost lands elsewhere. A visitor who follows a link from a search result, a newsletter or another site and reaches a dead end usually leaves, and the value of links other sites made to a page that moved is lost unless the old address redirects. The soft 404 is the case Google does treat as a problem, since such pages are left out of search, and the same post names redirecting every unknown URL to the home page as one.
Broken links are found three ways. A link checker or site crawler requests every link on every page and lists each failure with the page that holds it, which is the list a team works from. The Page indexing report in Google Search Console lists the URLs Google found as not found or as soft 404. The server's own 404 log shows which missing addresses real visitors asked for, including links from other sites that a crawl of the site's own pages never sees. Anchors need a checker that tests fragment identifiers, because the status code is 200. The fix follows Google's soft 404 guidance. Content that moved gets a 301 redirect from the old address to the new one, in a single hop. Content that is gone with nothing to replace it answers 404 or 410, and the links to it are removed. An internal link with a typo is corrected in the page that holds it, since a redirect would only hide the mistake. A link to another site is updated to that page's new address, replaced with another source, or removed. Then the crawl runs again to confirm the list is empty.
On a website project broken links cluster around two moments: a launch or redesign, when URLs change wholesale, and the slow decay of links to other sites afterwards, often called link rot. The website launch and redesign checklists in the Notarus templates map every old URL to a new one or to a deliberate 404, with a 410 also allowed in the redesign checklist, and make each redirect a 301 with no chain longer than one hop, and the redesign checklist has a named owner read the 404 log for a set period after launch. A report of one broken link gives the page it was found on, the link text or the element it sits in, the address it points to, what happened when it was followed, with the status code or the page that loaded, and the browser and the date. With those a developer can tell a typo from a moved page from a site that has gone, and fix the right thing.
Common questions
What does it mean for a link to be broken?
A link is broken when following it does not reach the content it promised. The server may answer 404 Not Found or 410 Gone, the domain may no longer exist, the request may time out, or the page may load without the section the link pointed at. Each of these leaves the visitor at a dead end, whatever the cause.
Do broken links hurt SEO?
Google's answer, in the 2011 Search Central post Do 404s hurt my site?, is that URLs returning 404 do not by that fact alone count against a site or change how its other URLs perform. The costs are indirect: visitors who give up, the value of links other sites made to a page that moved, and soft 404s, which Google leaves out of search.
How do I check my website for broken links?
Run a link checker or crawler over the whole site, which requests every link it finds and lists each failure with the page it sits on. Then read the Page indexing report in Google Search Console for URLs reported as not found or soft 404, and the server's 404 log for addresses real visitors asked for. Anchor links need a checker that also tests fragment identifiers.
How do you fix a broken link?
Correct the link in the page that holds it wherever you can. When the destination moved, add a 301 redirect from the old address to the new one, in a single hop. When the content is gone and nothing replaces it, let the old address return 404 or 410 and remove the links to it. For a link to another site, update it to the new address, replace it or remove it.
Should a broken link redirect to the home page?
Redirecting every missing URL to the home page is one of the cases Google's 2011 post describes as a soft 404, because the visitor asked for something specific and gets something else. Redirect only to a page that does the same job, and let content that is gone answer 404 or 410. A helpful custom 404 page can still be served with the 404 status code.
What is the difference between a 404 and a soft 404?
A 404 is a status code: the server says the page does not exist. A soft 404 is a page that says it does not exist, or is empty, while the server answers 200 OK. Google Search Central asks for a 404 or 410 when content is gone and a 301 when it moved, because a soft 404 looks like a working page that is not.
What is the difference between an internal and an external broken link?
An internal broken link points to another page on the same site, so the team that owns the site can fix the link or restore the page. An external broken link points to another site, which may have moved, renamed or deleted the page. Only the link itself can then be changed: updated to the new address, replaced with another source or removed.
Is a 410 better than a 404 for a removed page?
Google Search Central treats every 4xx status except 429 the same way, and its 2011 post says Google treats 410 Gone like 404 Not Found, so the choice does not matter to Google. A 410 still tells other clients that the removal was deliberate and permanent, which is accurate when a page was retired on purpose.
Bug reports that arrive ready to triage.
Collect replay, console, network and browser context with the Free plan.