Sitemap Generator
Generate XML, TXT, and CSV sitemaps from URL lists with customizable priority, changefreq, and lastmod metadata for SEO
Updated
What is the Sitemap Generator?
Create search engine-friendly XML sitemaps, plain text URL lists, and CSV exports from any collection of URLs. This tool helps website owners, SEO professionals, and developers generate properly formatted sitemaps that improve how search engines discover and index web pages.
What This Tool Does
The Sitemap Generator transforms raw URL lists into production-ready sitemap files compatible with Google Search Console, Bing Webmaster Tools, and all major search engines. It handles messy input formats, validates every URL, and lets you customize critical SEO metadata including update frequency, page priority, and last modification dates.
Key Capabilities
| Feature | Benefit |
|---|---|
| Smart URL Parsing | Extracts URLs from markdown links, HTML tags, CSV data, and plain text automatically |
| Bulk Editing | Set priority, changefreq, and lastmod for hundreds of URLs at once or individually |
| Multiple Formats | Export as XML (standard), TXT (robots.txt compatible), or CSV (spreadsheet friendly) |
| Real-time Validation | Catch malformed URLs, duplicates, and size limit violations before submission |
| Extended Support | Enable image sitemap and hreflang namespaces for international/multimedia sites |
Who Should Use This Tool
- Website Owners submitting their first sitemap to Google
- SEO Specialists managing large site architectures
- Developers automating sitemap generation for static sites
- Content Managers tracking publication dates and update frequencies
- Agencies producing client deliverables in standardized formats
Why Sitemaps Matter
Search engines use sitemaps to understand your site structure, discover new pages faster, and prioritize crawling based on your indicated importance and update patterns. A well-maintained sitemap directly impacts indexing speed and search visibility—especially for large sites, new domains, or pages with limited internal linking.
How it works
1. Input Processing
Paste your URLs into the input field. The tool accepts virtually any format you might copy from:
- Plain URLs — one per line
- Markdown links —
[text](url)automatically extracts the URL - HTML anchor tags —
hrefattributes are parsed out - CSV data — quoted or unquoted URL columns
- Mixed sources — copy directly from spreadsheets, browser dev tools, or analytics exports
The Base URL field optionally resolves relative URLs (like /about → https://example.com/about).
2. URL Validation & Deduplication
Every extracted URL undergoes strict validation:
- Protocol normalization (adds
https://if missing) - Domain lowercasing for consistency
- Fragment removal (hashes don't affect page content)
- Duplicate detection across the entire list
- Length checking (max 2048 characters per URL)
Invalid entries are flagged with line numbers so you can fix source data without guesswork.
3. Metadata Assignment
Switch to Edit URLs mode to customize each entry or apply bulk changes:
| Field | Purpose | Typical Values |
|---|---|---|
| Priority | Relative importance (0.0–1.0) | 1.0 homepage, 0.5 articles, 0.3 archives |
| Change Frequency | Expected update pattern | always, hourly, daily, weekly, monthly, yearly, never |
| Last Modified | Content revision date | ISO 8601 date; auto-populated if enabled |
Bulk actions let you set all priorities to 1.0, change everything to daily, or clear dates in one click.
4. Format Generation
Choose your output format based on use case:
XML Sitemap — The standard format for search engine submission. Includes proper namespace declarations, optional image sitemap support, and hreflang alternate links for multilingual sites.
Text Sitemap — One URL per line. Reference directly in robots.txt with Sitemap: https://example.com/sitemap.txt for simple crawler discovery.
CSV Sitemap — Spreadsheet-compatible with columns for URL, lastmod, changefreq, and priority. Useful for documentation and team sharing.
5. Export & Integration
Download your generated file or copy the output directly. The tool checks against sitemap protocol limits:
- Maximum 50,000 URLs per file
- Maximum 50MB uncompressed size
- UTF-8 encoding compliance
Warnings appear if your sitemap approaches these boundaries, suggesting sitemap index files for larger sites.
Technical Standards Compliance
The generator follows the Sitemap Protocol 0.9 specification supported by Google, Bing, Yahoo, and other major search engines. Optional extensions include:
- Image sitemaps (
xmlns:image) for pages with prominent visual content - Hreflang annotations (
xmlns:xhtml) for language/regional variants
These namespaces are enabled via switches and validate against search engine guidelines.
Examples
Basic blog sitemap
Generate a standard XML sitemap for a personal blog with weekly update frequency
E-commerce product sitemap
Create a sitemap with high priority for product pages and daily updates for inventory
Bulk URL import from CSV
Paste URLs extracted from a spreadsheet or analytics export
Text sitemap for robots.txt
Generate a simple URL list format for direct robots.txt reference
Frequently asked questions
What is a sitemap and why do I need one?
What is a sitemap and why do I need one?
A sitemap is a file that lists the important pages on your website, helping search engines discover and understand your content. While not mandatory, sitemaps significantly speed up indexing for new sites, large websites with deep page structures, and pages that aren't well-linked internally. They also let you communicate metadata like update frequency and relative priority to crawlers.
Which sitemap format should I choose?
Which sitemap format should I choose?
Use XML for standard search engine submission through Google Search Console and Bing Webmaster Tools—this is the recommended format with full metadata support. Choose TXT when you only need a simple URL list to reference in robots.txt. Select CSV if you're creating documentation or need to share URL data with team members in spreadsheet form.
How do I submit my sitemap to Google?
How do I submit my sitemap to Google?
Download your XML sitemap file, then: (1) Sign into Google Search Console, (2) Select your property, (3) Navigate to "Sitemaps" in the left menu, (4) Enter your sitemap URL (e.g., https://yourdomain.com/sitemap.xml) and click Submit. Google typically processes sitemaps within a few days, though crawling priority isn't guaranteed.
What does the "priority" value actually do?
What does the "priority" value actually do?
Priority (0.0 to 1.0) suggests the relative importance of URLs within your own site—not compared to other websites. Google treats this as a hint, not a command. Use 1.0 for your homepage and critical landing pages, 0.5 for standard content, and lower values for archives or less important pages. All priorities on a site should not total more than 1.0 conceptually, though this isn't strictly enforced.
What's the difference between changefreq and lastmod?
What's the difference between changefreq and lastmod?
changefreq predicts how often content typically changes (daily, weekly, etc.), while lastmod records the actual date of last significant modification. Search engines prefer lastmod when accurate—it's more reliable than scheduled assumptions. Use both: lastmod for precise signals, changefreq as a fallback expectation.
Why are some of my URLs flagged as invalid?
Why are some of my URLs flagged as invalid?
Common validation failures include: missing protocol (we auto-fix to https://), malformed domain names, URLs exceeding 2048 characters, or duplicate entries. Check the error panel for specific line numbers. The tool attempts smart extraction from pasted formats, but heavily malformed source text may need manual cleanup.
Can I generate a sitemap for more than 50,000 URLs?
Can I generate a sitemap for more than 50,000 URLs?
The sitemap protocol limits single files to 50,000 URLs. For larger sites, create multiple sitemaps and submit a sitemap index file that references them. This tool warns when approaching limits; you'll need to split input manually and generate separate files, then combine them with an index wrapper.
What is the "image sitemap" option for?
What is the "image sitemap" option for?
Enabling the image namespace adds xmlns:image to your XML, allowing manual inclusion of image metadata per URL. This helps Google Images discover your visual content. Note: this tool enables the namespace only—you'd extend individual URLs with <image:image> tags manually or via API for full image sitemap implementation.
Should I use the hreflang option?
Should I use the hreflang option?
Enable hreflang support only if your site has language or regional variants (e.g., /en/ and /es/ versions of the same page). This adds the xmlns:xhtml namespace for alternate link annotations. Without actual hreflang tags in your source code pointing between variants, enabling this has no benefit.
Does this tool crawl my website automatically?
Does this tool crawl my website automatically?
No—this is a generator, not a crawler. You must provide the URLs yourself by pasting them. For automatic crawling and sitemap discovery, use dedicated SEO tools like Screaming Frog, Sitebulb, or cloud-based crawlers. This tool excels when you have a known list of URLs from CMS exports, analytics, or manual compilation.
How often should I update my sitemap?
How often should I update my sitemap?
Update whenever you publish significant new content, remove pages, or change URL structures. For actively maintained sites, weekly or monthly regeneration is typical. Automated systems often regenerate sitemaps on each build; manual users should refresh before major SEO campaigns or after content migrations.
Can I include URLs from multiple domains?
Can I include URLs from multiple domains?
Technically yes, but search engines generally reject cross-domain sitemaps unless you verify ownership of all domains in Search Console. Each domain should typically have its own sitemap. Subdomains (blog.example.com vs www.example.com) can be combined but are treated separately by search engines unless properly canonicalized.
Why does my sitemap need a lastmod date?
Why does my sitemap need a lastmod date?
lastmod helps search engines identify fresh content for recrawling. Accurate dates improve crawl efficiency—Google may prioritize pages showing recent updates. Avoid fake recent dates; they don't improve rankings and may reduce trust signals. The tool can auto-populate today's date or let you set custom revision dates.
Is there a size limit for sitemap files?
Is there a size limit for sitemap files?
Yes—uncompressed sitemaps must stay under 50MB. The tool estimates your output size and warns if approaching this limit. Compress large sitemaps with gzip (acceptable to search engines) or split into multiple files referenced by a sitemap index.
Related tools
More utilities you might find handy.
Alt Text Checker
Scan pasted HTML for images missing alt attributes
Canonical Tag Generator
Generate accurate canonical link tags for any URL to optimize SEO and prevent duplicate content issues.
Free UTM Link Builder - Create Campaign URLs Instantly
Build UTM-tagged URLs with validation, linting, and parse existing links to edit parameters. No sign-up required.