A sitemap generator gives search engines a clear list of the pages that you'd like them to know about. Paste your page addresses, one to a line, and this sitemap generator builds a properly formatted XML file. It removes repeats, escapes special characters and sets aside any line that isn't a valid address. You can add a last modified date, a change frequency and a priority if you'd like to include them. Download the file as sitemap.xml, upload it to your website and submit its address to search engines. Nothing that you paste is sent to our server.
How to use the sitemap generator
- Paste your full page addresses, one on each line.
- Add the optional details if you'd like them.
- Press Create sitemap.
- Download sitemap.xml, or copy the code.
- Upload it to your site's root folder.
What does a sitemap look like?
The Sitemaps protocol describes an XML file with a <url> entry for each page. Only the location is required, and the other tags are optional.
| Tag | Required? | Meaning |
|---|---|---|
| <loc> | Yes | The address of the page |
| <lastmod> | No | The date when the page last changed |
| <changefreq> | No | How often the page is likely to change |
| <priority> | No | Its importance relative to your other pages |
A worked example
Suppose that you run a small site with three pages: https://example.com/, https://example.com/about and https://example.com/contact. Paste those three lines, choose today's date for the last modified value, and press Create sitemap. The tool produces an XML file with a <urlset> containing three <url> entries, each with a <loc> and a <lastmod> tag. Save it as sitemap.xml and upload it, so that it can be found at https://example.com/sitemap.xml.
The rules that matter
- Entity escaping: all data values in a sitemap must be entity-escaped, so an ampersand in an address becomes &. The tool does this for you.
- Encoding: the file must be UTF-8 encoded.
- Size: a single sitemap can hold up to 50,000 addresses and must be no larger than 50 MB. Beyond that, you can split it and use a sitemap index file.
- Location: a sitemap can only include addresses at or below its own location, so the root folder is usually the best place.
Do priority and frequency matter?
The protocol is honest about the limits of these tags. Valid priority values range from 0.0 to 1.0, and the default is 0.5. The value doesn't affect how your pages are compared to pages on other sites, and it's unlikely to influence your position in search results. Assigning a high priority to everything won't help you either, since priority is only relative to your other pages. You can safely leave out both of these options, so don't spend much time on them. An accurate last modified date is the most helpful of the optional details.
What should I include?
- Include the main versions of pages that you'd like people to find.
- Leave out duplicates, redirected addresses and pages that return errors.
- Leave out private pages, login areas and internal search results.
- Be consistent about using https, and about the use of www or a trailing slash.
After you've uploaded it
Once the file is on your website, tell search engines where it is. You can add a line to your robots.txt file that gives its full address, and you can submit it through the webmaster tools provided by each search engine. A sitemap doesn't guarantee that every page will be indexed. It's a helpful hint that makes pages easier to discover, especially on new sites, on large sites and on sites where some pages have few links pointing to them.
Where do I get my list of addresses?
Your content management system might be able to export one. You can also copy addresses from a spreadsheet or from a crawl of your site that was made with another tool. This generator doesn't crawl sites itself, so you control exactly what goes in. That also means that you should check the list carefully, since a wrong or outdated address will be included if it's in the correct format. When you change your site, generate the file again and replace the old copy.
Keeping your sitemap up to date
A sitemap is most useful when it's accurate. If you publish new pages often, it's better to have your website produce the file automatically. For a small site that rarely changes, this tool is a quick way of making a fresh copy whenever you need one.
Common mistakes
- Using partial addresses. Each line needs the full address.
- Listing pages that don't work. Check them first.
- Giving every page the highest priority. It doesn't help.
Related web tools
Write page tags with the meta tag generator, check your titles with the title tag checker, and escape web addresses with the URL encoder and decoder.
What next
Use this often? Add Sitemap to your Home screen.
Frequently asked questions
How does the sitemap generator work?
It reads your list of addresses, removes repeats and writes them as a valid XML sitemap.
Where do I put my sitemap?
Upload it to your site's root folder, so that it's at /sitemap.xml.
How many URLs can a sitemap hold?
Up to 50,000 addresses, in a file no larger than 50 MB.
Do I need priority and change frequency?
No. They're optional, and priority is unlikely to affect your search position.
Does this tool crawl my website?
No. You paste the list of addresses yourself.
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.