An XML sitemap generator converts a reviewed list of absolute page URLs into a downloadable sitemap.xml file without crawling the site.
The XML Sitemap Generator is built for that list-to-XML task. It validates the complete request, normalizes accepted URLs, deduplicates them in first-seen order, displays the finished XML and counts, and prepares a local sitemap.xml download. Parsing and file creation happen in the current browser tab; the pasted URLs and generated XML are not uploaded.

What the generator produces
The result begins with a UTF-8 declaration and a urlset element using the official sitemap 0.9 namespace. Each entry contains a url element and a loc element containing one page location. Optional fields are omitted by default, so leaving them blank creates a loc-only sitemap.
Locations are XML-escaped after URL normalization. Ampersands, apostrophes, quotation marks, greater-than signs, and less-than signs are represented safely in the generated markup rather than breaking the XML structure.
Prepare a valid URL list
One generated file represents one serialized host, including any non-default port. This is a one-host rule rather than a one-origin rule, so HTTP and HTTPS URLs for the same host can appear together. Different hosts or non-default ports, such as example.com and example.com:8443, require separate files.
| Input condition | Result |
|---|---|
| One absolute HTTP or HTTPS URL per line | Accepted for validation |
| HTTP and HTTPS URLs for the same serialized host | Accepted in one file |
| A different host or non-default port | Whole generation fails |
| A whitespace-only line | Ignored |
| Leading or trailing whitespace on a nonblank line | Whole generation fails |
| A bare domain, relative path, or FTP URL | Whole generation fails |
| Embedded credentials or a URL fragment | Whole generation fails |
| Raw whitespace, a control character, or a malformed percent escape | Whole generation fails |
Invalid lines are never skipped. One malformed entry fails the complete request instead of producing a partial sitemap, while valid entries beyond a supported limit are never silently dropped.
Generate sitemap.xml from the reviewed list
- Paste the list. Open the generator and place one absolute HTTP or HTTPS page URL on each line. Remove headings, comments, bare domains, and relative paths because they are not valid sitemap locations.
- Confirm the host boundary. Check that every URL belongs to one serialized host, including its non-default port. HTTP and HTTPS forms of the same host are allowed, but another host or port needs another file.
- Choose the optional metadata. Leave the fields blank for a loc-only sitemap. Otherwise, the same value applies to every URL. A valid lastmod is either a real Gregorian YYYY-MM-DD date or a complete date-time with seconds and either Z or a valid UTC offset. Change frequency accepts always, hourly, daily, weekly, monthly, yearly, or never. Priority accepts a decimal from 0.0 through 1.0. Use lastmod only when a real significant modification applies to every listed page. Invalid metadata or surrounding whitespace fails the entire generation rather than being trimmed or ignored.
- Generate the XML. The tool validates the complete request, serializes accepted URLs, removes duplicates, and creates the UTF-8 XML file. It does not silently discard invalid lines or excess valid URLs.
- Review the full result. Read the complete XML preview and compare the displayed URL count with the reviewed list. Check the duplicate count as well. The output is not shortened, capped, or replaced with an ellipsis.
- Download and publish the file. Download the completed file as sitemap.xml, then make it available for publication on the site represented by its URLs. Uploading or submitting the file is a separate operation.
How normalization and deduplication work
Accepted URLs are serialized with the browser URL parser before deduplication and output, consistent with the WHATWG URL Standard. Deduplication compares serialized URLs, not semantic equivalence. Distinct serialized paths or queries can remain separate entries.
- Host names are lowercased, default ports are removed, a required root slash is added, and non-ASCII URL components are percent-encoded.
- Existing valid percent escapes remain URL escapes instead of being encoded a second time.
- Deduplication occurs after serialization. An uppercase host and its lowercase form identify the same URL, as do an explicit default port and its normalized form.
- The first occurrence determines output order, and every later duplicate increments the duplicate count.
- XML escaping happens after normalization, producing valid location values from the normalized URL.
Limits that determine whether export succeeds
The browser tool intentionally uses lower whole-file budgets than the sitemap protocol to bound parsing, preview, Blob, and browser memory. Every generator limit is all-or-nothing.
| Measure | Sitemap protocol allowance | Browser generator limit |
|---|---|---|
| URL count | Up to 50,000 URLs | 10,000 unique URLs |
| Serialized loc length | Fewer than 2,048 characters | At most 2,047 characters |
| Uncompressed XML size | Up to 52,428,800 bytes | 10,485,760 UTF-8 bytes |
| Input text | Not a protocol output limit | 5,000,000 UTF-16 code units |
The 10,000th unique URL is accepted, but the next unique URL fails. Duplicate lines do not consume unique-URL slots. The exact output-byte boundary is accepted, while one additional byte is rejected. XML size is measured after URL serialization, XML escaping, optional tags, indentation, and UTF-8 encoding.
When a limit is exceeded, the tool returns no shortened XML, capped preview, or partial download. This makes a failed export visible instead of leaving you with a sitemap that appears complete but omits pages.
Review the sitemap before publication
Valid XML and acceptable URL syntax do not prove that every page belongs in the sitemap. Review the editorial and technical quality of the list manually:
- Confirm that each location represents an intended public page, using the preferred URL where duplicates or redirects exist.
- Resolve redirecting URLs and review duplicate content before deciding which version to list.
- Exclude blocked pages, private pages, missing pages, and any resource that should not be discoverable through the sitemap.
- Check the host and non-default port again, especially when the list was assembled from several sources.
- Use lastmod, changefreq, and priority only when they reflect accurate editorial facts. They are protocol hints, not crawl commands or ranking guarantees.
The displayed counts provide a useful final cross-check: compare the unique URL total with the intended list and investigate any duplicates that were not intentional.
Publish and submit the completed file
After review, make the downloaded sitemap.xml available at a public URL on the site it represents. Use Google’s sitemap build and submission guide for current placement and Search Console submission instructions.
The generator does not host the file, create a robots.txt rule, or submit it to a search engine. It also cannot verify where the sitemap will be hosted or whether permissions exist for cross-site submission.
What the tool cannot verify
This is a list-to-XML utility, not a crawler. It does not:
- Visit pages, request each URL, or follow links.
- Inspect canonical tags, read page modification dates, or discover redirects.
- Verify HTTP status codes, determine indexability, or submit the sitemap.
- Audit private, blocked, missing, or duplicate-content pages.
It also does not create sitemap indexes, image, video, or news extensions, hreflang markup, gzip files, robots.txt rules, or Search Console submissions. Use a crawler-based workflow when URLs must be discovered or live-page conditions must be inspected automatically.
The XML Sitemap Generator is best suited to a reviewed, single-host URL list that needs a standards-shaped XML file. Its strict full-request validation, first-seen deduplication, shared metadata rules, and all-or-nothing limits make the export predictable, while its boundaries remain clear: it transforms the URLs you supply but cannot decide which pages belong in the sitemap or prove that they are live, public, canonical, and indexable.
For a deeper look, see UTM Builder on Mac: Build Campaign URLs in Safari.
For a deeper look, see How to Make Sure You Generate Bulk URLs Correctly.