Oct
4

How to Generate an XML Sitemap for Your Website (Free)

10/04/2026 12:00 AM 投稿者 Seovaro Team の


An XML sitemap is one of those things every SEO checklist mentions but few people truly understand. It's a simple file — just a list of your site's important URLs — yet it plays a real role in helping search engines discover and crawl your content.

The good news: you don't need to hand-write XML or buy expensive software. You can generate a sitemap for free in minutes. This guide shows you how, explains what actually matters in a sitemap, and covers the common mistakes that make sitemaps useless.

What Is an XML Sitemap (and Why Bother)?

An XML sitemap is a file — usually called sitemap.xml — that lives at the root of your website (like yoursite.com/sitemap.xml). It lists the URLs you want search engines to know about, along with optional metadata like when each page was last updated.

Think of it as handing Google a map of your site instead of making its crawler wander around hoping to find everything. It's especially valuable if:

  • Your site is new and doesn't have many backlinks yet, so Google may not discover all your pages on its own.
  • Your site is large (thousands of pages), where crawlers might miss deep or isolated pages.
  • Your pages are not well linked internally — orphan pages that nothing links to are invisible without a sitemap.
  • You publish time-sensitive content (news, events), where fast discovery matters.

A sitemap doesn't guarantee rankings or even indexing. But it removes one excuse for Google not knowing your pages exist.

What Goes Into a Sitemap

A basic sitemap entry looks like this:

<url>
  <loc>https://yoursite.com/blog/my-article</loc>
  <lastmod>2026-10-01</lastmod>
  <changefreq>monthly</changefreq>
  <priority>0.8</priority>
</url>

In practice, only <loc> (the URL) and <lastmod> (last modified date) really matter. Google has said it largely ignores changefreq and priority — they're hints, not commands. A clean sitemap with accurate URLs and honest last-modified dates beats a fancy one with inflated priorities.

What to include:

  • Canonical versions of your important pages (homepage, key landing pages, blog posts, product pages).
  • Pages that return HTTP 200 and are indexable.

What to leave out:

  • Redirects, 404s, and noindexed pages.
  • Duplicate or thin pages you don't want indexed.
  • Admin pages, cart pages, thank-you pages — anything not meant for search.

A sitemap is not a junk drawer. Every URL in it should be a page you'd be happy to see in Google's index.

How to Generate an XML Sitemap (4 Free Methods)

Method 1: Use a free online sitemap generator (easiest)

If your site is small to medium (under a few thousand pages), an online generator is the fastest option. Seovaro's free XML sitemap generator crawls your site and builds a properly formatted sitemap.xml for you — no sign-up, no software to install.

Just enter your domain, let it crawl, and download the file. Then upload it to your site's root directory via FTP or your hosting file manager. That's genuinely it.

This method is ideal for static sites, small business websites, and anyone who doesn't want to touch code.

Method 2: Use your CMS's built-in feature or plugin

Most content management systems handle sitemaps automatically:

  • WordPress: SEO plugins like Yoast SEO and Rank Math generate sitemaps automatically and keep them updated as you publish. Your sitemap is usually at yoursite.com/sitemap_index.xml.
  • Shopify: Generates a sitemap automatically at yoursite.com/sitemap.xml.
  • Wix / Squarespace: Both create sitemaps automatically.

If you're on one of these platforms, check whether a sitemap already exists before generating one manually — you probably don't need to.

Method 3: Generate it with a desktop crawler

Tools like Screaming Frog (free for up to 500 URLs) can crawl your site and export an XML sitemap. This gives you more control — you can filter which URLs get included — and it's a good option for mid-sized sites where an online tool hits limits.

Method 4: Write it by hand (small sites only)

If your site has a handful of pages, you can write the XML yourself following the format above. It's tedious but gives you total control. Honestly, for more than 20 pages, use one of the methods above.

After Generating: Submit Your Sitemap

Generating the file is only half the job. Now tell Google about it:

  1. Upload the sitemap.xml to your website's root directory.
  2. Verify it's accessible by visiting yoursite.com/sitemap.xml in your browser.
  3. Reference it in robots.txt by adding a line like: Sitemap: https://yoursite.com/sitemap.xml. If you don't have a robots.txt yet, you can create one with a robots.txt generator.
  4. Submit it in Google Search Console under Sitemaps. Google will confirm it processed the file and report how many URLs it found.

Once submitted, check back in a few days to see how many of your URLs Google has actually indexed. You can also spot-check individual pages with a Google index checker to confirm they're in the index.

Keeping Your Sitemap Fresh

A sitemap is not a one-and-done task. Every time you publish, update, or delete a page, your sitemap should reflect it:

  • New pages: Add them promptly so Google discovers them faster.
  • Deleted pages: Remove them. A sitemap full of 404s teaches Google to distrust it.
  • Updated pages: Refresh the <lastmod> date so crawlers know to re-fetch.

If you use a CMS plugin, this happens automatically. If you generated your sitemap manually, set a reminder to regenerate it monthly — or whenever you publish in bulk.

Common Sitemap Mistakes

  • Including non-indexable URLs. Noindex pages, canonicalized duplicates, and blocked URLs don't belong in a sitemap. They create conflicting signals.
  • Stale lastmod dates. If every page claims it was updated "today," Google learns to ignore the field. Be honest.
  • Exceeding limits. A single sitemap supports up to 50,000 URLs or 50 MB uncompressed. Larger sites need a sitemap index file that points to multiple sitemaps.
  • Submitting but never checking. Search Console tells you about sitemap errors (couldn't fetch, unsupported format, too many URLs). Read those reports.
  • Forgetting robots.txt. The robots.txt reference is a backup discovery method. It takes ten seconds — do it.

FAQ

Do I need a sitemap if my site is small?

Strictly speaking, no — Google can crawl a small, well-linked site without one. But a sitemap costs nothing and speeds up discovery, especially for new sites with few backlinks. There's no reason not to have one.

How often should I update my sitemap?

Whenever your content changes. For active blogs and stores, that means automatically (use a plugin or scheduled regeneration). For mostly static sites, regenerating monthly is fine.

Can I have multiple sitemaps?

Yes. Large sites commonly use a sitemap index — one file that lists several sitemaps (e.g., one for blog posts, one for products). Each individual sitemap still follows the 50,000 URL / 50 MB limit.

Does a sitemap improve my rankings?

Not directly. A sitemap helps Google discover and crawl your pages, which is a prerequisite for ranking — but the ranking itself depends on content quality, relevance, backlinks, and all the usual factors.

What's the difference between an XML sitemap and an HTML sitemap?

An XML sitemap is for search engines (machine-readable, at /sitemap.xml). An HTML sitemap is a human-readable page listing your site's sections for visitors. They serve different audiences; the XML one is what matters for SEO.

The Bottom Line

An XML sitemap is cheap insurance for your site's discoverability. Generate it once, submit it, keep it fresh — and stop worrying about whether Google knows your pages exist.

Generate yours now with Seovaro's free XML Sitemap Generator — enter your domain, download your sitemap.xml, and upload it to your site in minutes.