How to Find and Fix Broken Links on Your Website


If you have a website, I'm sure you’ve put a lot of hard work and long hours into making it a valuable resource for your visitors. But if your links aren't working, it can derail all of your hard work. Broken links on your website can be harmful in two ways:

  • They make for a bad user experience – When users click on links and reach dead-end 404 errors, they get frustrated and may never return.
  • They devalue your SEO efforts – Broken links restrict the flow of link equity throughout your site, which impacts rankings negatively.

To avoid these potential pitfalls, you should periodically check for broken links on your entire website. If you’re wondering how to do this, you’re not alone. The good news is we’ve done this work before and we’ve documented everything in a step-by-step, easy-to-follow process, which we hope you find helpful. So here is a comprehensive guide to helping you find and fix broken links across your website.

Step 1: Find broken links

There are a number of tools you can use to identify broken links, many of them free.

  • Google Analytics

Google Analytics is a great free tool for tracking website performance, and it’s also helpful for easily finding broken links. First, log into your Google Analytics account and set the evaluation period for the amount of time you want to look at. If you check for broken links monthly, set the period for the month since your last check. Here I will use the WordStream account as an example, with the time period set for April 1, 2010 – April 30, 2010 on the dashboard.
Find broken links on Google Analytics Free
Go to Content – Content by Title on the dashboard, and load the page. Create a filter at the bottom by typing in the title of your website’s 404 error page in the blank box after “Filter Page Title: Containing”. The title of WordStream’s 404 error page reads: “Sorry, there's been an error and this page may not exist. Don't leave though!”
Find broken links free 
All kinds of nonexistent or broken links will trigger the 404 error page. Most websites do little with this page, frustrating site visitors. But at WordStream, we optimize the page to take advantage of this valuable piece of real estate: internal links to important pages are listed right below the error, along with a “Contact Us” form.
Broken links error page 
The next step is to click the “Go” button on the Google Analytics filter page. Then click on the page title to view details. In our example, the WordStream 404 error page was visited 126 times via 79 pages between April 1 and April 30. For easier navigation, you can change the rows shown per page from 10 to 100 (to see all 79 rows) at the bottom right.

Google Analytics offers the ability to set email alerts to get these broken link reports on a regular basis, as well as to export broken link details.
Broken links report 
Remember that redirecting and fixing broken links is an ongoing process. For the average website, once per month is an appropriate cycle.

  • Xenu

Another free tool we recommend is Xenu Link Sleuth. After you've installed the Xenu software and opened the tool, go to File – Check URL, and enter your website’s domain. Uncheck the box named “check external links”, and click “OK” to run the analysis. Note that if it’s the first time you’ve used Xenu, it can take a little while to complete the report. So be patient.

Find broken links software

Step 2: Create a report and track your changes

After identifying your broken links, create an Excel spreadsheet to track link redirect processes. Name it something like “Broken Link Redirect Report.” In Google Analytics, you can export the report you just created by clicking Export – CSV for Excel on the top of the page, and downloading the file. For our purposes, we only need the data on broken links, page views and unique page views, so copy and paste these data columns into the Excel spreadsheet you have created.

You can export data from Xenu too; click on File, then Export to Tab Separated File, and then open that text file with Excel.

Next, organize the main data from Google Analytics and Xenu into separate sections on your Excel spreadsheet. It will look similar to this:

Broken Link Redirect Report

Step 3: Analyze data and decide which pages should be redirected

After all the preparation, we come to the important stage. Both Google Analytics and Xenu give us a list of links that may be broken. But before actually redirecting them, you should first analyze the pages and the reasons they may not be working properly.

From the Google Analytics section of the short sample above, we can see that not all broken links are created equal. Some links are actually visited quite often while others are not. Many instances of broken links or visits to a stray URL occur only once. These URLs may be a product of human error or someone mistyping an incorrect URL into the address bar and may not be worth fixing, like links #7 and #8. However, broken links with multiple visits are probably worth the time and effort to fix as they show a trend (even if it is one of human error).

Also, for some links, we can easily figure out the correct URL and fill in the data in the spreadsheet; for other links, we can put a tentative URL there and highlight it with a different color; and for the rest of the links, we can redirect to the domain homepage. In conclusion, we will only redirect the links with many visits and those with an underlying error-causing rule.

The Xenu report has the advantage of not displaying URLs that were recorded in your analytics because of a typing error. All the links shown in Xenu are actually existing links that live on the site. But these URLs may still contain character errors. For example, links #4 and #5 are caused the by the same problem: “#” is replaced by “%2523.” When we identify these instances, we need to determine the cause and fix the same problem across all instances.

This step will be complete once you’ve located the links that need to be redirected and  documented them all in your Broken Link Redirect Report.

Step 4: Redirect in CMS

Finally, it's time to actually redirect the broken links in your content management system (CMS). I will use WordStream’s Drupal CMS as an example.

Go to Administration – Site building – URL redirects. Click “Add redirect”. Fill in the “From” and “To” blanks by copying and pasting from the final Broken Link Redirect Report. Pay attention to the link format during the process. Select “301 Moved Permanently” in the drop-down Redirect Type menu. Click “Create new redirect”.

Fix broken links redirect
Repeat the above process to redirect all the broken links and update the Broken Link Redirect Report.

Mission accomplished! Now you can have even more pride for your website because ALL your links work, making both users and the search engines happy!


