XML Sitemap Generator

Generate valid sitemap.xml files for Google, Bing and all major search engines.

STANDARD + INDEX HREFLANG VALIDATION 100% FREE
Free Professional Tool | No Registration Required | Updated: January 2026
AI-GENERATED TOOL

Note: This XML Sitemap Generator was created with the help of AI. All sitemaps are built 100% locally in your browser — nothing is uploaded, no APIs, no tracking. Sitemaps follow the official sitemaps.org protocol and Google's extended specifications. Always verify your sitemap with Google Search Console after deployment — a valid sitemap is only useful if search engines can actually fetch it.

Help Search Engines Find Every Page

Generate a fully compliant sitemap.xml and get your URLs indexed faster.

Sitemap Index hreflang 100% Private

URLs to Include

Used to auto-prepend domains for relative paths.

0 URLs

Both relative paths (/about) and full URLs are accepted. One per line. Comments starting with # are ignored.

Default Settings

Generated Sitemap

0 KB
<!-- Fill in URLs to generate sitemap.xml -->

Where to Place It

Upload sitemap.xml to your site's root directory and reference it in robots.txt:

Sitemap: https://example.com/sitemap.xml

Then submit it in Google Search Console → Sitemaps.

Sitemap Index

Use a sitemap index when you have more than 50,000 URLs or multiple sitemap files (per section, per language, per content type). Enter one sitemap URL per line.

0 sitemaps

Options

Generated Sitemap Index

0 KB
<!-- Sitemap index will appear here -->

hreflang Sitemap

Generate a sitemap with xhtml:link annotations for multi-language and multi-region sites. Google recommends using sitemaps for large hreflang implementations.

hreflang Groups

Each line = one URL with its hreflang alternates. Format:
url | code=url, code=url, code=url

Output

<!-- hreflang sitemap will appear here -->

Validate XML Sitemap

Paste an existing sitemap to check for XML syntax errors, protocol violations and common mistakes.

Report

Paste sitemap XML and click Validate to see the report.

Sitemap Reference

Standard Sitemap Elements

ElementRequiredDescription
<urlset>YesRoot element, wraps all URLs in a standard sitemap
<url>YesOne entry per page
<loc>YesFull absolute URL of the page
<lastmod>NoLast modified date (W3C format or YYYY-MM-DD)
<changefreq>Noalways, hourly, daily, weekly, monthly, yearly, never
<priority>No0.0 to 1.0

Sitemap Index Elements

ElementDescription
<sitemapindex>Root element for a sitemap index
<sitemap>One entry per referenced sitemap
<loc>Full URL of the child sitemap
<lastmod>Last modified date of the child sitemap

Limits and Rules

  • • Maximum 50,000 URLs per sitemap file
  • • Maximum 50 MB uncompressed per sitemap file
  • • All URLs must be on the same host as the sitemap
  • • Use HTTPS URLs — HTTP URLs are still accepted but less secure
  • • Encode special characters in URLs (& becomes &amp;)
  • • Don't include noindex pages, 404 pages or non-canonical URLs
  • • Split large sites into multiple sitemaps and reference them from a sitemap index
  • • changefreq and priority are largely ignored by Google now — but harmless

Where to Submit Your Sitemap

  • • Google Search Console → Indexing → Sitemaps
  • • Bing Webmaster Tools → Sitemaps
  • • Yandex Webmaster → Indexing → Sitemap files
  • • robots.txt — add Sitemap: https://example.com/sitemap.xml
  • • Google Search Console API — for automated submission

Common Mistakes

  1. • URLs from multiple domains in one sitemap (not allowed)
  2. • Using relative URLs instead of absolute URLs
  3. • Including noindex pages, 404s or redirects
  4. • Missing the xmlns attribute on <urlset>
  5. • Unencoded special characters (&, <, >)
  6. • Using priority to try to influence rankings (ignored by Google)
  7. • Forgetting to update lastmod dates when content changes
  8. • Sitemap URL returns 404 or is behind authentication

Complete XML Sitemap Guide

What Is an XML Sitemap?

An XML sitemap is a file that lists all the important pages on your website in a structured format that search engines can read. It acts as a roadmap — telling Google, Bing and others exactly which pages exist and when they were last updated.

While search engines can discover pages through links, a sitemap ensures they find every page — especially those that are new, orphaned, or buried deep in your site architecture.

Do You Actually Need a Sitemap?

Yes, for almost every site. Google says:

  • Sitemaps help search engines discover URLs they might not find otherwise
  • They provide metadata (lastmod) that helps Google prioritise re-crawling
  • They're especially important for new sites, large sites, and sites with poor internal linking

You may not need a sitemap if: your site is tiny (under 500 pages), all content is linked from your homepage, and every page is updated rarely.

Standard Sitemap Structure

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://example.com/</loc>
    <lastmod>2026-01-15</lastmod>
    <changefreq>weekly</changefreq>
    <priority>1.0</priority>
  </url>
  <url>
    <loc>https://example.com/about</loc>
    <lastmod>2026-01-10</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
  </url>
