developer7 min read

XML Sitemap Generator Online Free — Create & Download sitemap.xml

Generate a valid XML sitemap online for free. Enter your URLs, set priorities, and download sitemap.xml ready to submit to Google Search Console. No signup needed.

TN

ToolNest Team

April 3, 2026

#sitemap generator#xml sitemap#seo tools#sitemap.xml

What Is an XML Sitemap?

An XML sitemap is a file that lists every page on your website, along with metadata like when each page was last updated, how often it changes, and how important it is relative to other pages. You submit this file to Google and other search engines so their crawlers can find and index all your pages efficiently.

Without a sitemap, Google discovers your pages by following links. This works for simple sites, but for larger sites with hundreds or thousands of pages, a sitemap is essential to ensure complete indexing.

Why You Need an XML Sitemap

  • New websites — Google hasn't built a crawl profile for your site yet. A sitemap tells Google exactly what to index from day one.
  • Large websites — Sites with 100+ pages need a sitemap to ensure all pages are discovered and crawled.
  • Pages without inbound links — Orphaned pages (no internal links pointing to them) will never be found by crawlers without a sitemap.
  • Recently changed content — The <lastmod> tag signals to Google that content has been updated and should be re-crawled.
  • Multimedia content — Dedicated image and video sitemaps help Google index media that isn't easily discoverable through text links.

How to Generate an XML Sitemap Online

The ToolNest sitemap generator creates a valid sitemap.xml in seconds:

  1. Enter your URLs — Paste your page URLs one per line, or enter your website URL and let the tool scan it.
  2. Set change frequency — Choose how often each page changes (daily, weekly, monthly).
  3. Set priority — Assign a priority value (0.1 to 1.0) to each page. Your homepage should be 1.0; blog posts 0.7; static pages 0.5.
  4. Generate and download — Click Generate to get a valid XML sitemap. Download the sitemap.xml file.
  5. Upload to your server — Place the sitemap.xml in your site's root directory so it's accessible at https://yourdomain.com/sitemap.xml.
  6. Submit to Google — Go to Google Search Console → Sitemaps → enter sitemap.xml → Submit.

XML Sitemap Format

A valid XML sitemap 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-04-01</lastmod>
    <changefreq>daily</changefreq>
    <priority>1.0</priority>
  </url>
  <url>
    <loc>https://example.com/about</loc>
    <lastmod>2026-03-15</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.5</priority>
  </url>
</urlset>

Each <url> block contains:

  • <loc> — The full URL of the page (required)
  • <lastmod> — Date last modified in YYYY-MM-DD format (recommended)
  • <changefreq> — How often the page changes: always, hourly, daily, weekly, monthly, yearly, never (optional hint)
  • <priority> — Relative importance from 0.0 to 1.0 (optional)

Sitemap Best Practices

  • Maximum 50,000 URLs per sitemap — Larger sites should split into multiple sitemaps with a sitemap index file.
  • Only include canonical URLs — Don't include URLs with ?utm_source= parameters or duplicate pages.
  • Keep <lastmod> accurate — Only update the date when the page content actually changes. Google ignores inaccurate lastmod dates.
  • Don't inflate priority — Setting every page to priority 1.0 is meaningless. Use a realistic hierarchy.
  • Declare your sitemap in robots.txt — Add Sitemap: https://yourdomain.com/sitemap.xml to your robots.txt file.

How to Submit Your Sitemap to Google

  1. Go to Google Search Console
  2. Select your property
  3. Click Sitemaps in the left sidebar
  4. Enter the sitemap URL: sitemap.xml
  5. Click Submit

Google will process the sitemap within 24–48 hours. You can check the status to see how many URLs were discovered and indexed.

Sitemap vs robots.txt

File Purpose
sitemap.xml Tells Google WHAT pages exist
robots.txt Tells Google WHICH pages to crawl

Both files work together. Use the robots.txt generator alongside the sitemap generator for complete SEO control.

Generate your free XML sitemap now with the ToolNest sitemap generator — no signup, instant download.

Share this article