XML Sitemap Generator
Paste your URLs, one per line: the tool outputs a valid, correctly escaped sitemap.xml and splits it with an index if you go over the limits.
Privacy and cost
This tool runs in your browser. What you type or paste is not sent to our servers and it costs nothing to use.
How it works
- Paste absolute URLs, one per line, optionally followed by lastmod, changefreq, priority or hreflang alternates after a ";".
- Set defaults if needed (lastmod only if the date is real) and, when the list is split, the address where the sitemaps will be hosted.
- Download the file(s), upload them to your site and declare the sitemap in robots.txt and Google Search Console.
Example
Three lines (a home page, a page with "lastmod=2026-03-01" and a French page with its fr, en and x-default alternates) produce a sitemap.xml with 3 URLs and 623 bytes, with the xhtml namespace added automatically for the alternates.
What the result means
A sitemap file is limited to 50,000 URLs and 50 MB uncompressed. The tool cuts the list before those limits and creates an index that references every file. Google does not use priority or changefreq; lastmod only helps when it reflects real content changes.
Common problems this tool helps with
- URLs with an unescaped "&", which make the XML invalid.
- A sitemap listing redirected, noindexed or blocked URLs instead of canonical pages.
- A lastmod bumped on every deploy without real changes, which Google ends up ignoring.
- A sitemap over 50,000 URLs or 50 MB that search engines will not read in full.
Frequently asked questions
Does a small site need a sitemap?
Not strictly, if your pages are well linked together, but a sitemap helps crawlers discover new or isolated pages. It guarantees neither crawling nor indexing.
How do I add hreflang alternates?
Add "code=URL" fields on the URL's line, for example "fr=https://example.com/fr/ ; en=https://example.com/en/". Each URL must list all its alternates, itself included.
Are my URLs sent to a server?
No. The file is generated in your browser and nothing is sent to our servers.
Related tools
- XML Sitemap ValidatorEnter the sitemap address or paste its XML: the tool checks the structure, the limits and every value, and works out how many files you need.Free · no account needed
- Sitemap URL ExtractorEnter a sitemap or just a domain: the tool lists every URL and its lastmod, follows a sitemap index one level deep and exports the result.Free · no account needed
- Robots.txt GeneratorPick a preset, add your sitemap and rules for specific crawlers. The robots.txt is generated and re-read by an RFC 9309 parser before you download it.Free · runs in your browser
- Hreflang GeneratorEnter each language version (code and URL): the tool validates the codes, adds x-default and outputs the same block to paste on every version.Free · runs in your browser
- Canonical Tag GeneratorPaste a page URL: the tool cleans it (https, tracking parameters, fragment, index file, trailing slash) and outputs the canonical tag and the HTTP header.Free · runs in your browser