A reliable sitemap generator validates every nonblank listed URL, keeps one host per file, and refuses to silently drop invalid entries or truncate oversized output.
Those safeguards are the foundation of a clean XML sitemap, but technical validity is only half the job. The XML Sitemap Generator turns a URL list you already have into a UTF-8 XML file. It processes the list and creates the file in the current browser tab; neither the pasted URLs nor the generated XML are uploaded.

Separate generation from site discovery
A list-to-XML generator begins with the exact URLs supplied to it. It does not visit pages, follow links, inspect canonical tags, read modification dates, discover redirects, verify HTTP status codes, determine indexability, or submit a sitemap to a search engine. The quality of the final file therefore depends on the review that happened before generation.
The generator does normalize accepted URLs through the browser URL parser. It lowercases host names, removes default ports, adds a root slash when required, and percent-encodes non-ASCII URL components. Existing valid percent escapes remain escaped. This browser-based serialization follows the model described by the WHATWG URL Standard.
Normalization also affects duplicate detection. An uppercase host and its lowercase form become the same location, as do an explicit default port and its normalized form. The first occurrence determines the output order, while later occurrences increase the duplicate count. Before generating, review redirects, duplicate content, blocked pages, private pages, missing pages, and URLs intentionally excluded from indexing because the tool cannot make those editorial decisions.
Build a sitemap from a reviewed URL list
- Choose one host group for the file. Every URL in a sitemap must share one serialized host, including any non-default port. HTTP and HTTPS URLs can appear together when they use the same host because the rule concerns the host rather than the scheme. Different hosts, or a host with a different non-default port, require separate sitemap files.
- Prepare one clean URL per line. Each nonblank line must contain a complete absolute HTTP or HTTPS page URL. Bare domains, relative paths, FTP URLs, malformed percent escapes, embedded credentials, and fragments are rejected. Whitespace-only lines are ignored, but leading or trailing spaces on a nonblank line cause an error rather than being removed automatically.
- Decide whether optional fields are truthful. Leave lastmod, changefreq, and priority blank to create loc-only XML. If you add them, the generator applies the same value to every URL in the file. Optional fields cannot vary by row, so leave them blank when no single shared value accurately represents the entire list.
- Paste the list and generate the file. The complete request is validated before XML is produced. Invalid lines are never skipped and excess valid URLs are never silently discarded. After serialization, duplicate locations are removed in first-seen order. If an invalid URL, invalid optional value, or exceeded limit is detected, generation fails rather than returning a partial result.
- Review the finished XML and counts. Check the displayed count against the number of unique URLs expected. The complete preview begins with a UTF-8 declaration and contains a urlset element with the official sitemap namespace. Each entry contains a url and loc element, and special XML characters are entity-escaped. The preview is complete rather than capped or abbreviated.
- Download and publish sitemap.xml. Download the generated file and place it on the site represented by the URLs. The tool prepares the download but does not publish the file, create a robots.txt rule, or submit it to a search engine. It also does not create sitemap indexes, image, video, or news extensions, hreflang markup, or gzip files.
Choose optional fields that are true for every URL
Optional sitemap fields can help describe a page, but they must describe the shared list accurately. The generator validates each supplied value before producing XML.
| Field | Accepted value | Common mistake |
|---|---|---|
| lastmod | A real Gregorian YYYY-MM-DD date, or a complete date-time with seconds and either Z or a valid UTC offset | Inventing a date, using an invalid calendar date, or adding surrounding whitespace |
| changefreq | always, hourly, daily, weekly, monthly, yearly, or never | Treating the value as a command that guarantees a particular crawl schedule |
| priority | A decimal value from 0.0 through 1.0 | Assuming that a higher value guarantees better ranking |
Calendar dates, leap years, clock fields, and timezone limits are checked. Leading or trailing whitespace in an optional value is rejected instead of being silently trimmed. Invalid metadata fails the whole generation. More importantly, changefreq and priority are protocol hints rather than crawl commands or ranking guarantees. Use lastmod only when the date represents a real significant modification and one date is truthful for every included page.
Know the boundaries before you paste
The browser tool intentionally uses lower limits than the sitemap protocol so that parsing, preview creation, Blob handling, and browser memory remain bounded. These are complete-file limits, not targets to approach with guessed values.
| Constraint | Sitemap protocol allowance | XML Sitemap Generator limit |
|---|---|---|
| Unique URLs per file | Up to 50,000 | 10,000 unique URLs |
| Length of each loc | Fewer than 2,048 characters | 2,047 characters after normalization |
| Uncompressed XML size | Up to 52,428,800 bytes | 10,485,760 UTF-8 bytes |
| Input-list size | No corresponding protocol budget | 5,000,000 UTF-16 input code units |
The 10,000th unique URL is accepted, while the next unique URL fails. Duplicate lines do not consume output slots. The XML-size limit is measured after URL serialization, XML escaping, optional tags, indentation, and UTF-8 encoding, so it reflects the actual downloaded file rather than the original input. The exact byte boundary is accepted, but one additional byte is rejected.
No shortened XML, ellipsis, capped preview, or partial download is returned. If a legitimate list exceeds the browser limits, split it into separate sitemap files and manage the sitemap index separately. The generator creates a single basic XML sitemap file; it does not create that index for you.
Catch mistakes that validation cannot judge
Some common mistakes prevent generation, while others produce valid XML that still describes the wrong set of pages. Use this comparison to separate technical checks from the review you still need to perform.
| Mistake | What the generator does | Corrective action |
|---|---|---|
| Using bare domains, relative paths, or FTP URLs | Rejects the request instead of skipping the bad line | Convert every entry to an absolute HTTP or HTTPS page URL |
| Leaving fragments, credentials, or surrounding spaces | Rejects the affected nonblank line | Remove the fragment and credentials, then clean the line without changing its URL structure |
| Repeating the same page | Removes duplicates after normalization, preserves first-seen order, and counts the repeats | Check the displayed count and confirm that the first occurrence is the intended version |
| Mixing hosts or non-default ports | Rejects a single file that spans them | Create separate files for each serialized host and port |
| Including redirects, private, blocked, missing, duplicate-content, or non-indexable pages | Cannot detect these conditions from a URL list | Audit the list and content before adding each URL |
| Adding optional values that merely look reasonable | Applies one shared value and rejects invalid metadata | Leave the field blank unless the value is accurate for every entry |
| Exceeding a URL, input, or file-size budget | Fails without truncating the output | Split the content into separate sitemap files |
Review the complete file before publication
Generation should be treated as the start of a final review rather than automatic approval. Compare the unique-URL count with the reviewed list, inspect the first-seen order, and confirm that every location represents a page you intend to expose publicly. Check that optional tags contain the intended shared values and that XML entities have been escaped correctly.
The download belongs to the current result. Editing a URL or option clears the previous XML, error, and download, while generating again revokes the earlier download. Complete the review and download the file before making another change.
After publication, use Google’s build and submit a sitemap guide for the documented submission options. That step is separate from this generator: it does not submit to Search Console, modify robots.txt, verify where the sitemap is hosted, or confirm that cross-site submission permissions exist.
Related reading: Extract URLs From Sitemap XML for Crawl Comparison.
Related reading: Avoid Mistakes When Generating an htaccess HTTPS Redirect.