SEO and marketing tools

XML Sitemap Generator and Validator

Paste URLs or a CSV export and get a clean, escaped sitemap.xml, split into a sitemap index past 50,000 URLs, or paste an existing sitemap and check it against the protocol.

  • Free foreverNo trial, no paywall, no usage limits.
  • No sign-upOpen the page and start. We never ask for an email to use a tool.
  • PrivateEverything runs in your browser. Your input is never uploaded or stored on our servers.
  • Works offlineOnce the page has loaded, the tool keeps working without a connection.
Turn a list of URLs (or a CSV export) into sitemap.xml.Paste an existing sitemap.xml or sitemap index and check it against the protocol.

Then list it in robots.txt with the robots.txt generator.

Relative paths such as /about are resolved against it, and URLs on other hosts are flagged.
When each page last changed in a meaningful way. Google uses it if it is consistently accurate, so don't stamp today's date on pages that didn't change.
Optional hint of how often a page changes. Google ignores it; leave it out unless another engine you target uses it.
Optional, 0.0 to 1.0, relative to your other pages. Google ignores it. A value in a priority column wins.
Match how your site serves pages, so the sitemap lists canonical URLs rather than ones that redirect.
Off writes dates only (2026-10-14). On keeps full timestamps that include a time zone.

URLs

