TextZap / Robots.txt generator
FREE ONLINE TEXT TOOLS

Robots.txt generator

Generate robots.txt from disallowed paths

✓ No sign-up✓ Local processing

Robots.txt generator

What is robots.txt?

The robots.txt file provides crawling instructions to compliant robots. It is served at the root of the host and applies to that host, protocol and port.

How to use the generator

Enter one path to disallow per line, choose the user agent and optionally supply the absolute sitemap URL. Copy the generated rules into robots.txt at the root of your website.

Practical example

Use /search/ to discourage crawling of internal search pages when appropriate. Do not block CSS or JavaScript needed to render public pages. Test rules against representative URLs before publishing.

Does Disallow protect private files?

No. Use authentication and authorization for private content. Robots.txt is public and some robots ignore it.

Does Disallow remove pages from Google?

Not necessarily. A blocked URL may still appear in search results. For public pages that must not be indexed, an accessible noindex directive may be appropriate.

What it does

Create crawler directives for selected paths and an optional sitemap address.

How to use

Enter one disallowed path per line, set the user agent and optionally the sitemap URL.

Example

/private/ → Disallow: /private/

Limitations

Robots.txt is not access control and does not guarantee removal from search results.

Explore all 200 text tools

Analysis · 25

Formatting · 30

Cleaning · 15

Generators · 20

Conversion · 30

SEO & extraction · 35

URL slug generatorCreate a clean URL slugKeyword density checkerCalculate frequency and percentage of wordsKeyword occurrence counterCount literal keyword occurrences ignoring caseExtract emailsExtract common email address patternsExtract URLsExtract HTTP and HTTPS URLsExtract numbersExtract signed integers and decimalsExtract hashtagsExtract unique hashtagsExtract mentionsExtract social media mentionsMeta title length checkerMeasure title length against a chosen character targetMeta description length checkerMeasure description length against a chosen targetN-gram counterCount consecutive word groupsExtract domainsExtract hostnames from web URLsText truncatorLimit text to a chosen character countExtract HTML headingsExtract H1 through H6 headings from HTMLExtract HTML linksExtract href attributes from HTML anchorsReadability checkerAnalyze sentence length and long wordsFlesch reading easeEstimate English Flesch reading easeSyllable counterEstimate syllables using language-specific vowel rulesEssay word counterTrack essay word count against a targetText similarity checkerCompare unique word sets using Jaccard similarityStop words removerRemove common words using the list for the selected languageLong sentence finderFind sentences exceeding a word limitGoogle SERP previewPreview a sample search result snippetOpen Graph generatorGenerate escaped social sharing meta tagsRobots.txt generatorGenerate robots.txt from disallowed pathsSitemap XML generatorGenerate sitemap from absolute URLs, one per lineHreflang generatorEnter language code and URL on each lineCanonical tag generatorGenerate canonical tag from absolute URLSchema markup generatorEnter website name and URL on separate linesMeta tag generatorEnter title and description on separate linesTwitter card generatorEnter title, description and image URL on separate linesUTM builderEnter URL, source, medium and campaign on separate linesURL parserInspect URL componentsURL cleanerRemove common tracking parametersRedirect generatorEnter old path and new absolute URL on separate lines

Social Media · 20

Developer Tools · 25