What is an XML Sitemap?
seoDefinition
An XML sitemap is a file that lists all important URLs on a website, along with optional metadata like last modification date, change frequency, and priority. It helps search engine crawlers discover and index pages efficiently — especially pages that might not be easily found through internal linking alone.
Detailed Explanation
A sitemap is like a map you hand directly to Google — instead of making Googlebot discover every page by following links, you give it an explicit list of all your important URLs. This is especially critical for: large websites (100+ pages), newly launched sites with few backlinks, sites with media-heavy or dynamic content, and e-commerce sites with deep product hierarchies.
The XML sitemap format is standardized by sitemaps.org. A basic entry looks like: <url><loc>https://toolsdock.in/tools/emi-calculator</loc><lastmod>2026-08-01</lastmod><priority>0.9</priority></url>.
Once created, submit your sitemap URL to Google Search Console (Settings → Sitemaps) and Bing Webmaster Tools. Next.js automatically generates a dynamic sitemap at /sitemap.xml if you create a sitemap.ts file in the app directory. Use ToolsDock's XML Sitemap Generator to create one for any site.
What belongs in a sitemap, and what does not
List only canonical, indexable URLs that return a 200 status. Leave out redirected URLs, 404s, noindex pages, parameter variations and duplicates. A clean sitemap tells Google 'these are the pages I want indexed', while a messy one with errors teaches Google to trust the file less.
A single sitemap file can hold up to 50,000 URLs or 50 MB uncompressed. Larger sites split into several files and list them in a sitemap index. The XML Sitemap Generator creates a valid file for smaller sites.
lastmod, priority and changefreq
Google uses the lastmod value only when it is consistently accurate, meaning it reflects real content changes rather than the build date. It ignores priority and changefreq. If you cannot keep lastmod honest, it is better to omit it than to stamp every URL with today's date.
Submitting and checking your sitemap
Reference the sitemap in robots.txt with a Sitemap: line and submit it in Google Search Console and Bing Webmaster Tools. Then watch the Pages report to see how many submitted URLs are indexed and why others are not, such as 'Crawled, currently not indexed' or 'Discovered, currently not indexed'.
A sitemap helps discovery but does not force indexing or ranking. Pages still need to be useful, unique and linked from elsewhere on your site. See robots.txt for how crawl rules and sitemaps work together.
🗺️ XML Sitemap Generator
Build XML sitemaps instantly