·5 min read·Blog

How to Make a Website Sitemap (XML and HTML) — Free Generator

A sitemap tells search engines which pages your site has and when they were last updated. Here's when you actually need one, how to generate it free, and how to submit it to Google.

What a sitemap actually does

A sitemap is a file (usually XML) that lists the URLs on your website. It tells search engine crawlers where to find your pages and optionally when they were last updated and how often they change.

Two types exist:

  • XML sitemap (sitemap.xml): Primarily for search engines. Contains URLs, last-modified dates, and change frequency.
  • HTML sitemap: A page on your site listing all pages. Primarily for human visitors who can't find what they're looking for via navigation.

When Google says you actually need a sitemap

According to Google's own documentation, you benefit from a sitemap if:

  • Your site is large — more than a few hundred pages where Googlebot might miss some
  • Your site is new — few external links pointing to it, so crawlers rarely visit
  • You have rich media content — videos, images you want indexed in Google Images
  • Your site has isolated pages — pages not well-linked from other pages on your site

For small, well-linked sites (under 100 pages), a sitemap provides minimal SEO benefit. Googlebot will find your pages by following links. But having one doesn't hurt, and the setup takes 5 minutes.

XML sitemap format

<?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>
  <url>
    <loc>https://example.com/about</loc>
    <lastmod>2026-05-15</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://example.com/blog/post-title</loc>
    <lastmod>2026-06-01</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.7</priority>
  </url>
</urlset>

Important notes on the fields:

  • loc: Required. Must be a full URL including https://
  • lastmod: Optional but recommended. Use the actual last modification date — don't set everything to today's date
  • changefreq: Optional and largely ignored by Google — it's advisory only
  • priority: Optional. Relative priority between 0.0 and 1.0. Google largely ignores this too — focus on having accurate lastmod instead

Generating a sitemap free

The free sitemap generator creates XML sitemaps for any site — enter your domain and it will attempt to crawl and discover pages automatically:

  1. Enter your website URL
  2. Set the maximum pages to crawl (start with 500 for most sites)
  3. Click Generate — the tool crawls your site following internal links
  4. Download the generated sitemap.xml
  5. Upload to your server at https://yourdomain.com/sitemap.xml

Platform-specific sitemap generation

  • WordPress: Yoast SEO and Rank Math both auto-generate sitemaps at /sitemap_index.xml. No manual work needed.
  • Shopify: Auto-generates at /sitemap.xml. Nothing to configure.
  • Wix: Auto-generates and submits to Google automatically in modern Wix.
  • Next.js: Use the next-sitemap package or the built-in Metadata API's sitemap.ts route.
  • Static sites: Generate during build with a script or plugin depending on your generator (Gatsby, Eleventy, Hugo all have sitemap plugins).

Submitting to Google Search Console

  1. Go to Google Search Console (search.google.com/search-console)
  2. Select your property
  3. In the left sidebar: Indexing → Sitemaps
  4. Enter your sitemap URL (e.g., sitemap.xml) and click Submit

Google will process the sitemap within hours and start crawling the listed URLs. You can return to the Sitemaps section to see how many URLs were discovered vs. indexed.

Also add your sitemap URL to your robots.txt file:

User-agent: *
Allow: /

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

Sitemap index files (for large sites)

A single sitemap file can contain up to 50,000 URLs and must be under 50 MB uncompressed. Large sites use a sitemap index — an XML file that lists multiple sitemaps:

<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <sitemap>
    <loc>https://example.com/sitemap-pages.xml</loc>
  </sitemap>
  <sitemap>
    <loc>https://example.com/sitemap-blog.xml</loc>
  </sitemap>
  <sitemap>
    <loc>https://example.com/sitemap-products.xml</loc>
  </sitemap>
</sitemapindex>

Related tools


Written by Achraf A., founder of TheFreeAITools.

Browse by category

Not sure which tool you need? Start with a category.

Everything you can do — for free

No software to buy. No account to create. Just open a tool and get it done.

Work with images

Compress photos before sending them by email, resize pictures for social media, remove backgrounds, or pick the perfect color for a design project — all without installing any app.

Edit and format text

Count words and characters in an essay, compare two documents side by side, convert text to different formats, or generate placeholder text for a presentation.

Stay safe online

Create a strong unique password in one click, check how secure a password is, encode or decode data, and generate secure tokens — your data never leaves your device.

Calculate anything

BMI, loan repayments, unit conversions, date differences, and dozens of other everyday calculations — no spreadsheet or formula knowledge required.

The Free AI Tools is a free collection of 221+ online tools that work directly in your web browser — no download, no installation, no account required. Whether you need to compress an image for email, count words in an essay, generate a strong password, create a QR code for your business, or format JSON for development — you will find a simple, free tool here.

Every tool is privacy-first: your files, text, and data never leave your device. Tools cover image editing, text processing, developer utilities, security & encoding, SEO & web, design & CSS, and more.

☕ Support Us