Free Tool
4.9/5

Free XML Sitemap Validator

Validate any site's sitemap.xml in seconds. Check URLs, lastmod dates, priority values, and sitemap index structure. Auto-discovers sitemaps via robots.txt and common paths.

We auto-detect your sitemap from robots.txt and common paths (/sitemap.xml, /sitemap_index.xml).

Want to track every link you share?

Create Flyn short links and count every click at no cost; Pro shows where clicks come from and on what device. Every link becomes a data point.

Shorten for free

How to Validate a Sitemap in 3 Steps

Step 1: Enter a website URL, XML Sitemap Validator screenshot
1

Enter a website URL

Paste any website URL, you do not need to know the exact sitemap path. The tool checks robots.txt first, then falls back to /sitemap.xml, /sitemap_index.xml, and /sitemap/ automatically.

Step 2: Review parsed URLs, XML Sitemap Validator screenshot
2

Review parsed URLs

See every URL in the sitemap with its lastmod, changefreq, and priority values. The tool flags malformed dates, invalid URLs, missing required tags, and child sitemap count for sitemap indexes.

Step 3: Fix issues and export, XML Sitemap Validator screenshot
3

Fix issues and export

Filter URLs by missing fields (no lastmod, no priority) or by high-priority pages. Copy individual URLs, open them in a new tab, or export the full list as CSV for a deeper audit.

What Is an XML Sitemap and Why Does It Matter?

An XML sitemap is a structured list of every URL on your site that you want search engines to know about. Each entry can carry metadata, the URL itself (loc), the last time it was modified (lastmod), how often it changes (changefreq), and a relative priority (priority). Sitemaps are the primary way Google, Bing, and other crawlers discover pages that are hard to reach through normal internal link crawling.

For large sites, new sites, or sites with lots of archival content, a sitemap is the difference between pages getting indexed in days vs. months. It closes three common gaps: orphan pages (no internal links), deep pages (many clicks from the homepage), and newly updated pages that crawlers would otherwise find slowly. A clean sitemap is also a signal of technical quality, Google Search Console uses it as the reference list for what you intend to have indexed.

Sitemap Structure: Required vs Optional Tags

Tag

Required?

Purpose

<loc>

Required

Absolute URL, must start with https:// and match the domain

<lastmod>

Recommended

ISO 8601 date the URL was last modified. Google uses this heavily

<changefreq>

Optional

Hint at how often the page changes. Largely ignored by Google

<priority>

Optional

Relative priority 0.0-1.0. Ignored by Google, used by Bing

<xhtml:link>

Optional

Alternate language versions (hreflang) for international SEO

<image:image>

Optional

Image sitemap extension, tells search engines about image content

urlset vs sitemapindex: When to Use Each

urlset (standard sitemap)

Contains up to 50,000 <url> entries. Use this for small to medium sites where a single file can hold every page.

  • Max 50,000 URLs
  • Max 50 MB uncompressed
  • Root tag: <urlset>

sitemapindex

A parent file that lists other sitemap files. Required when you exceed 50K URLs. Also useful for logical separation by content type.

  • Up to 50,000 child sitemaps
  • Each child has its own 50K/50MB limit
  • Root tag: <sitemapindex>

XML Sitemap Best Practices

Keep lastmod accurate

Only update lastmod when the page's content actually changes. Falsely updating it on every build teaches Google to ignore your lastmod values, which is worse than not having them.

Only include indexable URLs

URLs in your sitemap should return HTTP 200, not be blocked by robots.txt, and not have noindex. Sitemaps with 404s, redirects, or noindexed pages waste crawl budget and hurt trust.

Use absolute URLs

