XML sitemap generator
sitemap.xml
5 URLs in the sitemap.
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://www.example.com/</loc>
</url>
<url>
<loc>https://www.example.com/services/</loc>
</url>
<url>
<loc>https://www.example.com/services/roof-repair/</loc>
</url>
<url>
<loc>https://www.example.com/about/</loc>
</url>
<url>
<loc>https://www.example.com/contact/</loc>
</url>
</urlset>- Note: No priority or changefreq tags: Google ignores both.
- Note: Upload it to the site root and submit it in Search Console, or add a Sitemap: line to robots.txt.
How to use it · free, no signup
How to use the XML Sitemap Generator
Paste the URLs you want indexed to get a valid sitemap.xml, with duplicates removed, values escaped and an optional last-modified date. Runs in your browser.
01
Paste the URLs
Full addresses of the pages you want indexed, one per line.
02
Add a date if it is true
A last-modified date only if every listed page really changed then.
03
Download sitemap.xml
Upload it to the site and submit it in Search Console.
What a sitemap does
A sitemap lists the addresses you want search engines to know about. It does not guarantee they will be crawled or indexed, but it removes the need for a crawler to find every page by following links, which matters most for new sites, large sites and pages few others link to. The format is simple, and the rules that matter are few.
Google’s rules, applied
| Rule | What the generator does |
|---|---|
| Fully-qualified, absolute URLs only | Rejects any line that is not a full https:// address |
| UTF-8, with values entity-escaped | Writes UTF-8 and escapes &, < and similar characters |
| At most 50,000 URLs or 50 MB per file | Warns when the list is over the limit |
| priority and changefreq are ignored | Leaves them out |
| lastmod only when reliably accurate | Writes it only if you give a date, in YYYY-MM-DD form |
Every one of these comes from Google’s guide to building a sitemap, which also notes that a lastmod should reflect the last significant change to a page. A date applied to every URL because the sitemap was rebuilt today teaches search engines to ignore it.
Choosing what to list
- The canonical address of each page, exactly as you want it indexed, with or without the trailing slash as the site uses it.
- Not redirects. List the final address, not one that sends visitors elsewhere.
- Not noindex pages. Asking for a page to be found and then not indexed sends mixed signals.
- One host per sitemap. The generator warns when the list mixes hosts.
Publishing it
Upload the file to the site, usually at /sitemap.xml, and submit it in Search Console. Adding a Sitemap: line to robots.txt also tells other crawlers where it is; the robots.txt generator adds that line. If pages have moved, set up redirects first with the 301 redirect generator and list only the new addresses.
Published by Koit Academy. Who runs it, how it is paid and how its tools are checked.
Questions
What people ask about the XML Sitemap Generator
Does this tool crawl my site?
Why are there no priority or changefreq tags?
How many URLs can one sitemap hold?
Which URLs belong in a sitemap?
How do I tell Google about the sitemap?
Related tools
301 Redirect Generator
Redirect rules for Apache, Nginx or _redirects
Open itRobots.txt Generator
A clean robots.txt from the paths you want blocked
Open itRobots.txt Tester
Which rule allows or blocks a URL, and why
Open itURL Slug Generator
Clean URL slugs from page titles
Open itHreflang Tag Generator
hreflang tags for every language version
Open itMeta Tag Generator
Title, description, canonical and sharing tags in one block
Open it