Use this free XML sitemap generator to build a sitemap.xml file from your list of pages. Paste your URLs, add your domain if you use paths, and the tool removes duplicates and off-site links, checks the format, and gives you a file to upload. Everything is built in your browser, so your list is not sent to our servers.
A sitemap is a map for search engines. It helps them find the pages you want indexed, but it does not guarantee that those pages will rank.
How to use the XML sitemap generator
- Enter your domain (optional): needed only if your list includes paths such as /about.
- Paste your URLs: one per line. Full URLs and paths can be mixed.
- Choose the options: add a last-modified date or a change frequency if you have accurate values.
- Generate and download: save the file as
sitemap.xml, then upload it to your site's root folder.
Sitemap rules at a glance
| Rule | Limit | What to do |
|---|---|---|
| URLs per file | 50,000 | Split larger sites into several sitemaps |
| File size | 50 MB uncompressed | Keep URLs short and remove unused ones |
| Domain | Same site only | List only pages on the domain the file is hosted on |
| Encoding | UTF-8 | Escape &, <, and > in URLs, which the tool does for you |
Worked examples
A small business site
Enter https://example.com as the base domain, then paste /, /services, /about, and /contact. The file lists four full URLs.
A list with duplicates
If the list contains /about twice and one full URL that matches it, the tool keeps a single entry. The summary tells you how many lines were skipped.
Adding the sitemap to robots.txt
After uploading the file, add a line to your robots.txt file so search engines can find it:
Sitemap: https://example.com/sitemap.xml
You can also submit the file in Google Search Console or Bing Webmaster Tools.
Common mistakes
- Including noindex pages. A sitemap should list pages you want indexed. Remove pages marked noindex or blocked by robots.txt.
- Setting fake dates. Last-modified dates should reflect real changes. Using today's date on every page makes the dates meaningless.
- Expecting priority to matter. This tool does not write priority, because search engines have said they ignore it.
- Listing other domains. Off-site URLs are skipped for this reason.
- Forgetting to upload. A generated file does nothing until it is on your server and linked from robots.txt or submitted.
Frequently asked questions
What is an XML sitemap?
An XML sitemap is a file that lists the URLs on a website you want search engines to know about. It can also give the last-modified date of each page.
Do I need a sitemap?
Not always. Small sites with good internal links are often found without one, but a sitemap helps search engines discover new or deep pages and understand how your site is organised.
What is the limit for a sitemap?
A single sitemap can contain up to 50,000 URLs and must be no larger than 50 MB uncompressed. Larger sites split their URLs across several sitemaps listed in a sitemap index.
How do I tell search engines about my sitemap?
Upload the file to your site's root, such as https://example.com/sitemap.xml, then add a line to robots.txt that reads Sitemap followed by the full URL. You can also submit it in Google Search Console or Bing Webmaster Tools.
Is the Xornex XML sitemap generator free?
Yes. The Xornex XML sitemap generator is available to use free of charge.