# XML Sitemap Generator for Next.js

> Build a sitemap for a Next.js site, including dynamic routes.

Free tool: https://mars.cx/tools/sitemap-generator-for-nextjs

Next.js can generate sitemaps at build time; use this to produce the XML for dynamic and static routes.

## How to use

1. Paste one URL per line.
2. Choose a default priority and change frequency.
3. Copy the XML and save it as sitemap.xml.

## FAQ

### How many URLs per file?

Up to 50,000 URLs or 50MB per sitemap file; use a sitemap index for more.

### Where to submit?

Google Search Console and Bing Webmaster Tools.

### Is it free?

Yes, free with no signup.

Provided by MarsGeo — https://mars.cx