XML Sitemap & Robots.txt Generator

Create a sitemap from preferred URLs and draft robots.txt crawl instructions before deployment.

Loading the interactive tool. Read the instructions.

Start with URLs you want indexed

A sitemap is most useful when its entries agree with the rest of the website. List the readable addresses that return a successful response, have the intended canonical and are meant to appear in search. Export the inventory from your CMS or start manually on a small website. Include the homepage, section hubs, articles and integral tools. Leave checkout, internal filter combinations and preview copies out unless you made a specific decision to index them.

Methodology

Enter your site origin and one path or absolute URL per line. The tool trims lines, skips blank entries, prefixes relative paths with the entered origin and escapes XML-sensitive characters in each location value. The XML includes the change frequency you select and a priority of 1.0 for the literal homepage path, or 0.8 for other entries. Search engines can ignore these hints. The generator builds a file from your list. It does not crawl a domain, check status codes, resolve canonical decisions, remove duplicate entries or set last-modified timestamps.

The robots panel turns each nonempty disallow line into a rule under the wildcard user-agent group and adds a Sitemap line for the entered origin. Check whether another part of the existing robots file already defines crawler-specific groups that need to remain in place. Save the sitemap and robots output independently so that publishing one does not accidentally replace unrelated directives.

Worked example

A tutoring site supplies the homepage, a service hub, six service details and five guides. Before generation it finds one service that redirects to a replacement already included in the list, and a guide that uses noindex because it is a private event recap. Removing those two entries leaves 11 URLs. The resulting XML is valid only if each location is properly escaped and uses the production host.

After upload, count the locations and open the replacement service, one guide and the hub in a signed-out browser. Verify they return the page itself and inspect the canonical in the HTML. Repeat this for the root address. A valid file with ten good URLs and a staging URL is still a bad deployment input. Correct the list and regenerate it if the three template checks turn up a shared problem.

How to read the output

Open the live sitemap address and check that its content is XML and its host and scheme match your intended URLs. Inspect the first and last entries for inconsistencies in URL casing or trailing slash conventions. A relative URL in the input is a convenience. The output’s location value should be absolute. Submit the published sitemap in the Search Console property for that site rather than pasting the XML into the dashboard.

Read robots rules in the context of the whole file. A disallow targeting /api/ has a different scope from one targeting /. If you put a directive on a directory, check one URL inside it and one nearby URL you still want crawled. Verify that robots.txt itself responds at the root of each host whose crawling you intend to control.

Common mistakes

Including every link from a site crawl often adds redirects, sign-in screens, duplicate query strings and tracking parameters. An older list can leave retired URLs in XML after the navigation already changed. Reusing a robots template without inspecting the slashes can block an entire set of articles. Keeping a dated export and comparing it against the published version after migration makes these problems easier to spot. Never use a guessed edit date for every page just to fill a sitemap field.

FAQs

Will a submitted sitemap force indexing?

No. It helps Google discover URLs. Inspect an individual URL in Search Console for the reported indexing outcome.

Can I mix www and non-www URLs?

Choose one preferred host for the file and check that equivalent variants redirect to it. If you intentionally manage distinct hosts, create a sitemap appropriate to each host.

Do I need lastmod?

Only include it when you maintain accurate modification dates for meaningful updates. This generator leaves it out.

Can robots.txt remove an already indexed URL?

A crawl block alone is insufficient. Check the removal or noindex method appropriate to the desired result before blocking access to the directive.

Does the generator verify each page?

It transforms the supplied list into XML. Use the audit tool for individual responses and review canonical and indexing signals separately.