ToolJutsu
All tools
Web & SEO Tools

Sitemap.xml Generator

Generate an XML sitemap from a list of URLs.

4 valid

These defaults are applied to every URL. A blank value omits that tag.

Generated sitemap.xml
<?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>
  <url>
    <loc>https://example.com/blog/getting-started</loc>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://example.com/contact</loc>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
</urlset>

Save this as sitemap.xml in your site root, then submit its URL in Google Search Console and reference it from your robots.txt.

Processed on your device. We never see your files.

How to use Sitemap.xml Generator

What this tool does

This sitemap generator turns a plain list of page URLs into a valid XML sitemap that conforms to the sitemaps.org 0.9 protocol — the format Google, Bing, and other search engines expect. You paste your URLs one per line, choose global defaults for change frequency, priority, and last-modified date, and the tool produces a properly structured <urlset> document with one <url> block per page. You can copy the result or download it as sitemap.xml, ready to upload to your site.

The generator validates every line as you type. Blank lines are skipped, exact duplicates are removed, and any line that is not a valid http or https URL is flagged inline with its line number and a running count, so you can fix typos before publishing. All user-supplied text is XML-escaped, meaning characters such as &, <, and > in a URL become &amp;, &lt;, and &gt; — a quiet but important step, because an unescaped ampersand produces a sitemap that search engines reject as malformed.

Why it matters for SEO

A sitemap is a discovery aid. Search engines find most pages by following links, but pages that are buried deep in the site structure, newly published, or weakly linked can take a long time to be found that way. A sitemap hands the crawler a complete inventory of the URLs you consider worth indexing, which shortens the gap between publishing a page and having it appear in search results. For large sites, content-heavy blogs, e-commerce catalogs, and sites with thin internal linking, this can make a measurable difference to coverage.

The single most valuable element in each entry is lastmod. When it is accurate, crawlers can prioritize re-fetching pages that have genuinely changed and skip those that have not, using your crawl budget efficiently. The changefreq and priority tags are weaker signals — Google has said it mostly disregards them — so treat them as optional metadata rather than ranking levers. What a sitemap does not do is guarantee indexing: each URL is still evaluated on quality and relevance. A sitemap gets pages seen, not ranked.

How to use it

  1. Paste your page URLs into the box, one per line. Use absolute URLs that begin with http:// or https://.
  2. Review the validation panel — any invalid line is listed with its number so you can correct it. Blank lines and duplicates are handled automatically.
  3. Choose a default change frequency and priority, or leave either unset to omit that tag.
  4. Optionally set a last-modified date; if set, it is applied to every URL.
  5. Copy the generated XML or download sitemap.xml.
  6. Upload the file to your site root, submit its URL in Google Search Console, and add a Sitemap: line for it in your robots.txt.

SEO best practices

List only canonical, indexable URLs — the exact versions you want in search results. Exclude pages that are blocked by robots.txt, carry a noindex tag, redirect elsewhere, or return errors; including them sends mixed signals and wastes crawl effort. Keep lastmod honest, updating it only when page content actually changes, because crawlers learn to distrust a sitemap whose dates move without reason. Stay within the 50,000-URL and 50 MB limits per file, and for larger sites use a sitemap index. Regenerate and resubmit the sitemap whenever you publish or remove a batch of pages.

Common mistakes to avoid

A frequent error is including non-canonical or duplicate URLs — trailing-slash variants, parameterized URLs, or http and https versions of the same page — which dilutes the signal you are trying to send. Listing redirecting or 404 URLs is equally counterproductive. Another classic mistake is an unescaped ampersand in a URL, which makes the XML invalid; this tool escapes those for you, but hand-edited sitemaps often break here. Do not pad the file with every URL on the site regardless of value, and do not assume a sitemap will rescue pages that are otherwise un-indexable.

Privacy & your data

This sitemap generator runs entirely in your browser. The URLs you paste and the default settings you select are processed locally by JavaScript — they are never uploaded to a server, never stored between visits, and never logged or tracked. The generated XML exists only in the page until you copy or download it, and it disappears the moment you close the tab. Because nothing leaves your device, the tool is safe to use for staging environments, unreleased sections, or any site map you would rather not share publicly.

Frequently asked questions

Where should the sitemap.xml file go?
Place it at the root of your domain, served at a URL such as https://example.com/sitemap.xml. A sitemap can only list URLs on the same host and path level as itself, so a file in the root can cover the whole site while one in a subfolder is restricted to that subfolder. After uploading it, submit the URL in Google Search Console and reference it in your robots.txt.
What do changefreq and priority actually do?
They are hints, not commands. The changefreq tag suggests how often a page changes and priority (0.0 to 1.0) suggests its relative importance within your site. Google has stated it largely ignores both, treating its own crawl signals as more reliable. The lastmod date is the most useful tag because it genuinely helps crawlers decide what to re-fetch — keep it accurate.
How many URLs can one sitemap contain?
A single sitemap file can hold up to 50,000 URLs and must not exceed 50 MB uncompressed. If your site is larger, split the URLs across multiple sitemap files and list those files in a sitemap index — itself an XML file that points to each sitemap. This tool warns you when either limit is exceeded.
Does a sitemap guarantee my pages get indexed?
No. A sitemap helps search engines discover URLs efficiently, especially deep or newly published pages, but it does not force indexing. Each page is still judged on its own merits — content quality, internal links, and crawlability. Listing a low-value or blocked page in the sitemap will not get it ranked.
Are the URLs I paste sent anywhere?
No. The sitemap is built entirely in your browser with JavaScript. The URLs you paste and the default settings you choose are never uploaded, stored, or logged. The generated XML exists only on your device until you copy or download it, so it is safe to use for an unpublished or staging site.

Related tools