Find out how you're REALLY doing in AdWords!

Watch the video below on our Free AdWords Grader:

Visit the AdWords Grader.


Bruno Hug
Jun 02, 2010

Great article, it's really useful especially for analytics. One little issue with Xenu, it uses a lot a bandwith and CPU if the settings are set to high, and might overload/slow a server. I can also recommand "Broken link checker" is the site is under Wordpress

Jun 02, 2010

Nothing makes me leave a site faster than 2 or 3 broken links in a row.

Showing a new way to use Google Analytics is great! There are so many uses for it, it's hard to know everything about it.

Thanks for the tips, very helpful.

seo tool « Эхо блогосферы
Jun 02, 2010

[...] Yue пишет: They devalue your SEO efforts – Broken links restrict the flow of link equity throughout your site, which impacts rankings negatively. To avoid these potential pitfalls, you should periodically check for broken links on your entire website. … Google Analytics is a great free tool for tracking website performance, and it’s also helpful for easily finding broken links. First, log into your Google Analytics account and set the evaluation period for the amount of time you … [...]

Jun 03, 2010

I suggest add step 5: check your site log, such as awstats. ^^

Master Resale Rights Ebook Store
Jun 03, 2010

I did not know you could use the filters in Google to quickly find the pages with broken links. This is great and beats the process I have used in the past. My time is reduced by at least an hour now. No need to scrape then build a report.

How to Optimize Your Website for Bing | iStrategy 2010
Jun 09, 2010

[...] Bing specifies in its Webmaster Center that it may not be able to index websites with broken links effectively. If it can’t index your site effectively, then your content might not appear in the Bing results for your SEO keywords. (Check out this recent post for tips on finding and fixing broken links.) [...]

How to Fix Broken Links
Jul 22, 2010

[...] How to Find and Fix Broken Links on Your Website | WordStream [...]

Sep 13, 2010

I think webmaster tools has this option aswell to check website links. But your right there are many free options out there.

links for 2010-11-17 | the reX-Files
Nov 17, 2010

[...] How to Find and Fix Broken Links on Your Website | WordStream Very useful in Google Analytics. (tags: analytics) This entry was posted in Bookmarked. Bookmark the permalink. ← Emotional, Understated, Progressive, Relaxed [...]

couples exercises
Apr 13, 2017

I do not know if it's just me or if perhaps everybocy else encountering problems with your site.
It seems like some of the writyen text on your contenbt are running off
tthe screen. Can someone else please provide feedback
and let me knoow if thius iss happening too them as well?
This may be a issue with my internet browser because I've hhad
this happen previously. Kudos

Apple Boy
May 11, 2012

That was so helpful. really need this to fix some issues on my site.P/S i really like your comment box

May 16, 2012

I think I am the only one not understanding what is going on. Xenu gave me 0 broken links whilst megrisoft showed me this long list of bad links.what is the next step of actually trying to fix it after seeing the report? My blog goes blank white if I dare activate google analytics or even broken link checker!Please help. 

Jason Todd
Sep 11, 2016

Thank you very much for this article. It helped me out alot. I am new at maintaining websites, and keep getting error 404's.

Your the best. Thank you again

Zubair Ahmed
May 18, 2012

Thanks for the post. Being a Webmaster I know hotn important it is to fix broken links. Not only it will provide a bad user experience but also it affects the overall performance. Thanks alot for the tip

Nov 21, 2012

nice and informative  blog but i don't know about the wordstream account.Plz snd me  details about it.

sagar nandwani
Nov 12, 2013

Nice share Broken links can hurt our blogs,hence we should regularly check our blogs for broken links.I use the link sleuth tool and it works really well for me. I’ve fixed a lot of broken links for my blog with this tool.Thanks for sharing the information.

Vin Dicarlo
Jan 15, 2014

Really great tips to find broken links. Anyway, I have used BLC (Broken Link Checker) WordPress Plugin which automatically find and fix all the broken links even external or redirected links.

Jessi Sharon
May 18, 2015

Wow…thank you for this awesome post on broken links. It really shows your immense knowledge and research on this topic. Please keep sharing....!

May 22, 2015

This should help me clean up my SEO efforts and make it work for me a bit better. And stay away from Google penalties. Thanks for sharing this info with us!
May 26, 2016

thanks for this article this is what im need for my site, thanks

Jul 12, 2016

Thank you. One broken link was really bothering me so I got it fixed.

Dec 03, 2016

Very helpful suggestions and recommended for all.I am going to be a regular user of here.thanks.

Flyin DVB
Feb 15, 2017

Thank you very helpful in fixing the problems on my blog. And I writte as well about How to fix error link on sites Hopefully helpful.

Mar 04, 2017

Great article! Its really helpful.

Mar 05, 2017

Great article on how to fix broken links found here.
Its very helpful for me.
Thank U

Mar 07, 2017

I am extremely sorry to tell this. I can't understand after exporting what i have to do for redirection purpose. I am having the exported data as csv file. Then what i have to do????

Alena Sham
Jul 03, 2017

Your website must provide a clear message
with a goal-oriented direction, setting you apart from the
competition. She invites you to visit her site where she'll share a proven approach to
start an business online. " The company sees innovation as among its core organizational competencies.

yashdeep vitthalani
Jul 21, 2017

very informative
now easy to find broken links and fix it
thanks for the wonderful information

Leave a comment