Free sitemap.xml generator (paste your URLs)
Paste one URL per line (up to 50,000, no account), get a valid sitemap.xml to download, or check the one you have. Runs in your browser, no sign-up, nothing is uploaded. Below: what a sitemap does, the rules that matter, and how to submit it.
Paste the contents of your sitemap.xml (open it in the browser, select all, copy). Checks the root element and namespace, full URLs, one host, duplicates, unescaped &, the 50,000 limit and lastmod format. Nothing is fetched or uploaded.
A sitemap is an XML list of the pages you want search engines to find. It does not make a page rank, and leaving a page out does not hide it. It helps most when a site is new, has few links pointing at it, or has pages that nothing else links to.
- Full absolute URLs (
https://…), on the same host as the sitemap. - At most 50,000 URLs and 50 MB per file; bigger sites use several sitemaps plus a sitemap index.
- List only canonical pages that return 200: no redirects, no noindex pages, no duplicates.
lastmodhelps only if it is true; Google says it ignorespriorityandchangefreq, so this tool leaves them out.- Characters like
&must be escaped in XML; the generator does that for you.
With the App Router you don't need a file: add app/sitemap.ts and Next.js serves /sitemap.xml from it. Build the list from your routes or database so new pages appear on their own.
import type { MetadataRoute } from "next";
export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
const base = "https://yourdomain.com";
const posts = await getPosts(); // your data
return [
{ url: base + "/", lastModified: new Date() },
{ url: base + "/pricing" },
...posts.map((p) => ({ url: base + "/blog/" + p.slug, lastModified: p.updatedAt })),
];
}
Static site, WordPress or Blogger? WordPress (5.5+) already serves /wp-sitemap.xml, and Blogger serves /sitemap.xml; for anything else, use the generator above.
- Upload the file to your site root so it opens at
https://yourdomain.com/sitemap.xml. - Add one line to robots.txt:
Sitemap: https://yourdomain.com/sitemap.xml - Submit it in Google Search Console (Sitemaps) and Bing Webmaster Tools; Bing also accepts IndexNow pings for new pages.
Our free checker reads your site the way search and AI crawlers do: sitemap, robots.txt rules for AI bots, text in the raw HTML, JSON-LD and llms.txt, with a fix for each miss.
Run the free AI search readiness check →