My Site Did What?

My site did what?

Trace a redirect, inspect a sitemap or find out what’s slowing a page down.

A purple computer examining its screen with an orange magnifying glass.

Sitemap validator

Check the structure and links in an XML sitemap or sitemap index, right in your browser.

What should I paste?

Copy the XML source of a sitemap, including its opening and closing elements. An individual sitemap uses urlset and contains a url entry for each page. A sitemap index uses sitemapindex and lists sitemap files instead. If you have an index, check the index first and then paste a child sitemap to inspect its entries.

How do I fix an entry?

Each entry needs one loc element containing an absolute HTTP or HTTPS address. If an entry lists /about/, use the full address of that page. If the browser cannot parse the XML, check matching closing tags and escape ampersands in query strings as &. Use the example above to compare a working document with your own.

Why is the namespace important?

The opening element identifies the sitemap format with xmlns="http://www.sitemaps.org/schemas/sitemap/0.9". Keep that identifier exactly as written, even when every page on your site uses HTTPS. The namespace identifies the XML vocabulary. The addresses inside loc identify your pages. Changing one of them to fix the other can leave an otherwise readable file with an unrecognized format.

What does a successful check cover?

The browser checks the text you pasted and reports how many entries it found. It can spot structural mistakes without visiting the listed addresses. To check whether a listed page returns an error, redirects or has been indexed, inspect that URL separately. A sitemap can be well formed even when one of its pages has been removed.