SEO 8 min read 1,683 words By LaiUse Editorial Team Reviewed 28 October 2026

Sitemap Generator — Complete Guide

Sitemap Generator generates a sitemap by crawling a website that you provide.

What it does

This tool generates a sitemap by crawling a website that you provide. You enter or paste a web address, configure the crawl using the Crawl Depth: and Max Pages: controls, and the tool returns discovered pages as XML along with a list of the pages it found. The XML is the intended output for a sitemap, while the Page List gives a readable inventory of the URLs included in the result.

The crawl is not performed entirely in your browser. Although the tool marks local processing as a capability, the implementation details also state that the tool calls the backend endpoint /api/tools/sitemap-generate. In practical terms, the submitted address and crawl settings are sent to that backend to produce the result. The implementation uses plain browser APIs and no third-party libraries, and the page does not remember its state between visits. Output does not update as you type; you must press the tool’s action control to generate a sitemap. That control’s wording is not included in the available interface labels.

When to use it

How to use it

  1. Enter the full address of the site you want to crawl in the URL field. The tool’s sample value is https://example.com. A complete URL with a valid scheme and host is required.
  2. Set Crawl Depth: to the depth you want the crawl to explore. A shallow setting is appropriate for a limited view of the site, while a deeper setting allows the crawler to follow more levels from the starting URL. The tool does not publish a numeric maximum or minimum for this control.
  3. Set Max Pages: to the greatest number of pages you want the crawl to return. This is useful for preventing a large site from producing an unnecessarily large result. No published numeric limit is provided for the permitted value.
  4. Press the tool’s action control to run the crawl. The available labels do not include the wording of this button, so it should not be identified by an invented name. The tool does not run automatically when the URL or settings change.
  5. Review the discovered URLs in Page List. This area shows the pages reached by the crawl, which is useful for confirming that the starting URL was accepted and that the configured depth and page cap produced the intended scope.
  6. Inspect the generated XML. Select Copy XML to copy it to the clipboard, or use the download control to save the generated result. The source does not specify the download filename or a separate file-format choice.

Worked example

Suppose you want to generate a sitemap for a documentation site whose starting address is https://docs.example.org. Enter that address in the URL field. Set Crawl Depth: to 2 and Max Pages: to 50, then press the action control.

Assume the crawl can reach the home page, an overview page at /overview, a guide at /guides/getting-started, and a reference page at /reference. The exact set depends on what the site exposes to the crawler at the time of the request. The expected result is an XML sitemap representation of the pages found, together with a Page List containing their URLs. With the illustrative settings above, the crawl is intended to explore up to two levels and return no more than 50 pages. If the site exposes more than 50 reachable pages within that depth, the page cap constrains the result; if it exposes fewer, the crawl ends because it has no further pages to process within the configured scope.

You can then select Copy XML to copy the generated XML, or use the download capability to save it. There is no file-upload step and no need to open a local HTML or text file: this tool begins with a URL rather than with local content. Likewise, the output is not regenerated while you edit the settings. If you change Crawl Depth: or Max Pages:, you must run the action again to obtain a new result.

For the built-in example, the same process begins with https://example.com. The sample is useful for confirming that the interface and backend are operating, but the pages returned will reflect the site as it exists when the crawl runs. The tool does not promise a fixed example sitemap or a fixed set of sample URLs.

Limitations and edge cases

Troubleshooting

Frequently asked questions

Does the tool upload files? No. It has no file input and no drag-and-drop support. You work with a URL that you enter or paste, not with a local file.

Is the crawl performed entirely in my browser? No. The implementation explicitly calls the backend endpoint /api/tools/sitemap-generate. The browser handles the interface and output actions, but the sitemap generation workflow requires backend processing.

What output does it produce? It produces sitemap XML and a Page List of discovered pages. You can select Copy XML or download the generated result. No separate output-format choices are provided.

What are the limits for Crawl Depth and Max Pages? The tool does not state a numeric limit for either control. Use the available values to bound the crawl, but consult a dedicated crawler if you need documented ceilings, large-scale coverage, or precise reporting.

Does it remember my URL and settings? No. The implementation does not use local storage, and state is not remembered between visits. Save the generated output and record the settings you need to keep.

Can I use the built-in sample? Yes. The tool ships with the sample URL https://example.com. It is a convenient way to exercise the workflow, although the tool does not guarantee a particular set of returned pages.

Does it generate results automatically while I type? No. It does not have an auto-run capability or live output. Press the action control after entering the URL and choosing the crawl settings.

When should I use a different tool? Use a different solution for local-file processing, fully offline generation, comprehensive large-site audits, fixed numeric guarantees, or sitemap types not represented by this tool’s single XML-generating mode.

Want to try it? Open the Sitemap Generator — it runs in your browser, so your files stay on your device.

Browse every guide · Read the blog · About LaiUse