How to import an XML Sitemap into Excel?

An XML sitemap is a file that lists all the pages of a website and provides essential information to search engines about the structure and hierarchy of the site’s content. This article will discuss XML Sitemaps and How to import an XML Sitemap into Excel. While XML sitemaps are essential for SEO, they can also be valuable for website owners who want to analyse their site’s content and structure.

How to import an XML Sitemap into Excel?

One way to analyse and manipulate XML sitemap data is by importing it into Microsoft Excel, a powerful tool for data analysis and visualisation. In this article, we’ll explain how to import XML sitemaps into Excel and explore how you can use Excel to gain insights into your website’s content and structure.

Step 1: Export the XML sitemap

Before you can import an XML sitemap into Excel, you’ll need to export the sitemap from your website. Most content management systems (CMS) have built-in tools for generating XML sitemaps, or you can use a third-party tool to create one. Once you’ve generated the XML sitemap, save it to your computer.

eg: If you are using WordPress CMS, You can follow this article on exporting an XML sitemap from WordPress

Step 2: How to import an XML Sitemap into Excel Spreadsheet

Image credits: Microsoft
  1. Open a new Excel workbook
  2. Select the Data tab in the ribbon
  3. Click on the From Other Sources dropdown menu
  4. Select From XML Data Import
  5. Navigate to the location of your XML file and select it
  6. Follow the prompts in the XML Source task pane to import your data
  7. Select the table format you want for your data in the Import Data dialog box
  8. Click OK to import your data as an Excel table

Step 3: Manipulate and analyze the data

Once you’ve imported the XML sitemap into Excel, you can use Excel’s tools to manipulate and analyze the data. Here are some ideas for how to use Excel to gain insights into your website’s content and structure:

  1. Filter and sort the data: Use Excel’s filtering and sorting tools to quickly find specific pages or sections of your website. For example, you could filter by page title to find all pages related to a specific topic, or sort by page depth to see which pages are the most deeply nested within your site’s hierarchy.
  2. Visualize the data: Use Excel’s charting and graphing tools to create visualizations of your site’s content and structure. For example, you could create a pie chart showing the distribution of pages across different sections of your site, or a bar chart showing the number of pages at each level of the site’s hierarchy.
  3. Identify missing pages: Use Excel’s conditional formatting tools to highlight pages that are missing from the sitemap. This can help you identify pages that are not properly linked within your site, which can affect your site’s SEO.
  4. Analyze page attributes: If your XML sitemap includes metadata about each page (such as title, description, and keywords), you can use Excel to analyze and compare these attributes. For example, you could create a pivot table showing the most common keywords across all pages, or use Excel’s text analysis tools to identify trends in page titles and descriptions.


Importing XML sitemaps into Excel can be a powerful way to analyze and visualize your website’s content and structure. By using Excel’s filtering, sorting, charting, and text analysis tools, you can gain valuable insights into your site’s hierarchy, identify missing pages, and analyze page attributes. Whether you’re a website owner or an SEO professional, importing XML sitemaps into Excel can help you make data-driven decisions about your website’s content and structure. After importing if you want to validate the URLs and find if any of them are throwing 404,500 errors etc – Have a look at Excel URL Validator. The tool can batch-process, find invalid links in excel and provide clean reports.

excel url checker