An XML sitemap tells search engines which URLs you want crawled. It helps most on large or new sites, but only when the list is clean: every URL should load with a 200 status, be indexable and be the canonical version. Sitemaps often fill up with redirected, deleted or noindexed pages over time, and those send mixed signals.
Enter a sitemap address, or just your website, and the checker looks for Sitemap lines in robots.txt first. It reads sitemap indexes and lets you open each child sitemap. For a URL set it checks the count against the 50,000-URL limit, the size against 50 MB, duplicates, URLs on another host or using http instead of https, query strings and fragments, and lastmod dates that are invalid, in the future or identical across the whole file. A random sample of up to 10 URLs is then fetched to check status codes, redirects, noindex and canonical tags.
You can download the URLs as CSV for a fuller crawl elsewhere. Google ignores the priority and changefreq tags and uses lastmod only when it is consistently accurate, so a correct lastmod matters more than either. The tool reads up to 5 MB per file and cannot open compressed .gz sitemaps.