Start a project

Tool 32 of 57 · SEO

XML Sitemap Generator

Paste your page addresses and download a valid sitemap.xml, with duplicates merged, private paths left out and the robots.txt line to go with it.

XML Sitemap Generator at a glanceIllustration: 1, A list of pages; 2, processed in your browser; 3, sitemap.xml.XML Sitemap Generator1A list of pages3sitemap.xml2In yourbrowser
1 A list of pages 2 processed on your device 3 sitemap.xml

XML Sitemap Generator

Your pages

Paths below are joined to this. Use https.
Full URLs or paths. Duplicates are merged. Lines starting # are ignored.

Checks

    Your files

    sitemap.xml
    Add to robots.txt

    01

    What it does

    Turns a list of pages into a valid sitemap.xml, catching duplicates, other domains and pages that shouldn't be listed.

    • Paths or full URLs, joined to your domain
    • Optional lastmod date per page
    • Duplicates, trailing slashes and other domains caught
    • Leave out admin, cart and search paths

    02

    Private by design

    Everything happens in your browser. Nothing you type, paste or upload is sent anywhere, and it keeps working offline once the page has loaded.

    03

    What you get

    sitemap.xml and a robots.txt line, with a Copy and a Download button on every result.

    • Sitemap
    • SEO
    • XML

    Why it matters

    A sitemap tells Google and Bing which pages exist and when they changed. On a small, well-linked site it's a safety net; on a new site, or one with pages few others link to, it's how those pages get found at all.

    Hand-written sitemaps go wrong in small ways: an unescaped &, a non-https address, the same page twice with and without a slash, or an admin page that shouldn't be there. This generator catches all of those.

    How it works

    1. InputPage addresses, one per line
    2. In your browserCleaned, de-duplicated and checked for one domain
    3. Outputsitemap.xml and the robots.txt line

    Where it fits in a designer's workflow

    1. Plan
    2. Design
    3. Build
    4. Test
    5. Launch
    At launch and whenever pages are added.

    By the numbers

    leej.uk's own sitemap: 102 URLs by section/tools: 57 URLs; /articles: 21 URLs; /projects: 10 URLs; /swift: 6 URLs; /pingai: 2 URLs; / (home): 1 URLs/tools57 URLs/articles21 URLs/projects10 URLs/swift6 URLs/pingai2 URLs/ (home)1 URLs
    Counted from this site's sitemap.xml at build time. One sitemap file can hold up to 50,000 URLs and 50 MB uncompressed; bigger sites split them and list the files in a sitemap index. Source: sitemaps.org protocol.
    Show the numbers as a table
    SectionURLs
    /tools57
    /articles21
    /projects10
    /swift6
    /pingai2
    / (home)1
    /apps1
    /privacy1
    /terms1
    /what-i-do1
    /contact1

    How to use it

    1. Enter your site's https address.
    2. Paste your pages, one per line, with an optional date.
    3. List any paths to leave out and fix anything in the checks.
    4. Download sitemap.xml, upload it to your site's root, and add the Sitemap line to robots.txt.

    FAQ

    Do I need changefreq and priority?

    No. Google ignores both. A correct lastmod date (only changed when the content really changes) is what helps.

    How many pages can a sitemap hold?

    50,000 URLs or 50 MB. Above that, split it into several sitemaps and list them in a sitemap index.

    Where do I put it?

    Usually at https://yoursite/sitemap.xml. Then add 'Sitemap: https://yoursite/sitemap.xml' to robots.txt and submit it in Google Search Console and Bing Webmaster Tools.

    Should noindex pages be in it?

    No. List only pages you want in search results, that return 200 and aren't redirected.

    Work with me

    Want a site that gets these right?

    I build fast, accessible websites and web apps that pass these checks from day one. Tell me about your project and I'll reply personally with honest next steps.

    All developer tools · Back to leej.uk