Do broken links hurt your SEO?
Not as a penalty. Google wrote in 2011 that a 404 on some URLs "does not affect how your site's other URLs … perform in our search results."
Your own links do matter, because Google finds new pages through links. One that ends in a 404 leads Google and your visitor nowhere, so fix those first.
Step 1: crawl your own links
A crawler follows every link on your site and lists the ones that end in an error (how a crawl of your own site works). Screaming Frog's SEO Spider is free up to 500 URLs:
- Enter your homepage and click Start.
- Open the Response Codes tab and pick the filters Internal and Client Error (4xx).
- Click a URL, then the Inlinks tab: "From" is the page with the link.
- For the whole list: Bulk Export > Response Codes > Internal > Client Error (4xx) Inlinks.
My one broken internal link came down to one character: a "contact" link written as a/contact instead of /contact, so the browser went to /seo/a/contact, a 404.
MarketingTracer's SEO audit runs this check on every site you look after. Under Issues, "Links to a page that does not exist" lists the pages that have it; export them as a CSV or use "Copy as task". On each page's Links tab, the filter Broken draws every broken link in red. A 401, 403 or 429 counts as a blocked scan, so a firewall doesn't fill the list. It only checks links between your own pages.

Demo account, sample data.
Step 2: check where your outbound links land
My old articles linked to 106 addresses on other sites: 5 were dead, 23 redirected and 4 refused the checker. The table shows one of each kind:
| What happened | Example | Checker says | What to do |
|---|---|---|---|
| Domain gone | compressio.io no longer resolves | broken (no answer) | Find its new home, or remove it |
| Page deleted | a 2017 tweet by John Mueller | broken (404) | Quote it from another source |
| Redirect to a general page | Think with Google's mobile speed study, now business.google.com/think | fine (200) | Find the study elsewhere, or drop the claim |
| Domain taken over | an old HTTP/2 test tool, now an unrelated site (removed before the check) | fine (200) | Take the link out the same day |
| Bot wall | gtmetrix.com | broken (403) | Open it in a browser; it usually works |
Some flags aren't broken. Bot walls answer 401, 403 or 429. Slow servers time out: calendar.perfplanet.com answered on the second try.
A dead link to another site is just untidy. One that lands on a completely different site is worse, and no checker will find it. The taken-over domain sent anyone who clicked from my article to a stranger's site, and the link came out the day it was found. Three of the 23 redirects ended on a general page or a different article, and only opening the final address shows it. So whenever I update an old article, I click every link.
Step 3: find the links from other sites
In Search Console, Indexing > Pages > Not found (404) lists the URLs that answered 404 to Google in the past month. Inspect one for its Referring page, "a page that Google possibly used to discover this URL". It may sit further up the chain, so it doesn't always contain the link. Ignore URLs your site never had, unless one is a typo in a real link (step 4).

My own site, corewebvitals.io, in Search Console.
GA4 shows which broken URLs people still land on: build an exploration with Page path and screen class and Page referrer, filtered on your 404 page's title. A referrer on another site is a link worth a 301. If your 404 page has no title of its own, a Tag Manager event on its template does the same.
Step 4: fix each link
Your own link: point it at the final address, so it skips the redirect.
A page that moved: 301 the old URL to the new one. A typo in someone else's link to you gets one too (Google's example: /awsome to /awesome).
A page that is gone: remove your links to it and let the URL answer 404 or 410, never a redirect to your homepage.
For a dead outbound link, search the page's title first. Google's own documentation moved from developers.google.com/web to web.dev and on to developer.chrome.com, and six of my old links still take that detour. Gone for good? Link another source or drop the claim. When someone else's dead page still shows in Google, anyone can ask for an update with Refresh Outdated Content.
Then crawl again: the list from step 1 should be empty. For a redirect, open the old address: it should land on the new one.