Build an XML Sitemap Generator with Claude Code

Automated tool that creates optimized XML sitemaps for better search engine crawling. Website owners and SEO professionals use it to improve site indexation and search rankings.

7,400 searches a month for “xml sitemap generator”WeekendA working first version in a day or two

The Claude Code prompt

Build an XML Sitemap Generator web app. People search for "xml sitemap generator" about 7,400 times a month, plus related searches like "sitemap generator free", "xml sitemap creator", "google sitemap generator". The goal is a tool that ranks for those searches and makes money.

What it should do:
Build an XML sitemap generator with URL input and crawling options. Include crawl depth settings, file type filters, and priority/frequency settings. Show crawling progress and found URLs list. Generate valid XML sitemap with download option. Add Google Search Console submission guide. Focus on getting basic URL crawling working first.

How to build it:
1. Read this folder first. If it is empty, set up Next.js (App Router, TypeScript, Tailwind). Write a short PLAN.md with the pages, components, any library or API you need, and what you are leaving for later. Then build.
2. Put the tool itself on the homepage so a visitor can use it within seconds, with no sign-up. Do the processing in the browser where you can, so it is fast and cheap to run. Look at how XML-Sitemaps.com, Screaming Frog, Yoast SEO do it and make ours simpler and faster.
3. Make it rank. Use "xml sitemap generator" in the title tag, H1 and meta description. Under the tool, add a short how-to and an FAQ with FAQPage schema, and add a sitemap and robots.txt. Scaffold these programmatic pages from one template and a data file: /xml-sitemap-generator-[cms], /sitemap-for-[website-type], /generate-sitemap-[industry].
4. Monetisation: Freemium: 500 URLs/sitemap, $12/mo unlimited + scheduling. Add a pricing page and the free usage limit, and leave Stripe checkout as a clearly marked stub with the environment variables it needs.
5. Run it locally and test the main flow end to end, including edge cases like empty input and very large files. Fix what breaks, then finish with a summary of what works, what is stubbed and how to deploy it to Vercel.

Paste it into Claude Code in an empty folder. It plans first, so read PLAN.md and steer before it starts building.

What people search for

xml sitemap generatorsitemap generator freexml sitemap creatorgoogle sitemap generatorwebsite sitemap toolsitemap xml generatorxml sitemapsitemap generatorseo sitemapwebsite crawlingsearch engine optimizationsitemap submission

Who you're up against

Pages that can rank

One template, many long-tail pages:

  • /xml-sitemap-generator-[cms]
  • /sitemap-for-[website-type]
  • /generate-sitemap-[industry]
  • /[platform]-sitemap-creator

Content to write

  • Complete Guide to XML Sitemaps for SEO in 2024
  • How to Create and Submit XML Sitemaps to Google
  • XML Sitemap Best Practices for Large Websites
  • Common XML Sitemap Errors and How to Fix Them

How it makes money

Freemium: 500 URLs/sitemap, $12/mo unlimited + scheduling

More to build

More in SEO & web · Every build idea