Project 96, SEO and site tools
Sitemap Generator
Help search engines find every page. Paste your paths, and get a clean sitemap.xml and a matching robots.txt ready to upload.
- Main API
- URL parsing
- Output
- XML + text files
- Dependencies
- None
- Your browser
- Checking
Build a sitemap
Set your domain and paste one path or URL per line. Duplicates, other domains and bad lines are cleaned up for you.
0pages in sitemap
0removed
0blocked
How it works
- Resolve every linenew URL(line, domain) turns paths like /menu into full addresses. Lines that cannot be parsed are reported.
- Clean the listOther domains, duplicates, query strings and blocked paths are removed, and each removal is explained.
- Write both filesThe sitemap lists every page with optional date, frequency and priority. robots.txt blocks the paths you chose and points to the sitemap.
const base = new URL("https://example.com");
const pages = lines.map((l) => new URL(l, base))
.filter((u) => u.host === base.host);
const xml = `<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
${pages.map((u) => ` <url><loc>${u.href}</loc><lastmod>${today}</lastmod></url>`).join("\n")}
</urlset>`;
const robots = `User-agent: *\nDisallow: /admin\n\nSitemap: ${base.origin}/sitemap.xml`;