Skip to main content

    Sitemap XML Generator

    Generate a sitemap.xml for your website. Add URLs, set priority and frequency, then download or copy.

    No signup. 100% private. Processed in your browser.

    What Is a Sitemap and Why You Need One

    A sitemap is an XML file that lists every page on your website you want search engines to find. Think of it as a table of contents for crawlers. Without one, Google has to discover your pages by following links — which means orphaned pages (no links pointing to them) might never get indexed.

    For small sites with good internal linking, a sitemap is a nice-to-have. For sites with hundreds of pages, dynamic content, or pages behind JavaScript rendering, it's essential. Google Search Console actually tells you to submit a sitemap — it's one of the first things you do when setting up a new site.

    Sitemap Tag Reference

    TagRequired?PurposeExample
    <loc>YesFull URL of the pagehttps://example.com/about
    <lastmod>RecommendedLast modification date (ISO 8601)2026-04-14
    <changefreq>OptionalHow often the page changesweekly, monthly, daily
    <priority>OptionalRelative importance (0.0-1.0)1.0 for homepage, 0.5 for blog posts

    What this means for you: Google has said it largely ignores changefreq and priority — it determines crawl frequency based on its own observations. However, lastmod is genuinely useful and can prompt re-crawling of updated content. Always keep lastmod accurate.

    Sitemap Best Practices

    Keep It Under 50MB / 50,000 URLs

    Google limits individual sitemaps to 50MB uncompressed or 50,000 URLs. For larger sites, use a sitemap index file that points to multiple sitemap files.

    Reference It in robots.txt

    Add Sitemap: https://example.com/sitemap.xml to your robots.txt file. This ensures every crawler finds it, not just Google.

    Only Include Indexable Pages

    Don't include pages with noindex tags, pages that 301 redirect, or error pages. The sitemap should only list canonical, indexable URLs that return 200 status codes.

    Submit to Google Search Console

    After uploading your sitemap, submit it through Google Search Console's Sitemaps section. This triggers immediate crawling and lets you monitor indexing status.

    Types of Sitemaps

    TypeFilePurposeWho Needs It
    XML Sitemapsitemap.xmlLists all pages for search enginesEvery website
    Sitemap Indexsitemap-index.xmlPoints to multiple sitemap filesSites with 50,000+ URLs
    Image Sitemapimage-sitemap.xmlLists images for Google Image searchPhotography, e-commerce
    Video Sitemapvideo-sitemap.xmlLists video content with metadataSites hosting video content
    News Sitemapnews-sitemap.xmlLists articles for Google NewsNews publishers only

    This tool generates standard XML sitemaps. For most websites, that's all you need. Image and video sitemaps are only worth the effort if you're specifically targeting Google Image or Video search results.

    Related Tools

    How to use this tool

    1

    Enter your website domain (e.g. https://example.com)

    2

    Add page paths with their change frequency and priority

    3

    Click Generate Sitemap, then copy or download the XML file

    Common uses

    • Creating XML sitemaps for new website launches
    • Generating sitemaps for submission to Google Search Console
    • Building sitemaps for static sites without CMS auto-generation
    • Adding sitemap entries for new pages and blog posts

    Share this tool

    Frequently Asked Questions