
To fix broken links, find every link that leads to an error page such as a 404, then update it to the right URL, redirect the old URL to a close replacement, or remove the link. The right choice depends on whether the page moved, changed or is gone for good.
This guide shows how to fix broken links from start to finish: how to find them with free tools, how to fix broken internal links and broken backlinks, and whether broken links really affect SEO. Google's own answer is more specific than most articles suggest.
What is a broken link?
A broken link, also called a broken hyperlink or dead link, is a link that points to a page that cannot be loaded. A common response is a 404 status code, which means the server could not find the page. Google's Page indexing report describes this status as a page that "returned a 404 error when requested".
In SEO, a broken link is a link whose destination cannot be reached as intended; a missing page is one possible cause. Here is a simple broken link example:
<a href="/blog/old-post-name">Read our guide</a>If /blog/old-post-name was deleted or renamed, this link now leads to a 404 broken link: an error page instead of the guide.
There are three kinds of broken links, and each is fixed in a different place:
| Type | Where the link sits | Who sees the error |
|---|---|---|
| Broken internal link | On your site, pointing to another page of yours | Your visitors |
| Broken external link | On your site, pointing to another website | Your visitors |
| Broken backlink | On another site, pointing to your page | Visitors coming from that site |

Do broken links affect SEO?
Less directly than many guides claim. Google says that expected 404 responses do not by themselves harm a site's overall indexing or ranking, and that a 404 is the right answer for a page you deleted with no replacement.
That does not make broken links harmless. Prioritize broken internal links, removed URLs that remain in a sitemap, and missing pages that still receive useful visits or external links. Google recommends assessing the page’s purpose and whether a relevant replacement exists.
Broken links matter in these cases:
- A visitor clicks a link and lands on an error page. They did not get what the link promised, and they are likely to leave.
- An important internal link breaks. People and crawlers may have trouble reaching a useful page; it can become an **orphan page** if no other internal links point to it.
- A page you want indexed returns 404, or a removed URL remains in your sitemap. Search Console reports it under the Not found (404) status.
- Another site links to a page of yours that now returns 404. Everyone who follows that link gets an error page.
The 404 itself is not a penalty. The cost is the lost visit, or the page nobody can reach.
What causes broken links?
- A page was deleted without a redirect.
- A URL or slug was changed, and the old links were not updated. See **how to choose a blog URL slug and when to change it**.
- A typo in the link's URL.
- A site migration or redesign that changed the URL structure.
- An external page was removed, or its domain expired.
- A link points to a draft, staging or private page.
How to find broken links
Use at least two methods. Search Console shows what Google found, and a crawler shows what is on your pages.
- Check Search Console. Open Indexing, then Pages, and look for the status Not found (404). Check whether each URL is linked internally, listed in a sitemap, or receives useful visits before deciding what to fix.
- Crawl your site. In Screaming Frog's SEO Spider, open the Response Codes tab and apply the Client Error (4xx) filter. Select a broken URL and open the Inlinks tab: the From column shows the page that holds the link, and To shows the broken URL. For a spreadsheet, use the Bulk Export menu and choose the Response Codes option for client errors with inlinks. The free version crawls up to 500 URLs.
- Check the real status code. Request the suspect URL and read the first line of the response:
curl -sI https://example.com/old-post-nameA missing page may return 404, but broken links can also involve other responses or connection failures. If an error-looking page returns 200, Google may classify it as a **soft 404 error**; check the content and response before choosing a fix.
- Look at your backlinks. To find broken backlinks, open a backlink tool such as Ahrefs or Semrush, list the pages that receive links, and filter for target URLs that return 404. Most tools have a report for this, but the name varies by tool.
| Method | Best for | Limit |
|---|---|---|
| Search Console | 404 URLs that Google found | Not a full list of the links on your pages |
| Crawler | Broken links found within the crawl, with the source page | Free version stops at 500 URLs |
| curl or browser DevTools | Confirming one URL's real status code | One URL at a time |
| Backlink tool | Broken backlinks | Needs an account with a backlink tool |
How to fix broken links
To fix broken links correctly, match the fix to what happened to the page.
| Situation | Fix | Status code |
|---|---|---|
| The page moved, or a close replacement exists | Redirect the old URL to the new page, then update links to the new URL | 301 |
| The link has a typo or points to an old URL | Correct the link | 200 on the right page |
| The page is gone and nothing replaces it | Remove the links to it and let the URL return a real 404 | 404 |
| An external page is gone | Replace it with a current source, or remove the link | Not applicable |
| People often mistype your URL | Redirect the misspelled URL to the correct page | 301 |

