OhMyApps
Back to Blog
Tools SEO Tutorial Sitemap XML

XML Sitemap Generator Guide: Help Crawlers Find Pages

3 min read By OhMyApps

An XML sitemap helps search engines discover the canonical pages you want crawled. The Sitemap XML Generator is useful when you need to create a small sitemap manually, prepare examples for a static site, or understand what each sitemap field means before automating it.

A sitemap is not a guarantee of indexing. It is a clean discovery signal. The quality of the URLs matters more than the number of entries.

What Belongs in a Sitemap

Put canonical, public, indexable URLs in the sitemap. A good entry should point to the final URL that users and crawlers should see. Avoid URLs that redirect, return errors, require login, are blocked by robots.txt, or are marked noindex.

For a small site, this usually includes the homepage, important product pages, category hubs, evergreen guides, and policy pages. For a large site, sitemaps are usually generated automatically from the CMS, framework, or build system.

Beginner Workflow

  1. Open the Sitemap XML Generator.
  2. Enter one canonical URL per line.
  3. Add a last modified date when you know the page was materially changed.
  4. Use priority and change frequency only as hints, not promises.
  5. Copy the XML and save it as sitemap.xml.
  6. Reference it from robots.txt and submit it in search console tools if needed.

Before publishing, open a few URLs from the sitemap and confirm they return the live page directly.

Lastmod, Priority, and Changefreq

lastmod should reflect meaningful content changes, not every deploy. Updating it every day for unchanged pages makes the signal less useful.

priority is relative inside your own site. It does not make your site outrank other sites. Use higher values for core hubs and lower values for legal or support pages if you include them.

changefreq is also a hint. A blog index may change weekly, while a privacy policy may change rarely. Search engines can still crawl at their own pace.

Common Sitemap Mistakes

The biggest mistake is including every possible URL variant: trailing slash and non-trailing slash, tracking parameters, redirects, old paths, or filtered search pages. That creates duplicate signals.

Another common problem is listing pages that should not be indexed. If a page is low-value, duplicate, private, or deliberately noindex, leave it out of the sitemap. Keep the sitemap focused on URLs that deserve discovery.

Quick Quality Check

After generating the XML, scan it like a crawler would. Are the URLs absolute? Do they use the preferred domain? Do they avoid tracking parameters? Do they return 200 responses instead of redirects or errors? A short clean sitemap is better than a large sitemap filled with weak URLs.

Pair It With robots.txt

After creating a sitemap, add a line such as Sitemap: https://example.com/sitemap.xml to robots.txt. Use the Robots.txt Generator when you need to build crawl rules and the sitemap hint together.


Try the free Sitemap XML Generator to create clean sitemap entries for canonical, crawlable pages.

OhMyStar icon

macOS

Try OhMyStar

The best way to organize your GitHub Stars

Learn More