</urlset>

Sitemap Index Files

If your site has more than 50,000 URLs, or you want to split sitemaps by content type (posts, products, images), use a sitemap index:

<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <sitemap>
    <loc>https://example.com/sitemap-posts.xml</loc>
    <lastmod>2026-01-15</lastmod>
  </sitemap>
  <sitemap>
    <loc>https://example.com/sitemap-products.xml</loc>
    <lastmod>2026-01-12</lastmod>
  </sitemap>
</sitemapindex>

hreflang in Sitemaps

For multi-language or multi-region sites, you can include hreflang annotations directly in your sitemap using the xhtml:link element:

<url>
  <loc>https://example.com/en/</loc>
  <xhtml:link rel="alternate" hreflang="en-US" href="https://example.com/en/"/>
  <xhtml:link rel="alternate" hreflang="fr-FR" href="https://example.com/fr/"/>
  <xhtml:link rel="alternate" hreflang="x-default" href="https://example.com/"/>
</url>

What to Include (and What to Exclude)

IncludeExclude
Canonical URLsDuplicate URLs or parameter variants
Indexable pages onlynoindex pages
200 status pages301/302 redirects
HTTPS versionsHTTP versions when HTTPS exists
All languages/regionsNon-canonical hreflang alternates
Content, images, videosAdmin pages, drafts, internal search results

How Often to Regenerate

  • News/blog sites: Regenerate with every publish (or use dynamic generation)
  • E-commerce: Daily or on product changes
  • Corporate/static sites: Monthly or on content updates
  • Small sites: Manually whenever pages change

Most CMS platforms (WordPress, Shopify, Webflow) generate sitemaps automatically. Use this tool if your CMS doesn't, or if you want full control over the structure.

How to Use This Generator

  1. URL List tab: Paste your URLs (one per line). Set default changefreq and priority. Click to generate.
  2. Sitemap Index tab: For large sites with multiple sitemaps, list each child sitemap URL.
  3. Advanced tab: Generate hreflang-annotated sitemaps for multi-language sites.
  4. Validate tab: Paste an existing sitemap to verify it's valid before submitting.
  5. Download the generated file and upload to your site's root directory.
  6. Submit to Google Search Console → Sitemaps.

Pro Tip: After submitting your sitemap, monitor the Sitemaps report in Search Console. It shows: how many URLs were submitted, how many were indexed, and any errors. It's the fastest way to catch crawl issues, 404s and noindex conflicts.

⚠️ AI-Generated Tool Notice: This XML Sitemap Generator was built with AI assistance. Generated sitemaps follow the sitemaps.org protocol and Google's specifications. However, sitemap requirements evolve — always cross-check with Google's official sitemap documentation before deploying for critical sites.

Frequently Asked Questions

Not directly. Sitemaps don't affect ranking position — they help with discovery and indexing. That said, getting more of your pages indexed faster can indirectly help, because more indexed pages means more chances to rank. A sitemap is one of the easiest and highest-value SEO tasks you can complete in 10 minutes.

50,000 URLs per sitemap file, and 50 MB uncompressed. If you exceed either limit, split your URLs across multiple sitemaps and create a sitemap index that points to each one. Sitemap indexes can themselves contain up to 50,000 sitemaps — that's 2.5 billion URLs total per index. In practice, no site needs anywhere near that.

No. Google officially ignores changefreq and priority and recommends relying on lastmod and Google's own crawl scheduling. However, other search engines (Bing, Yandex) may still consider them, and they're harmless. We include them by default because they don't hurt, and the lastmod field absolutely matters.

No. Only include canonical URLs. If your sitemap contains URLs that are marked with rel=canonical pointing elsewhere, you're sending mixed signals. Google Search Console will flag "Submitted URL not selected as canonical" for those URLs. If you have duplicate content (e.g., /page and /page?utm=x), only list the clean canonical version.

Varies widely: hours for small sites, days to weeks for larger sites. After submitting in Search Console, you can click "Request indexing" on individual URLs to speed things up (limited quota). Keep in mind that submitting a sitemap doesn't guarantee indexing — Google will still crawl and evaluate each URL on its own merits.

You don't need one for a site under ~500 pages where everything is well-linked. But there's no downside to having one, and it's helpful for: (1) getting new pages discovered faster; (2) submitting to Search Console for diagnostic reporting; (3) ensuring orphaned pages get crawled. Our advice: yes, generate one anyway — 5 minutes of work, zero downside.

Ready to Generate Your Sitemap?

Create a compliant XML sitemap in seconds — with sitemap index, hreflang and validation all in one tool.

Updated: January 2026 | Free for Commercial Use | 100% Client-Side Processing

Why Choose Our Sitemap Generator?

Standard + Index

Generate both regular sitemaps and sitemap indexes for large sites.

hreflang Support

Full multi-language and multi-region annotations using the xhtml:link protocol.

Built-In Validation

Checks protocol compliance, URL validity, XML syntax and common mistakes.

100% Private

Everything runs locally. Your URLs never leave your browser.

More SEO Tools