Google recommends a permanent server-side redirect whenever possible for a page that moved, and says the 301 and 308 status codes mean a page has moved permanently. If you are unsure which redirect to use, read **301 vs 302 redirects**.
Do not redirect every broken URL to your homepage. Google advises against redirecting 404s to the homepage and calls the result a soft 404, which makes it harder to understand your site's structure. The same advice says not to block 404 URLs with robots.txt. If you are unsure whether to use a block or a noindex tag, read **robots.txt vs noindex**.
Here is a permanent redirect in Apache and Nginx:
# Apache (.htaccess)
Redirect 301 /old-post-name/ https://example.com/new-post-name/
# Nginx
location = /old-post-name/ { return 301 https://example.com/new-post-name/; }How to fix broken internal links
- Export the broken links and the pages that hold them from your crawler.
- Decide for each URL, using the table above: redirect, correct, or remove.
- Edit the link on the source page so it points straight to the final URL. A redirect is a safety net, not the permanent fix.
- If the page was removed on purpose, delete the link or point it to a relevant page.
- Check that every important page still has links pointing to it. The **internal linking guide** shows how.
How to fix broken external links
- Search for the page's title. It may have moved to a new URL.
- If you find it, update the link. If you find a better current source for the same point, link to that one.
- If nothing replaces it, remove the link, and rewrite the sentence if it depended on that source.
How to find broken backlinks and fix them
A broken backlink is a link from another site to a URL of yours that now returns an error.
- Find the target URL in your backlink tool, as described above.
- If the page moved, add a 301 redirect from the old URL to the new page.
- If the page is gone but a close match exists, redirect to that closest page, not the homepage.
- If the link has a typo, redirect the misspelled URL to the correct page. Google suggests this for common misspellings.
- If the page was valuable, consider restoring it instead.
How to check that your fix worked
- Run the curl check on the old URL. You should see a 301 with the new location, and a 200 on the new URL.
- Crawl the site again and confirm that the broken-link list is shorter.
- In Search Console, open the Not found (404) issue and click Validate fix. Google says validation typically takes up to about two weeks, and in some cases much longer.
How to prevent broken links
- Plan a redirect when a page moves or has a genuinely relevant replacement. If no equivalent exists, a 404 or 410 can be appropriate.
- Keep URLs stable. Change a slug only when you have a good reason.
- Keep your sitemap to live pages. Only indexable URLs that return 200 belong in it. See the **XML sitemap checklist**.
- Test links before you publish. Click every link in a new post.
- Crawl your site regularly. Add it to your **technical SEO checklist**, and recheck older posts for outgoing links that have died.
Frequently asked questions
What are broken links in SEO?
Links that lead to a page that cannot be loaded, usually because it returns a 404. They can sit on your site (internal or external) or on other sites pointing to yours (backlinks).
Do broken links affect SEO?
Google says expected 404 responses do not by themselves harm a site’s overall indexing or ranking. Broken links still matter when they hurt visitors, cut off a page that should rank, or involve URLs in your sitemap.
How do I find broken links on my website?
Check the Not Found (404) status in Search Console, then crawl the site with a tool such as Screaming Frog to find broken links within the crawl and the pages they sit on.
How do I fix a broken link?
Update it if the URL changed, redirect the old URL with a 301 if the page moved, or remove the link if the page is gone for good.
How do I repair broken links in bulk?
Export the list from your crawler, group the URLs by fix, and add the redirects in one place, such as your server configuration or your CMS redirect tool.
What is the difference between a 404 and a soft 404?
A 404 returns the real status code for a missing page. A soft 404 can occur when a missing or empty page returns a successful response and Google treats it as missing. See the soft 404 guide discussed above.
What is broken link building in SEO?
It is an outreach tactic: you find a broken link on another website and suggest your own page as the replacement. It is different from fixing the broken links on your own site.
How often should I check for broken links?
Monthly is a sensible routine, and after every migration, redesign, or large content cleanup.



