Why a sitemap exists alongside normal links
Search engines discover most pages by following links from page to page — but a sitemap.xml file gives crawlers a direct, structured list of every URL you want indexed, which matters most for large sites, sites with pages that aren't well linked internally, or newly published pages that haven't accumulated many internal links yet. It doesn't guarantee indexing (Google still decides what to actually include based on quality and relevance), but it removes the discovery bottleneck of relying purely on link-following.
What each entry tells a crawler
- loc: The full URL of the page.
- lastmod: When the page was last meaningfully updated — helps crawlers prioritize re-checking recently changed pages.
- changefreq: A hint (not a guarantee) about how often the page tends to change.
- priority: A relative signal (0.0-1.0) of a page's importance within your own site — this is a weak, largely ignored signal in modern search algorithms, but still commonly included for completeness.
Keeping a sitemap accurate matters more than having one
A sitemap listing pages that no longer exist, or missing pages that were added after the sitemap was generated, actively works against you — crawlers spending time on dead URLs or never finding new content because the sitemap wasn't updated. A sitemap is only useful if it's kept in sync with the site's actual current structure, which is why regenerating it after significant content changes matters more than the initial setup.
Using this generator
Enter your site's URLs (or a base domain if your structure is simple), and the tool outputs a properly formatted sitemap.xml ready to upload to your site's root. After publishing, submit it directly through Google Search Console so Google is explicitly aware of its location rather than relying purely on the robots.txt Sitemap reference.
Common questions
Does a sitemap guarantee my pages get indexed?
No — it only helps with discovery. Google still independently decides whether each page meets its quality bar for indexing, regardless of sitemap inclusion.
How many URLs can one sitemap file contain?
The specification caps a single sitemap file at 50,000 URLs; larger sites use a sitemap index file that references multiple individual sitemap files.
Related tools
Page last reviewed: July 2026
CodeMaster Academy