XML Sitemap Generator
Turn a list of page URLs into a sitemap.xml file.
Also called: sitemap.xml maker.
XML Sitemap Generator
Turn a list of page URLs into a sitemap.xml file.
Watch: how to use the XML Sitemap Generator (14 seconds)
Recorded on a phone, steps written on screen, no sound. Open the video page.
About the XML Sitemap Generator
Paste the addresses of your pages, one per line, and get a valid sitemap.xml that follows the sitemaps.org protocol. You can add a change frequency, a priority and a last-modified date.
Upload the file to the root of your site (yoursite.com/sitemap.xml), add a “Sitemap:” line to robots.txt, and submit it in Google Search Console and Bing Webmaster Tools so new pages are found sooner.
Google says it ignores changefreq and priority, but an accurate lastmod helps; leave the date empty if you do not know when a page really changed. One sitemap can hold up to 50,000 URLs.
What to include in an XML sitemap
Enter one absolute, canonical HTTP or HTTPS page URL per line. Duplicate entries are removed, and the generator supports up to 50,000 URLs in one sitemap. Include pages you want search engines to discover; leave out redirected URLs, non-canonical duplicates, blocked pages and pages marked noindex.
The optional last-modified date should reflect a real, meaningful page update—do not change it just to make a sitemap look fresh. Change frequency and priority are included in the XML, but Google says it ignores those two hints. A sitemap helps discovery; it does not guarantee crawling or indexing.
Save the file as sitemap.xml in your site's root, make sure it can be fetched publicly, reference it in robots.txt and submit it in Search Console. For larger sites, split the URL list into multiple sitemap files and use a sitemap index.
How to use the XML Sitemap Generator
- Add your inputFill in page URLs, priority and last modified. An example is already filled in, so you can press Run tool first to see how it works.
- Pick the optionschange frequency (the defaults suit most uses).
- Press Run toolThe result appears right under the button.
- Copy or download the resultCopy text results with Copy output; when the tool makes a picture or file, use its Download button.
This tool works inside your browser: what you enter stays on your device.
Example
A sample input and the result the XML Sitemap Generator gives for it (produced by the tool itself, not typed by hand).
- Page URLs
- https://example.com/ https://example.com/about
- Change frequency
- weekly
- Priority
- 0.8
Result:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/</loc>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://example.com/about</loc>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
</urlset>Good to know
- What you need
- You type or choose: Page URLs, Priority, Last modified
- Where it runs
- In your browser, on your device.
- Cost
- Free, no sign-up.
Read the guide
Questions
Where do I put sitemap.xml?
In the root folder of the website, then submit its address in Search Console.
Do I need priority and changefreq?
They are optional. Google ignores them; other search engines may use them.
Does a sitemap guarantee indexing?
No. It helps search engines discover pages; they still decide what to index.
More tools in SEO & Web
- Google Search Result Preview (SERP Snippet)
- 301 Redirect Generator
- Article Schema Generator (JSON-LD)
- Breadcrumb Schema Generator (JSON-LD)
- DNS Lookup (A, MX, TXT, CNAME, NS…)
- FAQ Schema (JSON-LD) Generator
- Hreflang Tag Generator
- Keyword Combiner (Mixer)
- Keyword Density Checker
- Local Business Schema Generator (JSON-LD)
- Long-Tail Keyword Ideas Generator
- Meta Tag Generator