MyScripter
Tools

XML Sitemap Generator for Next.js Apps

Next.js App Router has built-in sitemap support, but configuring it for dynamic routes, i18n, and proper priorities takes effort. This generator produces both raw XML sitemaps and ready-to-use sitemap.ts route handler code tailored to your Next.js project structure.

XML Sitemap Generator for Next.js Apps

How to Use This Tool

  1. Enter your base URL and list your routes (or paste your next.config.js for auto-detection).
  2. Configure priorities, change frequencies, and last-modified dates per route.
  3. Toggle i18n alternate links if your site supports multiple languages.
  4. Download the XML sitemap or copy the sitemap.ts code directly.

Features

  • Generates both raw XML and Next.js sitemap.ts route handler code
  • Dynamic route pattern support with parameter placeholders
  • i18n hreflang alternate link generation
  • Per-URL priority and changefreq configuration
  • Validates output against the Sitemaps 0.9 protocol

Example

Static marketing site

Sample

Enter https://example.com and lastmod today’s date.

What you get

XML sitemap entries for home, pricing, blog index you listed.

Frequently Asked Questions

Related Tools