SEO ToolsA little help for every day

Search by name or task, such as JSON or percentage.

SEO Tools

XML Sitemap Generator

Paste URLs one per line, optionally with a date, and get a valid sitemap.xml with lastmod. Duplicates and # fragments go and relative paths are completed.

View all tools
ResultUpdates as you type
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://example.com/</loc>
  </url>
  <url>
    <loc>https://example.com/about</loc>
  </url>
  <url>
    <loc>https://example.com/blog/hello-world</loc>
    <lastmod>2024-05-01</lastmod>
  </url>
  <url>
    <loc>https://example.com/contact</loc>
  </url>
</urlset>

4 URLs, about 0.4 KB. Save it as sitemap.xml in your site root.

How to use XML Sitemap Generator

Paste one URL per line and, if you like, a YYYY-MM-DD date after it for lastmod. Relative paths such as /about are completed from the site address. The XML updates as you type, ready to save as sitemap.xml.

  1. Paste your URLsEnter one URL per line. Add a space and a date such as 2024-05-01 to set that page's lastmod.
  2. Choose the optional tagsSet the site address for relative paths, a lastmod fallback, and changefreq or priority if another tool needs them.
  3. Save as sitemap.xmlCopy the XML, save it as sitemap.xml in your site root and submit it in Google Search Console or Bing Webmaster Tools.

What Google uses: loc and lastmod, not priority

Each URL becomes a url entry with a loc tag. Google says it uses lastmod only when the dates are consistently accurate, so add a date when the page content really changed. For URLs without their own date, the generator can leave lastmod out, use today's date or apply one shared date. changefreq and priority belong to the sitemaps.org format but Google ignores both, so they are off by default. If another tool needs priority, the folder-depth option gives the home page 1.0, first-level pages 0.8, second-level pages 0.6 and anything deeper 0.5.

Sitemap limits and common mistakes

One sitemap may list up to 50,000 URLs and be up to 50 MB uncompressed; past either limit you get a warning and should split the list and use a sitemap index. Every loc must be an absolute URL, so relative paths need the site address field. Fragments after # are stripped, duplicates are removed by default and lines starting with # are treated as comments. A line with anything other than a URL and one date is skipped with a message, so write spaces inside URLs as %20. A sitemap should only list URLs from its own host, and mixing domains triggers a warning.

Accuracy and data handling

Generated tags and rules must match the real page content and the site's deployment environment. The calculation runs in your current browser; the tool code does not send the input to a processing API.

Often Used Together

Next step

FAQ

How do I add lastmod dates to a sitemap?

Put the date after the URL on the same line, e.g. https://example.com/blog/hello-world 2024-05-01. For URLs without a date you can leave lastmod out, use today's date or apply one shared date.

Does Google use changefreq and priority?

No, Google ignores both, so the generator leaves them out by default. They are still part of the sitemaps.org protocol, so you can add them if another tool expects them.

How many URLs can one sitemap hold?

Up to 50,000 URLs and 50 MB uncompressed. The generator shows the approximate file size and warns past either limit; split larger sites into several sitemaps and list them in a sitemap index.

Can I use relative paths like /contact?

Yes, as long as the site address is filled in. With https://example.com set, /contact becomes https://example.com/contact. Without it, relative lines are skipped and listed in a warning.

More SEO Tools

Related tools