Free SEO tool

Sitemap XML Generator

Paste one URL per line and the generator builds a valid sitemap.xml you can upload to your site and submit to search engines.

What is sitemap xml generator?

A sitemap lists the important URLs of your site so search engines can find them. It helps most for new sites, large sites and pages that few links point to.

This tool turns a plain list of URLs into correct XML, with special characters escaped. You can then upload the file to your site root and submit it in Google Search Console and Bing Webmaster Tools.

How to use the sitemap xml generator

  1. Paste your full URLs, one per line.
  2. Choose a change frequency and priority, and whether to include a last modified date.
  3. Press Generate, save the file as sitemap.xml, upload it and add a Sitemap line to robots.txt.

How the sitemap xml generator works

Each URL becomes a url element with loc, optional lastmod, changefreq and priority. Ampersands are escaped. The first URL gets a priority of 1.0.

Worked example

Three URLs produce a urlset with three url blocks, each with a location, today's date, a weekly change frequency and a priority.

Common uses of the sitemap xml generator

  • Launching a new small website.
  • Creating a sitemap for a static or hand coded site.
  • Submitting a list of key pages quickly.
  • Testing the format before building an automated version.
  • Helping crawlers find orphan pages.

Tips and common mistakes

Include only canonical, indexable URLs that return a 200 status. Leave out redirected, blocked and duplicate pages.

A single sitemap can hold up to 50,000 URLs or 50 MB. Larger sites need a sitemap index.

Background: what to know before you rely on it

XML sitemaps were introduced by Google in 2005 and adopted by other search engines in 2006. They are a hint and not a command. A good sitemap lists only URLs that you want indexed, and lastmod should reflect real content changes, since search engines learn to ignore dates that always change. Large sites often generate sitemaps automatically and split them by type. If your site is small and well linked, search engines can find pages without a sitemap, but it still helps you monitor indexing in Search Console. Keep the sitemap in sync with robots.txt and avoid including pages blocked by noindex.

Private, free and fast

This tool runs entirely in your browser. What you type or choose is not uploaded to a server and is not saved after you close the page, which keeps it fast and private. It is free to use as often as you like. See more in all seo tools, or browse the full list of tools.

Frequently asked questions

Where do I put sitemap.xml?

In the root of your site, for example example.com/sitemap.xml.

Do I need to set priority and changefreq?

Google mostly ignores them. They do no harm.

How do I submit it?

In Google Search Console under Sitemaps, and by adding a Sitemap line to robots.txt.

Does a sitemap guarantee indexing?

No. It helps discovery only.

Related tools

Results are for information and education. For legal, financial, medical or security decisions, check with a qualified professional. Validate markup with search engine testing tools before publishing.