Every &lt;loc&gt; must be a fully-qualified URL (https://www.example.com/page), not a relative path. The URL must also match the canonical version (www vs non-www, trailing slash, etc.) that your site serves.

Reference the sitemap in robots.txt

Add "Sitemap: https://www.example.com/sitemap.xml" to robots.txt. This makes your sitemap discoverable by any crawler (not just search engines you manually submit to) and is a strong discoverability signal.

Submit via Search Console

Submit your sitemap to Google Search Console AND Bing Webmaster Tools for per-sitemap indexing status, error reports, and last-read timestamps. Doing both (robots.txt + Search Console) is the belt-and-braces approach.

Regenerate on every deploy

Automate sitemap generation as part of your build/deploy pipeline. Never hand-edit production sitemaps. Use frameworks with built-in sitemap generation (Next.js, Hugo, Gatsby) or plugins (Yoast, RankMath) to stay synced with content.

Sitemap Validator + Link Shortener: Better Together

Validate your sitemap with this tool, then track every link you share with Flyn: free click counts and QR codes, with analytics breakdowns and branded domains on Pro, all in one platform.

Track every click

Every Flyn short link counts every click for free; Pro layers on device, country, referrer, and time-series breakdowns.

Branded links

Put short links on your own domain with Pro. Build trust and increase CTR with branded URLs.

Editable destinations

Change where your short links point anytime. No more broken links when URLs change.

Instant redirects

Flyn redirects complete in under 50ms globally. Your users never notice the redirect.

Frequently Asked Questions

What is an XML sitemap?
An XML sitemap is a structured file that lists every URL on your site you want search engines to index. Each entry can include the URL (loc), last modification date (lastmod), change frequency (changefreq), and relative priority (priority). Sitemaps are the primary way search engines discover pages on your site that may not be reachable through normal internal link crawling, and they speed up indexing of new or updated content.
Why do I need a sitemap?
Search engines are good at crawling sites via internal links, but sitemaps plug three common gaps: (1) orphan pages with few or no internal links, (2) deep pages that require many clicks from the homepage, (3) newly added or recently updated content that crawlers would otherwise find slowly. Google explicitly says sitemaps are useful for large sites, sites with rich media, and sites whose archive pages are not well-linked internally.
How often should I update my sitemap?
Update the sitemap whenever you add, remove, or significantly change pages. The lastmod field should reflect the actual last modification date, Google uses this to prioritize recrawling. Most modern CMSs and frameworks (Next.js, WordPress, Shopify) regenerate the sitemap automatically on build or publish. Static sites should regenerate on every deploy. Avoid updating lastmod on every build if content did not actually change, Google will stop trusting the signal.
What is the 50,000 URL / 50 MB limit?
A single sitemap file cannot exceed 50,000 URLs or 50 MB uncompressed. For larger sites, use a sitemap index file, a sitemap that lists other sitemaps. Each child sitemap counts toward the same 50K/50MB limits individually, but the index itself can reference up to 50,000 child sitemaps. This gives you a theoretical maximum of 2.5 billion URLs per site.
Should mobile URLs be in a separate sitemap?
No, this was required for the old mobile-specific sitemap extension, but that is deprecated. Modern responsive sites should list their single URL per page. If you have separate m.example.com mobile URLs (not recommended), use rel="alternate" and rel="canonical" tags rather than separate sitemaps. Google now primarily uses the mobile version of your page for indexing anyway (mobile-first indexing).
Does being in a sitemap guarantee indexing?
No. A sitemap is a strong signal that you want a page indexed, but it is only one input. Google also considers content quality, internal link signals, canonical tags, duplicate content, and crawl budget. Pages can be submitted via sitemap and still end up as "Discovered, currently not indexed" or "Crawled, currently not indexed" in Search Console. Check the Index Coverage report to see why specific URLs are not indexed.
What's a sitemapindex and when should I use one?
A sitemapindex is a parent sitemap that lists other sitemap files. Use one when you have more than 50,000 URLs, or when you want to logically separate sitemaps (e.g., one per content type: posts, products, categories). The sitemap index references each child sitemap's URL and its lastmod. Search engines crawl the index, then fetch each child sitemap. Next.js and most CMSs generate sitemap indexes automatically for large sites.
Should draft or unpublished pages be in the sitemap?
No. Only include URLs that are publicly accessible, return 200 status codes, and are not blocked by noindex or robots.txt. Pages with noindex, 404s, redirects, or pages blocked by robots.txt in your sitemap waste crawl budget and hurt trust in the sitemap signal. Search Console will flag these as errors. Use your CMS to automatically filter drafts, private posts, and trashed content.
How do I submit my sitemap to Google?
Two ways (do both): (1) Add a Sitemap directive to your robots.txt: "Sitemap: https://www.example.com/sitemap.xml". This makes it discoverable by any crawler. (2) Submit explicitly in Google Search Console under Sitemaps, this gives you indexing status, error reports, and last-read timestamps. For Bing, use Bing Webmaster Tools. Most search engines auto-discover via robots.txt, so the first step covers smaller engines too.
Do priority and changefreq actually matter?
Google has stated it largely ignores priority and changefreq fields, it uses its own signals (PageRank, content changes, historical crawl patterns) to decide crawl frequency. Bing still gives them some weight. The lastmod field IS used by all major search engines, so focus your accuracy there. Setting priority to 1.0 on every page does nothing; only relative priority within your own site has any potential effect.
Does a sitemap affect my search rankings?
Not directly. Having a sitemap does not boost rankings, it just helps search engines find your pages. However, a well-maintained sitemap indirectly helps SEO by ensuring your new content is indexed quickly, preventing orphan pages, and giving Google a clean signal about which URLs are canonical. A broken or stale sitemap can hurt by wasting crawl budget on dead URLs.
Can I have multiple sitemaps?
Yes. Large or complex sites often split into several sitemaps (e.g., /sitemap-posts.xml, /sitemap-products.xml) and reference them from a sitemap index. Some sites also maintain separate sitemaps for news (with news-specific tags), images, and video. List all of them in robots.txt with multiple Sitemap: lines, or nest them under a single sitemap index.

Ready to take control of your links?

Validate your sitemap for free, then create trackable short links with Flyn: QR codes and click counts free, analytics breakdowns and branded domains on Pro, all in one platform.