Xml sitemap generator cropped

A sitemap is a hint, not a guarantee — search engines may still choose not to index a listed page. Each sitemap file holds at most 50,000 URLs and must be under 50 MB uncompressed; a larger site needs several sitemap files plus a sitemap index. This tool only includes the URLs you enter — it does not discover pages automatically and it does not crawl any website.

What Is the XML Sitemap Generator?

An XML Sitemap Generator builds the sitemap.xml file that tells search engines which pages your website has. You list your pages — each with its address, an optional last-modified date, how often it changes, and how important it is — and the tool produces a valid XML file you can copy or download. It is free, needs no sign-up, and runs entirely in your browser, so nothing leaves your device.

A sitemap is a map of your site written for machines. Search engines are good at finding pages by following links, but they can miss new pages, pages buried deep in the site, and pages nothing links to. A sitemap hands them the full list in one file, so nothing important goes undiscovered. It does not guarantee that a page will be indexed — a sitemap is a hint, not a promise — but it makes discovery faster and more complete, especially for new sites and for sites whose pages change often.

This tool builds the file from the URLs you enter. It never crawls any website and it never claims to discover pages automatically: only the URLs you type in are included. Every URL is validated, and XML characters are escaped, so a query string with an & in it cannot break the file.

How to Use the XML Sitemap Generator

  1. List your pages. Each row has four fields: the page URL, the last-modified date, the change frequency, and the priority. The tool starts with three example rows already filled in, so you can see the shape of it at once.
  2. Type full URLs. Every URL must start with http:// or https://, for example https://allabouthtml.com/about/. A row with an address that is not a full URL is skipped, and the tool warns you about it. A row with details but no URL is skipped too.
  3. Fill in the optional fields. “Last modified” is the date the page last changed, in YYYY-MM-DD form. “Change frequency” is how often the page changes: always, hourly, daily, weekly, monthly, yearly or never — leave it blank if you do not know. “Priority” is a number from 0.0 to 1.0 saying how important the page is relative to the rest of your site; your homepage is usually 1.0 and ordinary pages sit around 0.8. A priority outside 0.0 to 1.0, or one that is not a number, is left out with a warning.
  4. Add more pages. Click “Add a page” for each extra row. If you enter the same URL twice, the tool keeps the duplicate and warns you, so you can remove it.
  5. Copy or download. The generated sitemap appears on the right as you work. Click Copy to put it on your clipboard or Download to save it as a file, then upload it to your site’s root as sitemap.xml and submit it in Google Search Console.

Worked example

The tool loads with three example rows: the homepage (https://allabouthtml.com/, last modified 2026-11-11, weekly, priority 1.0), the about page (https://allabouthtml.com/about/, 2025-12-01, monthly, 0.8) and the Try It Editor page (https://allabouthtml.com/html-try-it-editor/, 2025-09-22, monthly, 0.8). The generated sitemap looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://allabouthtml.com/</loc>
    <lastmod>2026-11-11</lastmod>
    <changefreq>weekly</changefreq>
    <priority>1.0</priority>
  </url>
  <url>
    <loc>https://allabouthtml.com/about/</loc>
    <lastmod>2025-12-01</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://allabouthtml.com/html-try-it-editor/</loc>
    <lastmod>2025-09-22</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
  </url>
</urlset>

Now add your own pages with “Add a page”, set each one’s date, frequency and priority, and download the finished file. If you leave a field blank, that tag is simply left out of the entry — the file stays valid.

Where a Sitemap Actually Helps

New websites. A new site has few or no links pointing to it, so search engines may take a long time to find its pages by crawling. Submitting a sitemap tells them the pages exist on day one, which is the fastest way to get a new site discovered.

Large and deep sites. A site with hundreds of pages, or pages buried several clicks from the homepage, is easy for a crawler to miss. A sitemap lists every page in one place, so the crawler does not have to find them all by following links — and it can budget its crawling time better.

Pages that change often. A blog, a news site or a shop updates pages constantly. The last-modified date and the change frequency tell search engines which pages have changed and how often to come back, so fresh content gets picked up sooner instead of waiting for the next full crawl.

Tips for a Sitemap That Works

  • Only list pages you want indexed. A sitemap should hold the pages that matter: your articles, your product pages, your key landing pages. Do not list admin screens, login pages, search results or duplicate versions of a page. Every URL in the file is a page you are asking a search engine to consider.
  • Keep the dates honest. The last-modified date should be the day the page actually changed. Do not set every page to today’s date to try to look fresh — search engines compare the date against what they already know, and a sitemap full of false dates teaches them to ignore yours.
  • Use priority as a relative ranking, not a score. Priority compares pages within your own site: the homepage at 1.0, important sections at 0.8, ordinary pages at 0.5. It does not compare your site with anyone else’s, and setting every page to 1.0 tells the search engine nothing.
  • Mind the limits. Each sitemap file holds at most 50,000 URLs and must be under 50 MB uncompressed. A larger site needs several sitemap files plus a sitemap index that lists them. If your site is that big, split the list by section — blog, products, pages — and build one file per section.
  • Submit it and check it. Upload the file to your site’s root as sitemap.xml and submit it in Google Search Console. Search Console will tell you how many of the listed URLs were indexed and flag any errors, which is how you find out whether the file is actually doing its job.

Frequently Asked Questions

What is an XML sitemap?

It is a file, usually called sitemap.xml, that lists the pages of a website in a format search engines understand. Each entry gives the page’s address and can add the date it last changed, how often it changes, and how important it is. Search engines read it to discover pages they might otherwise miss.

Does a sitemap guarantee my pages will be indexed?

No. A sitemap is a hint, not a guarantee — search engines may still choose not to index a listed page, for example if the content is thin or duplicated elsewhere. What a sitemap does guarantee is discovery: the search engine knows the page exists and can decide about it. Pages still have to earn their place in the index with good content.

How many URLs can a sitemap hold?

At most 50,000 URLs, and the file must be under 50 MB uncompressed. A larger site needs several sitemap files plus a sitemap index — a file that lists the other sitemap files. Split a big site by section and build one sitemap per section.

Does this tool crawl my website to find pages?

No. It never crawls any website and never discovers pages automatically. Only the URLs you enter are included in the file. That is deliberate: a sitemap should list the pages you have chosen to include, not whatever a crawler happened to find.

What happens if I type a bad URL?

The tool checks every row. A URL that is not a full http:// or https:// address is skipped, and a warning tells you which row was affected. A priority that is not a number, or that falls outside 0.0 to 1.0, is left out with a warning. Characters that would break XML, like & in a query string, are escaped automatically.

Conclusion

A sitemap is the simplest way to make sure search engines find every page that matters — and this XML Sitemap Generator builds a valid one from the URLs you enter, with dates, change frequencies and priorities, validated and escaped so the file cannot break. Try it above, and when the sitemap is ready, the Robots.txt Generator is the matching tool for the file that points crawlers to it.

Related Tools