Skip to main content
← All guides

5 min read

Sitemap to Excel: bulk-edit an XML sitemap

By Quentin Delepierre, Salesforce Commerce Cloud consultant

An XML sitemap lists every URL on your site with its metadata (lastmod, changefreq, priority). Fixing it by hand becomes unmanageable past a few hundred URLs. Here's how to go from sitemap to Excel: it becomes an Excel (.xlsx) file, one row per URL, that you edit before rebuilding a valid sitemap for Google Search Console.

Got your own XML? Drop it in and see it as a table, free and with no account. For an Excel file you can edit and then rebuild into an XML that keeps its structure, a free account is all you need.

Transform a file

Simple Excel table, free with no account, for files up to 1 MB. File that rebuilds into XML: free account, 3 free credits, no credit card.

Download an example result (.xlsx)Example source XML

How can I open an XML sitemap in Excel and edit the URLs in bulk?

Drop your sitemap.xml on ExcelifyXML and choose the Excel file (.xlsx): each URL becomes a row, with loc, lastmod, changefreq and priority columns. Edit, sort, filter or delete rows in Excel, LibreOffice, Google Sheets or Numbers, then drop the saved file on the Rebuild page: you get a valid XML sitemap, ready to submit to Search Console. The preview is free and the transformation costs 1 credit. Excel can also read a sitemap on its own with Power Query, but it can't write XML: without the reconstruction, there is no way back to the sitemap.

When do you need to edit a sitemap?

A sitemap follows a strict format: one <url> tag per page, containing <loc>, and optionally <lastmod>, <changefreq> and <priority>. A single malformed tag and Google rejects the whole file.

You often need to touch it: refresh dates after a redesign, remove hundreds of stale URLs after a migration, tune priorities by page type, or merge several sitemaps. All of these are trivial in a spreadsheet and painful by hand.

What are the steps to edit an XML sitemap in Excel?

  1. Drop your sitemap.xml file on the ExcelifyXML Upload page. The free preview shows one row per url tag and the number of URLs: confirm (1 credit), then choose the Excel file (.xlsx) — or the CSV.
  2. Each URL becomes a row, with loc, lastmod, changefreq and priority columns. Edit, sort, filter or delete rows in Excel, LibreOffice, Google Sheets or Numbers, then save the file.
  3. On the Rebuild page, drop the saved Excel file, alone — or the edited data.csv with its skeleton.json ("Separate files"): you get a valid XML sitemap, ready to submit to Search Console.

Try it with a sample sitemap

No sitemap at hand? Download the one from the sitemaps.org specification (excelifyxml.com/samples/sitemaps-org-example.xml, 914 bytes, CC BY-SA 2.5 license) and drop it on the free preview page. You see one row per <url>, that is 5 rows and 4 columns (loc, lastmod, changefreq, priority), before any credit is used. It isn't a real sitemap: its addresses are examples on example.com.

Can I open a sitemap in Excel without a tool, with Power Query?

To just read or sort a sitemap, Excel can open it on its own, with Power Query (Excel for Microsoft 365, or Excel 2016 and later on Windows).

  1. In Excel, open the Data tab › Get Data › From File › From XML.
  2. Pick your sitemap.xml, then click Import.
  3. In the Navigator, select the table that matches the url tags, then click Load (or Transform Data to adjust it in the Power Query editor).
  • The limit: Power Query reads XML, it can't write it. After your edits there is no way back to XML: you would have to rebuild the sitemap by hand or with a script.
  • Check the lastmod columns: Power Query may type them as dates and display them its own way, a format the sitemap protocol doesn't accept if written back as is.
  • To edit and then regenerate a valid sitemap, follow the 3 steps above.

What you can do in a few minutes

  • Update every <lastmod> date at once after a release.
  • Bulk-delete URLs from an old structure after a migration.
  • Adjust <priority> by section (products, blog posts, legal pages).
  • Spot and fix duplicate or malformed URLs using spreadsheet filters.
  • Merge several exports into a single clean sitemap.

How do I keep a sitemap valid after editing it, in particular the lastmod dates?

ExcelifyXML keeps the sitemap structure and namespace (http://www.sitemaps.org/schemas/sitemap/0.9) in a manifest, and rebuilds the file in the format search engines expect. Special characters in URLs (ampersands, parameters) are re-encoded correctly, for a file accepted without error.

One trap to know, with the CSV: opened by double-click, Excel takes lastmod dates such as 2026-09-01 for dates and saves them back its own way (9/1/2026), a format the sitemap protocol doesn't accept. Import the CSV with Data › From Text/CSV instead, the lastmod column as Text. If a date still changed format, the reconstruction stops and shows you the rows at stake, before producing an invalid sitemap. The Excel file (.xlsx) keeps the dates as they are: everything in it is written as text.

Security and privacy

The file is processed in memory on European Union servers, then deleted immediately. Above 4 MB, it goes through a private, encrypted transit space for the time of the preview and the transformation, then it's wiped (at the latest one hour after the upload). No metadata is kept. Your URLs are only used to generate your sitemap.

Open your XML sitemap in Excel now:

Transform a file