Build sitemap.xml from a List of URLs
Enter one page URL per line to build a sitemap.xml file. Duplicate and invalid addresses are separated for you.
Use this tool in your browser without installing software.
About this tool
A sitemap.xml tells search engines which pages of a site to read. This page takes a list of addresses, checks every line and builds standard XML. Only full http or https addresses are accepted; credentials in the URL, other protocols and addresses over 2,048 characters are refused and their line is reported. All addresses must belong to one host; build a separate file for a second domain. Duplicate addresses are written once, and the 50,000-URL and 50 MB limits are enforced. You can set the last-modified date, change frequency and priority for the entries. A sitemap makes addresses easier to discover; it does not guarantee that they are read or indexed. The XML is never uploaded; you put the file at the root of your site yourself.
How to use it
- 1
Enter the addresses into the box one per line; each line must be a full http or https address.
- 2
Set the last-modified date, change frequency and priority in the bar above if you need them.
- 3
Copy the XML or download it as sitemap.xml and put it at the root of your site.
If the answer looks wrong
- The XML is empty.
The URL box is empty or no valid line was found. Each line must be a full http or https address; the reason for every refused line is listed under the box.
- Some lines were skipped.
A URL without http:// or https://, a non-web protocol, credentials in the address or a URL over 2,048 characters is refused. The line number and reason are in the list below.
- Search engines do not read the file.
The file must be at the site root with public access, and its addresses must point at the same domain. Add its address to robots.txt too.
Frequently asked questions
What is sitemap.xml?
It is an XML file that gives search engines a list of a site’s pages. It usually lives at the domain root, such as https://example.com/sitemap.xml, and you can mention it in robots.txt too.
Which addresses are accepted?
Only full, absolute http or https addresses. A URL without a protocol, ftp, mailto, credentials inside the URL and addresses over 2,048 characters are refused. A #fragment is removed because it means nothing to a search engine.
What do the date, frequency and priority do?
lastmod says when the page last changed, changefreq is a rough hint about how often it changes, and priority is the relative importance of pages. None is required, and Google may ignore them; leaving them empty is perfectly valid.
How many URLs fit in one file?
At most 50,000 URLs and 50 MB per sitemap. If you have more, split it into several sitemaps and add a sitemap index. This page enforces the cap, skips the rest and tells you when that happens.
Are my addresses sent anywhere?
No. Checking and building the XML all happen in your browser, and no address is sent to a server.