One URL per line, optionally followed by a date (https://example.com/page 2026-10-01). Or paste CSV/TSV with a header row: url, lastmod, changefreq, priority, plus language columns such as en, de, x-default for hreflang.
Clear
Paste URLs, or open a .txt or .csv export.

sitemap.xml

Upload the file to your site's root and submit it in Google Search Console and Bing Webmaster Tools, or list it in robots.txt.
Check in the validatorCopyDownload sitemap.xml
The sitemap appears here as you type.

Want an honest look at your site's SEO? Talk to our team

Quick answer

An XML sitemap is a file listing the URLs you want search engines to crawl, with optional last-modified dates. Paste URLs or a CSV export into Playxoft's free XML sitemap generator to get a valid sitemap.xml: URLs are normalized, deduplicated and escaped, hreflang alternates come from language columns, and more than 50,000 URLs are split into files plus a sitemap index. Validate mode checks an existing sitemap.

  • List or CSV input
  • Lastmod in W3C Datetime
  • hreflang alternates
  • Auto split and index
  • Dedupe and escaping
  • Sitemap validator
  • Download each file

How to use the XML Sitemap Generator

  1. 1Paste your URLs into URLs, one per line, or Open a .txt or .csv export. A date after a URL becomes its lastmod.
  2. 2Set Site URL so relative paths such as /about work, and choose how Lastmod is filled.
  3. 3For translated pages, use a CSV header with language codes such as en, de and x-default.
  4. 4Review Checks, then Download sitemap.xml, or each split file and sitemap-index.xml.
  5. 5Upload the file to your site's root, add a Sitemap line to robots.txt and submit it in Search Console.
  6. 6To check an existing sitemap, switch to Validate and paste its XML.

What does a valid XML sitemap look like?

The Sitemaps protocol is short. A sitemap is a UTF-8 XML file with a <urlset> root in the sitemaps.org namespace and one <url> per page, each with a required <loc>:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://example.com/search?q=shoes&amp;sort=new</loc>
    <lastmod>2026-10-01</lastmod>
  </url>
</urlset>
RuleLimit
URLs per file50,000
File size50 MB (52,428,800 bytes) uncompressed
URL lengthFewer than 2,048 characters
URL formAbsolute, with http:// or https://
HostsOne host per file
Escaping& < > " ' as &amp; &lt; &gt; &quot; &apos;

The namespace is an identifier, not a link, so it must be exactly http://www.sitemaps.org/schemas/sitemap/0.9; the https:// version is a common mistake. An unescaped & in a query string makes the whole file invalid XML. The generator escapes every value, removes #fragments (crawlers ignore them), percent-encodes spaces and accents, and lists each URL once.

Do lastmod, changefreq and priority matter?

Only <lastmod> does, for Google. Google says it ignores <priority> and <changefreq>, and uses <lastmod> when it is consistently and verifiably accurate. Set it to the date of the last significant change to the page's content, not the day you generated the sitemap; a footer copyright update doesn't count.

Dates use W3C Datetime:

2026-10-14                   date only (most common)
2026-10-14T09:30+02:00       with time: minutes and a time zone
2026-10-14T07:30:00Z         seconds, in UTC

A time always needs a time zone, and formats such as 14/10/2026 are invalid. When a CMS export has times without a zone (2026-10-14 09:30:00), the generator keeps only the date rather than guess the offset.

How do I add hreflang to a sitemap?

List every language version of a page inside each version's <url> entry, including itself, with <xhtml:link> and the xhtml namespace. Google's rules say links that don't point at each other are ignored, so every version must list every other version.

In the generator, give your CSV a header of language codes; each row becomes one page in several languages:

en,de,x-default,lastmod
https://example.com/,https://example.com/de/,https://example.com/,2026-10-01

Codes are an ISO 639-1 language, optionally a region from ISO 3166-1 alpha-2 (de-CH), or x-default for the fallback page. Two classic mistakes are caught: en-UK (the code is GB) and numeric regions such as es-419, which Google doesn't support.

What if my site has more than 50,000 URLs?

Split the URLs into several sitemaps and list them in a sitemap index, which has the same limits. The generator does it automatically, at 50,000 URLs or 50 MB per file:

<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <sitemap>
    <loc>https://example.com/sitemap-1.xml</loc>
    <lastmod>2026-10-14</lastmod>
  </sitemap>
</sitemapindex>

Google requires the listed sitemaps to sit on the same site as the index, in its folder or below it. Upload every file, then submit only sitemap-index.xml. In an index, <lastmod> is when that sitemap file changed, not its pages.

Which URLs belong in a sitemap?

Only the canonical URLs you want in search results: pages that return 200, aren't redirects, aren't marked noindex and aren't blocked in robots.txt. Listing duplicates, filtered views or tracking variants (?utm_source=…) wastes crawling and sends mixed signals.

A sitemap at the root covers the whole site. Tell search engines where it is with a Sitemap: line in robots.txt (the robots.txt generator writes it) and by submitting it in Google Search Console and Bing Webmaster Tools.

Frequently asked questions

List the canonical URLs of the pages you want in search results, one per line, and turn them into XML with a urlset root, one url entry per page and a loc tag for each URL. Paste the list into this generator to get a valid, escaped sitemap.xml, upload it to your site's root and submit it in Google Search Console.
50,000 URLs and 50 MB (52,428,800 bytes) uncompressed per file. For more URLs, split them into several sitemaps and list those in a sitemap index, which can itself list up to 50,000 sitemaps.
W3C Datetime, a profile of ISO 8601. The usual form is the date alone, such as 2026-10-14. A time is allowed if it includes a time zone, such as 2026-10-14T09:30:00+02:00 or 2026-10-14T07:30:00Z.
No. Google says it ignores priority and changefreq. It does use lastmod when the dates are consistently and verifiably accurate, so keep lastmod honest and feel free to leave the other two out.
Open the Sitemaps report in Google Search Console for your property, enter the sitemap's URL and submit it. You can also add a Sitemap: line with the full URL to your robots.txt, which Google, Bing and other search engines read.
The Sitemaps protocol says all URLs in a sitemap must come from one host. Google makes an exception for cross-site sitemaps when you have verified ownership of every site in Search Console. Otherwise give each host its own sitemap.
No. The sitemap is built and validated entirely in your browser; nothing you paste or open is uploaded or fetched. Analytics on this page records only that the tool was used.

Last updated by the Playxoft engineering team.

From the team behind this tool

Doing the SEO checklist and still not getting traffic?

Meta tags and sitemaps are the floor, not the strategy. We build fast websites that rank, fix the technical SEO that holds pages back and run campaigns you can measure. Send us your site and get a free, honest audit of what would move the needle.