Skip to content

Generate an XML sitemap

Crawl options, JavaScript sites and how pricing per URL works.

  • Lesson 3 of 3
  • Beginner
  • 5 min read
  • 2:48 video
  • Checked against the product 2026-11-03

Listen to this lesson · 2:47

In shortThe Sitemap generator crawls your site, including JavaScript-built pages, and writes an XML sitemap you can download and upload. Open Content → Schema and AI files → Sitemap generator, enter your URL, pick the settings and click Generate. You pay per URLs found, charged as the crawl runs, and it stops adding URLs when your credits run out. Each sitemap currently holds up to 50 URLs, so it suits small sites.

How to use it in AI Rank Lab

  1. Find it in the dashboardContent → Schema and AI files → Sitemap generator
  2. Watch while you workOpen Sitemap generator from here and the video plays in a small corner window of your dashboard, so you can follow each step on your own data. Expand it or go full screen any time. Open Sitemap generator with the video
  3. Turn it into a routineThese playbooks show where this fits in a repeatable workflow:

What an XML sitemap is for

An XML sitemap is a file, usually at yoursite.com/sitemap.xml, that lists the pages you want search engines to find. It helps crawlers discover pages they might miss, such as new pages or pages with few internal links. Search engines that feed AI answers find your pages the same way, so a clean sitemap helps both.

Many platforms already make one for you: WordPress, Shopify, Wix, Squarespace and most SEO plugins do. If yours exists and updates itself, keep using it. This generator is for sites that have none, often hand-built or JavaScript sites.

Before you start

  • Check whether yoursite.com/sitemap.xml already exists.
  • Check your robots.txt. The crawler respects it, so pages you've blocked there won't be found.
  • Make sure you have credits. The Generate button stays disabled at a zero balance.

Generate a sitemap

  1. Open the generatorGo to Content → Schema and AI files → Sitemap generator. The page has Generator and History buttons at the top and a note about JavaScript rendering.
    Sitemap Generator page with Generator and History buttons, the information alert about JavaScript rendering, the Website URL card and the Sitemap Settings card
  2. Enter your URLType your homepage into the Website URL box. Under it you'll see the cost per URLs and your balance.
  3. Choose the settingsIn Sitemap Settings, pick a Change Frequency and a Priority, and tick Include last modified date if you want lastmod dates. These values are applied to every URL in the file.
    Sitemap Settings card with the Change Frequency dropdown set to Weekly, the Priority dropdown and the Include last modified date checkbox
  4. Generate and watch the progressClick Generate. The progress card shows each step (checking robots.txt, crawling, generating), the URLs found so far, the page being crawled, and an estimated cost against your balance. The crawler follows links up to three levels deep. If it finds very few pages, it switches to rendering JavaScript in a real browser to find pages built by React, Vue, Angular or Next.js.
    Generating Sitemap progress card with the status message, a URLs found badge, the page currently being crawled and the estimated cost with balance
    The cost builds up as URLs are found.
  5. Download and publishWhen it's done, Crawl Statistics shows URLs discovered, URLs in the sitemap and crawl time, and Generated Sitemap shows the XML. Click Download XML or Copy. Upload the file to your site's root, add a Sitemap: https://yoursite.com/sitemap.xml line to robots.txt, and submit it in Google Search Console.
    Crawl Statistics with URLs Discovered, URLs in Sitemap, Crawl Time and the 50 URL limit tile, above the Generated Sitemap XML with Download XML and Copy buttons

How pricing per URL works

You pay in steps of URLs found, and the credits come off your balance during the crawl, not at the end. Before the crawl starts, the generator works out how many URLs your balance can pay for. If your credits run out mid-crawl, it says the limit was reached and stops adding URLs, so you never go below zero.

50 URLs per sitemap, and the charge follows URLs found

Each sitemap currently includes at most 50 URLs on every plan, whatever the page's "Free Tier Limit" wording suggests. The crawler can find more than 50, and the charge follows the URLs it finds. On a large site you can pay for more URLs than end up in the file. If the crawl passes 50, a Heads up! box suggests recharging; recharging doesn't raise the 50-URL limit today. For sites with more than about 50 pages, use your CMS's sitemap or a dedicated crawler.

Download before you leave the page

The History button opens an empty list today: past sitemaps aren't loaded back into the page. Download or copy the XML as soon as the crawl finishes, because running it again charges again.

How to read the XML

TagWhat it holdsWorth knowing
<loc>The page URLThe only required tag; check every URL is the canonical version you want indexed
<lastmod>Last modified dateUseful only if accurate; Google uses it when it trusts it
<changefreq>How often the page changesGoogle has said it ignores this tag
<priority>Relative importance, 0.0 to 1.0Google has said it ignores this tag too
Check the list before you upload

Scan the URLs in the XML. Remove thank-you pages, test pages, duplicates with tracking parameters, or anything that redirects. A sitemap should list only pages you want in search results.

Check yourself

1. Your credits run out halfway through a crawl. What happens?
2. You run the generator on a 400-page site. What should you expect?
3. Which sitemap tag does Google say it ignores?

0 of 3 answered.

Progress is saved in this browser.

Screenshots and video come from an AI Rank Lab demo account. Where a screen needs data that account doesn't have, such as a connected Google account or real visitors, it shows fictional example.com data.

Transcript
In this lesson you'll build an XML sitemap. An XML sitemap is a file, usually at your site slash sitemap dot xml, that lists the pages you want search engines to find. It helps crawlers discover new pages, or pages with few links pointing to them. First, check whether you already have one. WordPress, Shopify, Wix, Squarespace and most SEO plugins make one for you. If yours exists and updates itself, keep using it. This generator is for sites that have none. Go to Content, then Schema and AI files, then Sitemap generator. Type your homepage into the Website URL box. Under it you'll see the price and your balance. Next, the settings. Choose a change frequency, a priority, and whether to include last modified dates. These are applied to every URL. Honestly, Google has said it ignores change frequency and priority, so don't spend long on them. An accurate last modified date is the useful one. Click Generate. You'll see the progress live: checking robots dot txt, crawling, and generating. The crawler respects your robots file and follows links three levels deep. If it finds very few pages, it renders JavaScript in a real browser, which helps with sites built in React, Vue or Next.js. Now, pricing. You pay in steps of URLs found, and the credits come off during the crawl. If your balance runs out, it stops adding URLs, so you never go below zero. Here's the important limit. Each sitemap holds at most fifty URLs, on every plan. The crawler can find more than fifty, and the charge follows what it finds. So on a large site, you can pay for more URLs than end up in the file. If the crawl passes fifty, you'll see a box suggesting you recharge. Recharging doesn't raise that limit. For bigger sites, use your CMS sitemap or a dedicated crawler. When it's done, check the URL list. Remove test pages, thank-you pages and duplicates. Then download the XML, upload it to your site's root, add a Sitemap line to robots dot txt, and submit it in Google Search Console. One more thing: the History view doesn't show past sitemaps today, so download the XML before you leave the page. Running the crawl again charges again. That's the end of the Schema and AI files course. A good next step is the SEO audits course, to find what else on your site needs fixing.

Put the lesson to work

Paste your site and get a free SEO, AEO and GEO audit with the fixes, then come back to the next lesson.