Suggestions
LLMs.txt Lab logo LLMs.txt Lab

llms.txt Converter

Convert llms.txt files to CSV, JSON or HTML, or turn structured CSV and JSON data into a properly organized llms.txt file.

Waiting for input...

What Is the llms.txt Converter?

The llms.txt Converter is a multi-format conversion workspace designed to transform structured llms.txt content into formats that are easier to edit, analyze, store, or display. It also allows structured CSV and JSON data to be converted back into a properly organized llms.txt file.

How the Converter Works

This tool processes your files directly in your browser. It parses the structure of the input file and maps its elements into the corresponding fields of your desired output format, maintaining the hierarchical integrity of your data.

Supported Conversion Formats

The converter currently supports converting back and forth between llms.txt and JSON, CSV, or HTML. Each format is tailored for different use cases like programmatic access, spreadsheet editing, or web display.

How llms.txt Is Converted to JSON

The tool parses the Markdown structure of your llms.txt file and builds a complete JSON object. This is the most complete conversion, preserving the full hierarchy including sections, link records, summaries, and Markdown blocks.

How llms.txt Is Converted to CSV

It extracts the links and sections from your file into tabular data. You can choose "Links-only" mode for easy spreadsheet editing or "Portable" mode to allow round-trip conversions back to llms.txt.

How CSV Is Converted to llms.txt

The tool reads your tabular data and attempts to map columns to standard fields. A mapping interface lets you confirm which columns correspond to Section, Title, URL, and Description before generating the final Markdown.

How JSON Is Converted to llms.txt

It takes structured JSON data and builds a valid llms.txt file. If your JSON follows a custom schema, the mapping wizard will help you link your keys to the necessary llms.txt properties.

How llms.txt Is Converted to HTML

The tool generates semantic, sanitized HTML from your llms.txt file. This is perfect for displaying your AI resources on a webpage or CMS directly.

CSV and JSON Field Mapping

When converting custom data to llms.txt, the tool uses a mapping system. It attempts to assign which columns or JSON keys correspond to required fields (like URL and Title) and optional fields (like Section and Description).

What Information Is Preserved?

Structured JSON can preserve nearly all llms.txt information. A simple links-only CSV cannot preserve complex introductory Markdown, which is why we offer a Portable CSV mode that retains project, summary, and section records.

Understanding Conversion Warnings

Not every format can hold the same type of data. The Warnings tab provides a detailed loss report after every conversion. It explains exactly what was preserved, generated, ignored, or unsupported.

Related Components

Questions you might have

Can I convert CSV to llms.txt?
Yes. The user maps CSV columns to section name, link title, URL and description fields, and then enters a project title when the CSV does not contain one.
Is every conversion lossless?
No. Structured JSON can preserve nearly all llms.txt information. A simple links-only CSV cannot preserve complex introductory Markdown unless additional portable columns or record types are used.
Are link descriptions required?
No. A file-list record requires a Markdown hyperlink, while the colon and description are optional.
Does the Converter fetch page titles?
Not in its basic mode. Metadata fetching should be handled by the llms.txt Generator.
Can I edit the output before downloading?
Yes. The output editor should revalidate the manually edited version and use that version for copying and downloading.
Can external URLs be included?
Yes. The proposal allows a curated resource overview and notes that useful external resources may help explain a project.
What is Portable CSV mode?
It includes project, summary, information, section and link records so the CSV can be converted back into a fuller llms.txt file.
Does HTML output guarantee reverse conversion?
No. HTML is intended primarily for human-readable presentation unless your converter also embeds its structured JSON data.