Toolnova
SEOTutorial

XML Sitemaps: What They Are and How to Create One for SEO

An XML sitemap helps Google discover and index your pages faster. Learn what belongs in a sitemap, what to leave out, and how to generate one free in seconds.

TNToolnova Team2 min read

An XML sitemap is a file that lists the important URLs on your website. You submit it to Google Search Console so Googlebot knows which pages exist and how frequently they change. It does not guarantee indexing, but it accelerates discovery — especially for new sites and large ones.

What an XML sitemap looks like

A sitemap is a plain XML file. The minimum version looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://example.com/</loc>
    <lastmod>2026-06-01</lastmod>
    <changefreq>weekly</changefreq>
    <priority>1.0</priority>
  </url>
</urlset>

Each <url> entry has:

  • loc (required) — the full URL
  • lastmod (recommended) — the date the page was last changed (ISO 8601: YYYY-MM-DD)
  • changefreq (optional hint) — how often it changes (daily, weekly, monthly, yearly)
  • priority (optional hint) — relative importance from 0.0 to 1.0 (default 0.5)

Google treats changefreq and priority as hints, not instructions — it crawls based on its own signals, but accurate values do no harm.

What to include

  • All canonical, indexable pages: homepage, category pages, product/service pages, blog posts.
  • Pages that have real content and are worth ranking.

What to leave out

  • Pages with a noindex tag — pointless to list pages you do not want indexed.
  • Duplicate or paginated pages (use canonicals instead).
  • Admin, login, and checkout pages.
  • URLs that redirect — list the final destination, not the redirect.
  • Broken or 404 pages.

Generating your sitemap

The XML Sitemap Generator builds a valid sitemap from a list of URLs:

  1. Open the XML Sitemap Generator.
  2. Enter each URL, one per line.
  3. Set the last-modified date and change frequency for each (or apply defaults to all).
  4. Download the generated sitemap.xml.
  5. Upload it to your website root: https://yoursite.com/sitemap.xml

Submitting to Google

  1. Go to Google Search Console.
  2. Select your property.
  3. Navigate to Sitemaps in the left sidebar.
  4. Enter the sitemap URL and click Submit.

Google will fetch and process it, typically within a few days. The Search Console report shows how many URLs were submitted versus how many were indexed.

Robots.txt connection

Add a reference to your sitemap in your robots.txt file so any crawler can find it automatically:

Sitemap: https://yoursite.com/sitemap.xml

The Robots.txt Generator handles this for you alongside the crawl rules.

When to update your sitemap

Regenerate and re-submit whenever you add a significant number of new pages or delete old ones. For CMS-based sites, many platforms regenerate the sitemap automatically on publish.

A sitemap is a five-minute task that ensures your new content gets discovered and indexed as quickly as possible.

Explore 285+ free tools

No signup, no watermarks — everything runs privately in your browser.

Browse all tools

Keep reading