Enter your URL and get a clean XML sitemap built from a real crawl of your site — ready to submit to Google Search Console. No signup required. Download in seconds.
An XML sitemap is a file that lists the pages on your website you want search engines to index. Each entry holds the page’s URL and, optionally, when it was last modified.
A sitemap points search engines straight to the pages that matter, so they can crawl and index them. Google also uses sitemaps as a canonicalization signal — a hint about which version of a page to show in search.
Sitemaps help search engines discover the pages on your site. If Google cannot find a page, it cannot index it — and you cannot rank. A sitemap is best practice for every website, and it matters most when:
On big sites it is easy for search engines to miss new or recently updated pages. A sitemap gives them a complete list to work from.
Search engines find pages by following links. A brand-new site with few external links is hard to discover, so a sitemap helps you get found faster.
Pages that are not linked from anywhere else on your site can go unnoticed. A sitemap surfaces these orphan pages to search engines.
Sitemaps can point search engines to content that is otherwise hard to crawl, and act as a canonicalization signal for which pages to prioritize.
First check whether you already have one at yourdomain.com/sitemap.xml or yourdomain.com/sitemap_index.xml. If you do not have one, generate it with this tool: enter your domain and download the XML file we build from the pages Ahrefs has already crawled for your site.
Name the file sitemap.xml and upload it to the root folder of your site, so it is reachable at yourdomain.com/sitemap.xml.
Open the robots.txt file in your root directory and add a line pointing to your sitemap: Sitemap: https://www.yourdomain.com/sitemap.xml. Add one line per sitemap if you have more than one.
Once your sitemap is live, tell Google about it. You only need to do this once.
Confirm where your sitemap lives, usually yourdomain.com/sitemap.xml. Open it in a browser to make sure it loads.
In Google Search Console, select your property and go to Indexing → Sitemaps.
Enter your sitemap URL and click Submit. Google will fetch it and revisit it periodically to pick up new pages, so you do not need to resubmit each time you publish.
Search Console reports most sitemap issues, such as a submitted URL being blocked by robots.txt. Adding your sitemap to robots.txt as well helps other search engines find it.
Most free sitemap tools run a slow live crawl that stalls after a few hundred URLs. We build your sitemap from pages Ahrefs has already crawled, so it returns in seconds and scales to large sites.
pages crawled every 24 hours by the Ahrefs crawler, one of the most active web crawlers after Google.
URLs per sitemap on the free tool — double the 500-URL cap most free generators stop at.
to generate, because we read an existing index instead of crawling your site live while you wait.
Enter a URL and you get a complete, submit-ready package. Here is what it includes:
A valid XML sitemap. Built to the sitemaps.org 0.9 spec Google uses, with absolute URLs in the loc tag, ready to upload and submit.
Last-modified dates where detectable. We add a lastmod date from the last time each page was crawled, so search engines know what to revisit.
A plain-text URL list. The same URLs as a simple text file — handy for spot checks, robots.txt or other tools.
Asset and query URLs filtered out. Images, scripts, feeds and tracking-parameter URLs are skipped, so your sitemap lists real pages, not clutter Google should ignore.
A count of pages we excluded. See how many crawled URLs were left out — your starting point for a deeper clean-up in Site Audit.
A sitemap lists your pages. Site Audit tells you which of them have problems and why search engines might ignore them.
Crawl your whole site on demand and surface 170+ SEO and on-page issues across speed, HTML, links and more.
Find pages blocked by noindex, robots.txt or canonical tags that are quietly kept out of Google.
Spot orphan pages and weak internal linking, then fix the structure so crawlers reach every page.
Catch critical SEO issues early, before they impact performance and cost you visibility.
Site Audit is included with Ahrefs Free ↗
What is an XML sitemap?
Do I need a sitemap?
How do I submit my sitemap to Google?
What is the URL limit for a sitemap?
What file formats do I get?
Why are some of my pages missing from the sitemap?
How fresh is the data?
How is this different from Site Audit?
Is this tool really free?