XML sitemap files are used by bots or spiders / crawlers to show search engines, like Google and Bing, where to find all the pages on your website and how they are organized.
What is a sitemap of a website?
A sitemap is a file in the root directory of your site where you provide information about the pages, videos, and other files on your site, and the relationships between them.
Search engines like Google read this file to more intelligently crawl your site.
The snippet below shows the sitemap.xml file contents for this site up to this page.
What tools are available to create a sitemap?
Online sitemap generators are generally free to use for sites with less than 500 pages. Screamingfrog requires you to download a programme and to run it locally (on your pc).