Yes—HTTP and HTTPS URLs can appear together in one XML sitemap when their serialized host, including any non-default port, is the same. When you create an XML sitemap from a URL list, the restriction is one host per file, not one URL scheme per file. A list can therefore contain both http:// and https:// pages for the same domain.
That is a technical compatibility answer, not a recommendation to publish duplicate versions of every page. If one scheme redirects to the other, or both serve substantially identical content, review which URL is canonical before including both. The generator does not inspect redirects, canonical tags, HTTP status codes, or indexability, so those decisions remain with the site owner.
The XML Sitemap Generator converts a reviewed list into sitemap.xml. It validates the complete input, displays the finished XML and counts, and prepares a local download; it does not crawl the site. Parsing and file creation happen in the current browser tab, and neither the pasted URLs nor the generated XML are uploaded.

How mixed schemes fit the one-host rule
The comparison uses the host after URL serialization. The scheme must be HTTP or HTTPS, but http and https do not automatically count as different hosts. A non-default port does count, so two URLs must match on that port when one is present.
| URL combination | Result in one generator file |
|---|---|
| http://example.com/one and https://example.com/two | Accepted because both URLs have the same serialized host. |
| http://example.com:8080/one and https://example.com:8080/two | Accepted because both use the same non-default port. |
| https://example.com/one and https://example.com:8443/two | Rejected together because the non-default ports differ. Create separate files. |
| https://example.com/one and https://docs.example.com/two | Rejected together because the hosts differ. Create separate files. |
Normalization happens before duplicate detection. Host names are lowercased, default ports are removed, a root slash is added when required, and non-ASCII URL components are percent-encoded. Existing valid percent escapes remain URL escapes. This follows the browser parsing model defined by the WHATWG URL Standard. Deduplication then compares complete serialized URL strings in first-seen order. The HTTP and HTTPS forms of one path therefore remain distinct entries, while repeated copies of the same normalized URL are removed.
Prepare a URL list that passes validation
Every nonblank line must contain one absolute HTTP or HTTPS page URL. The list must stay within a single serialized host for each file. If your source contains several hosts, or the same hostname on different non-default ports, split it into separate jobs rather than expecting the generator to combine the results.
- Bare domains such as example.com and relative paths such as /page are rejected because they are not absolute page URLs.
- FTP URLs, malformed percent escapes, control characters, embedded credentials, and fragments are rejected.
- Credentials are blocked because a username or password should never be published in a sitemap location. Fragments are blocked because they are not sent to the server and should not create separate entries for one fetched resource.
Whitespace handling is exact: whitespace-only lines are ignored, but leading or trailing whitespace on a nonblank line causes an error instead of being silently trimmed. Review the source list rather than relying on automatic cleanup.
Create the XML sitemap from the URL list
- Paste the reviewed list. Put one absolute HTTP or HTTPS URL per line and keep all entries for one serialized host in that file.
- Set optional fields. Leave last modified, change frequency, and priority blank for loc-only entries, or choose one value that can truthfully be applied to every URL.
- Generate the XML. The tool validates the complete request, normalizes accepted URLs, removes duplicates in first-seen order, escapes XML data, and shows the finished XML plus counts. An invalid line is not silently skipped.
- Review every entry. Compare the unique-URL and duplicate counts with the source list, inspect the complete preview, and confirm that the schemes, paths, and metadata represent pages you intend to expose.
- Download and publish. Download the prepared file as sitemap.xml and make it available on the represented site. The generator creates the file; it does not host or submit it.
Use optional metadata only when it is accurate
Leaving the optional controls blank produces entries containing only the URL location. If supplied, each field uses one shared value for every entry. That works for a tightly controlled list, but it is unsuitable when pages have different modification dates or crawl expectations.
| Field | Accepted input | Constraint |
|---|---|---|
| Last modified | A real Gregorian YYYY-MM-DD date or a complete date-time with seconds and either Z or a valid UTC offset | The same value applies to every URL and must truthfully represent a significant modification. |
| Change frequency | always, hourly, daily, weekly, monthly, yearly, or never | It is a shared protocol hint, not a crawl command. |
| Priority | A decimal value from 0.0 through 1.0 | It is a shared protocol hint, not a ranking guarantee. |
Invalid metadata fails the entire generation, and leading or trailing whitespace in an optional field is not trimmed. The tool also cannot read real modification dates from pages, so do not supply a convenient lastmod value unless it is accurate for every listed URL.
Know the limits and failure behavior
The browser tool deliberately uses lower whole-file limits than the sitemap protocol to bound parsing, preview, Blob, and browser memory. These caps apply to a complete generation job:
- Up to 10,000 unique URLs are accepted. The 10,000th unique URL succeeds, while the next unique URL fails. Duplicate lines do not consume output slots.
- The pasted input may contain up to 5,000,000 UTF-16 code units.
- The final XML may contain up to 10,485,760 UTF-8 bytes. The exact boundary is accepted, while one additional byte is rejected.
- A normalized location may contain at most 2,047 characters, keeping each loc below the protocol's 2,048-character boundary.
XML size is measured after URL serialization, entity escaping, optional tags, indentation, and UTF-8 encoding. The underlying protocol permits 50,000 URLs and 52,428,800 uncompressed bytes, but this tool uses the lower browser-safe budgets. Every limit is all-or-nothing: excess valid URLs are never silently dropped, and there is no shortened XML, capped preview, partial file, or partial download. If generation fails, correct the source or divide the work into separate files and generate again.
Separate generation from site verification
The utility begins and ends with the supplied URL list. 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.
- Review URLs that redirect and confirm which destination should remain in the list.
- Check for duplicate content, especially when both HTTP and HTTPS versions are included.
- Remove blocked, private, missing, or otherwise unintended pages before publication.
- Confirm that any shared metadata accurately describes every entry.
The tool also does not create sitemap indexes, image, video, or news extensions, hreflang markup, gzip files, robots.txt rules, or Search Console submissions. If several hosts require files, generate each file separately; this utility does not assemble them into a sitemap index.
Publish the reviewed sitemap on the represented site
The output begins with a UTF-8 declaration and a urlset element using the official sitemap namespace. Each entry contains a url element with a loc element, and special XML characters in locations are entity-escaped. Review the complete preview before downloading it.
- Confirm that every listed URL is public, intentional, and the version you want search engines to discover.
- Check any HTTP and HTTPS pair to ensure both entries represent useful destinations rather than an unwanted duplicate.
- Make sitemap.xml available at an appropriate location on the represented site and follow the publication and submission steps in Google Search Central’s sitemap guide.
The generator cannot verify where the sitemap will be hosted or whether cross-site submission permissions exist. Publishing, submission, and monitoring are separate from creating the XML. The final file is therefore only as accurate as the reviewed URL list and any truthful metadata supplied with it.
For a deeper look, see Is Sitemap URL Extractor Safe to Use Online?.
For a deeper look, see UTM Builder Safe: Privacy, Tracking, and URL Checks.