Why XML sitemaps still earn their keep

Crawlers discover URLs through linksβ€”but sitemaps give search engines an explicit map of pages you care about. New sites, large catalogs, and recently redesigned architectures benefit most.

Fah Swe Tools / OptimizeImage includes an XML sitemap generator to help you create a structured list of URLs for Google Search Console and other search engines.

What an XML sitemap is (and is not)

A sitemap is a machine-readable file (often sitemap.xml) listing canonical URLs you want discovered. It can include optional hints like lastmod.

A sitemap is not:

Think of it as a discovery aid and inventory.

When to generate or regenerate a sitemap

After major IA changes, update the sitemap and internal links together.

How to create and submit a sitemap

1. Collect the canonical URLs that should be indexed (exclude thank-you pages, cart, account, faceted duplicates). 2. Generate XML with the sitemap generator. 3. Host the file at a public URL such as https://example.com/sitemap.xml. 4. Reference it in robots.txt with Sitemap: https://example.com/sitemap.xml. 5. Open Google Search Console β†’ Sitemaps β†’ submit the URL. 6. Monitor β€œDiscovered” vs indexed counts over the following days/weeks. 7. Fix exclusion issues (robots, noindex, canonicals) when important URLs stall.

URL quality rules for sitemaps

Include:

Exclude:

A smaller accurate sitemap beats a bloated noisy one.

Sitemap index files for large sites

When you exceed practical size limits or logical groupings, use a sitemap index that points to multiple child sitemaps (products, blog, marketing pages). Keep each child focused so updates are easier.

E-commerce tip: separate rapidly changing product sitemaps from stable content sitemaps.

Search Console diagnostics to watch

After submission, investigate:

Sitemaps surface inventory problems earlyβ€”use that signal.

Pair sitemaps with on-page and performance hygiene

Discovery without quality still fails. For new URLs in the sitemap:

Especially for image-heavy launches, compress assets before announcing crawlability.

Common sitemap mistakes

Maintenance cadence

Whenever automation exists in your CMS, still spot-check output qualityβ€”plugins can include junk URLs.

Bottom line

An XML sitemap helps search engines understand which URLs matter. Generate a clean file, host it, submit it in Search Console, and keep it aligned with canonical reality.

Create your sitemap with the free XML sitemap generator on OptimizeImage, then submit it in Google Search Console.