A URL list becomes an XML sitemap by validating and normalizing absolute page URLs, removing duplicates, and writing the remaining locations into one UTF-8 XML file.

The XML Sitemap Generator is designed for exactly this job: paste a plain-text list, optionally add shared metadata, inspect the generated XML and counts, then download sitemap.xml. It does not crawl the site, request the listed pages, or submit the result.

url list to sitemap
URL List to Sitemap: Plain Text to XML, Line by Line

How one list line becomes one XML entry

The output begins with a UTF-8 declaration and a urlset root using the official http://www.sitemaps.org/schemas/sitemap/0.9 namespace. After normalization, each unique accepted URL produces a url entry containing a loc location. Optional tags are omitted by default; when supplied, the same metadata value is applied to every entry.

The generator validates the complete request, normalizes accepted URLs, removes duplicates, and displays the finished XML and counts before preparing the local download. It does not visit pages, follow links, inspect canonical tags, read modification dates, discover redirects, verify status codes, determine indexability, or send the sitemap to a search engine.

Prepare a URL list the converter can process

Each nonblank input line must contain one absolute HTTP or HTTPS page URL. All URLs in a generated file must resolve to one serialized host, including any non-default port. HTTP and HTTPS addresses can appear together when their serialized host is the same.

List conditionConverter behaviorResult
Absolute HTTP or HTTPS URLValidated and serializedCan become one sitemap entry
Repeated URLCompared after serializationFirst occurrence remains; duplicate count increases
HTTP and HTTPS for the same serialized hostAccepted togetherBoth can appear in one file
Different host or non-default portRejected as a mixed-host fileCreate separate files for those hosts
Whitespace-only lineIgnoredNo sitemap entry is created
Leading or trailing whitespace on a nonblank lineRejected rather than trimmedNo partial sitemap is returned

Other rejected input includes bare domains, relative paths, FTP URLs, embedded raw whitespace, control characters, malformed percent escapes, credentials, and fragments. Credentials could expose a username or password in a public sitemap. A fragment is not sent to the server as part of an HTTP request, so it should not create a separate entry for the same fetched resource.

Convert a URL list into sitemap.xml

  1. Create a reviewed source list. Include only the page URLs you intend to represent in the sitemap. Remove redirecting, blocked, private, duplicate-content, or missing pages before conversion because the generator cannot make those editorial decisions for you.
  2. Paste one URL per nonblank line. Every line must be an absolute HTTP or HTTPS URL, and all lines in one generation must use the same serialized host, including any non-default port. Do not add column headers, labels, commas, or surrounding spaces.
  3. Choose optional fields. Leave them blank for loc-only XML, or enter one shared lastmod, changefreq, or priority value. Use a shared last-modified date only when it is truthful for every listed URL.
  4. Generate and inspect the result. The whole request must validate. Review the complete XML and displayed counts, checking the host, locations, optional fields, and duplicate total. An invalid URL or option fails the entire generation instead of silently skipping the line or dropping valid entries.
  5. Download and publish the file. Download sitemap.xml, then make it available on the represented site through your normal hosting or CMS process. If you edit the URLs or metadata after generating, the previous XML and download are cleared, so review the replacement output before publishing it.

See how normalization changes the list

Accepted URLs are serialized with the browser URL parser before comparison and output, following the WHATWG URL Standard. This handles syntactic URL normalization; it does not crawl the site or decide which pages belong in the sitemap.

  • Host and port changes: Host names are lowercased, default ports are removed, and a required root slash is added.
  • Encoding changes: Non-ASCII URL components are percent-encoded, while existing valid percent escapes remain URL escapes.
  • Duplicate detection: Comparison happens after serialization, so equivalent forms can collapse into one entry.
  • Output order: The first occurrence keeps its position, and later occurrences increase the duplicate count without adding another entry.
  • XML safety: Special characters are escaped in the final locations, including ampersands, quotation marks, apostrophes, and angle brackets.

For example, an uppercase host and its lowercase form identify the same URL after serialization. An explicit default port also matches the normalized form with that port removed. A non-default port remains part of the host, so an address on port 8443 cannot be mixed with the same hostname on its default port.

Apply optional metadata correctly

Each optional field applies to every URL in the file. Mixed-date page lists should therefore use loc-only output unless one date, change frequency, or priority value is accurate for every entry.

  • lastmod: Accepts a real Gregorian date in YYYY-MM-DD format or a complete date-time with seconds and either Z or a valid UTC offset. Invalid calendar dates, clock fields, and timezones fail generation.
  • changefreq: Accepts always, hourly, daily, weekly, monthly, yearly, or never.
  • priority: Accepts a decimal value from 0.0 through 1.0.

A recent date does not mean a page changed, and priority does not guarantee ranking or crawl treatment. These are protocol hints, not crawl commands. Invalid optional metadata fails the whole generation rather than being omitted or corrected automatically.

Plan around fixed input and output limits

The browser tool intentionally uses lower limits than the Sitemap protocol to bound preview, Blob, and browser memory usage. Every limit is enforced as a complete-file boundary.

MeasureSitemap protocol allowanceThis browser tool
URLs per fileUp to 50,000 URLs10,000 unique URLs after deduplication
Length of each locFewer than 2,048 charactersAt most 2,047 normalized characters
Uncompressed XML sizeUp to 52,428,800 bytes10,485,760 UTF-8 bytes
Input text budgetNot specified by the protocol5,000,000 UTF-16 code units

The 10,000th unique URL is accepted, while the next unique URL fails; duplicate lines do not consume output slots. The exact 10,485,760-byte XML boundary is accepted, and one additional byte is rejected. XML size is measured after URL serialization, XML escaping, optional tags, indentation, and UTF-8 encoding. A longer normalized location or input beyond the stated input budget also fails the request. No shortened XML, ellipsis, capped preview, or partial download is returned.

Review the XML before publication

A syntactically valid sitemap location can still point to a page that should not be advertised or indexed. Review the generated list for these common issues:

  • Redirects: The tool does not discover them. Choose the final destination rather than publishing a redirecting address by accident.
  • Canonical and duplicate content: It does not inspect canonical tags, so confirm that each listed URL represents the page you intend to reference.
  • Blocked, private, or missing pages: Check access and existence before publication because status codes are not verified.
  • Indexability: The generator cannot determine whether a page is indexable or should carry a noindex directive.
  • Scope and metadata: Confirm that the file contains only the represented host and that every shared metadata value remains accurate.

After review, download the UTF-8 sitemap.xml file and publish it on the represented site through your hosting or CMS workflow. Google’s sitemap build and submission guide explains the publisher-side placement and submission options. The generator itself does not add a robots.txt rule, submit the file to Search Console, or request any page.

All parsing and file creation happen in the current browser tab. The URL list and generated XML are not uploaded, and the completed file is prepared as a local download.

Use a crawler when the list is not enough

This workflow is appropriate when you already possess a reviewed list and need one basic XML sitemap file. If the goal is to discover every page, follow internal links, inspect indexability, or produce a multi-file sitemap index, use a crawler or your site platform’s sitemap process instead. The generator does not create sitemap indexes, image, video, or news extensions, hreflang markup, gzip files, robots.txt rules, or Search Console submissions.

If you're weighing options, Generate a Sitemap for Your Website: XML Workflow covers this in detail.

If you're weighing options, UTM Builder on iPhone: Build Tagged Campaign URLs covers this in detail.