How to Create an llms.txt File for Any Website
Creating an llms.txt
file for your website is now simpler than ever with the llms.txt Generator. This tool enables you to compile your entire website into a single text file that can be used with any Large Language Model (LLM), improving how AI interacts with your content.
What is an llms.txt File?
An llms.txt
file is a standardized markdown file proposed by Jeremy Howard to provide information to help LLMs use a website at inference time. Unlike traditional web content designed for human readers, llms.txt
files offer concise, structured information that LLMs can quickly ingest. This is particularly useful for enhancing development environments, providing documentation for programming libraries, and offering structured overviews for various domains such as corporate websites, educational institutions, and personal portfolios.
The llms.txt
file is located at the root path /llms.txt
of a website and contains sections in a specific order, including a project name, a summary, detailed information, and file lists with URLs for further details. This format allows LLMs to efficiently access and process the most important information about a website.
Introducing llms.txt Generator ✨
The llms.txt Generator leverages Firecrawl to crawl your website and extracts data using gpt-4o-mini. You can generate both llms.txt
and llms-full.txt
files through the web interface or via API.
Accessing llms.txt via API
You can access llms.txt
directly by making a GET request to:
http://llmstxt.firecrawl.dev/{YOUR_URL}
For the full version, use:
http://llmstxt.firecrawl.dev/{YOUR_URL}/full
If you have a Firecrawl API key, you can include it to unlock full results and remove limits:
http://llmstxt.firecrawl.dev/{YOUR_URL}?FIRECRAWL_API_KEY=YOUR_API_KEY
For the full version with API key:
http://llmstxt.firecrawl.dev/{YOUR_URL}/full?FIRECRAWL_API_KEY=YOUR_API_KEY
How to Generate Your llms.txt File
-
Visit the Generator: Go to http://llmstxt.firecrawl.dev.
-
Enter Your Website URL: Input the URL of your website.
-
Generate the File: Click the generate button and wait a few minutes as the tool processes your site.
-
Download Your Files: Once ready, download the
llms.txt
andllms-full.txt
files.
No API Key Required, But Recommended
While an API key is not required, using a free Firecrawl API key removes any usage limits and provides full access to all features.
Learn More and Get Involved
-
llms.txt Standard: Discover more about the
llms.txt
standard at http://llmstxt.org. -
Directory of Adopters: Check out the directory of
llms.txt
adopters at http://directory.llmstxt.cloud. -
Contribute: The llms.txt Generator is open source. Visit the GitHub repository to contribute: https://github.com/mendableai/llmstxt-generator.
References
Ready to Build?
Start scraping web data for your AI apps today.
No credit card needed.
About the Author
Eric Ciarla is the Chief Operating Officer (COO) of Firecrawl and leads marketing. He also worked on Mendable.ai and sold it to companies like Snapchat, Coinbase, and MongoDB. Previously worked at Ford and Fracta as a Data Scientist. Eric also co-founded SideGuide, a tool for learning code within VS Code with 50,000 users.
More articles by Eric Ciarla
How to Create an llms.txt File for Any Website
Learn how to generate an llms.txt file for any website using the llms.txt Generator and Firecrawl.
Cloudflare Error 1015: How to solve it?
Cloudflare Error 1015 is a rate limiting error that occurs when Cloudflare detects that you are exceeding the request limit set by the website owner.
Build an agent that checks for website contradictions
Using Firecrawl and Claude to scrape your website's data and look for contradictions.
Getting Started with OpenAI's Predicted Outputs for Faster LLM Responses
A guide to leveraging Predicted Outputs to speed up LLM tasks with GPT-4o models.
How to easily install requests with pip and python
A tutorial on installing the requests library in Python using various methods, with usage examples and troubleshooting tips
How to quickly install BeautifulSoup with Python
A guide on installing the BeautifulSoup library in Python using various methods, with usage examples and troubleshooting tips
How to Use OpenAI's o1 Reasoning Models in Your Applications
Learn how to harness OpenAI's latest o1 series models for complex reasoning tasks in your apps.
Introducing Fire Engine for Firecrawl
The most scalable, reliable, and fast way to get web data for Firecrawl.