llms.txt Merge & Compare Tool

Compare two llms.txt files, review structural and line-by-line changes, resolve conflicts, remove duplicates and merge them into one organized file.

llms.txt Merge & Compare

Compare files, resolve changes and create one output

Free
File A (Base)
File B (Newer)

What Is the llms.txt Merge & Compare Tool?

The llms.txt Merge & Compare tool lets you compare two llms.txt files side by side or merge them into a single organized document. It parses files at both the raw text level and as an Abstract Syntax Tree (AST), identifying matching sections, new or deleted URLs, description differences, and duplicate links.

Compare Mode vs. Merge Mode

The tool serves two distinct purposes depending on your selected mode:

Compare Mode

Read-Only Difference Inspection

Visualizes added, removed, and modified sections and links without altering either file. Offers Overview, Structure, Links, and Text Diff tabs for non-destructive auditing.

Merge Mode

Interactive Conflict Resolution

Combines unique sections and links from both files into a unified document. Presents conflicting descriptions or titles as interactive Conflict Cards so you can select the winning version before exporting.

Three Common Use Cases

  • Version Auditing (Production vs. Release Candidate): Compare your live production /llms.txt against a proposed update to verify which routes were added, changed, or retired before deploying.
  • Environment Parity (Staging vs. Production): Check that new documentation sections developed on a staging site match production conventions.
  • Merging Automated & Manual Sources: Combine an automatically extracted sitemap URL list from the llms.txt Generator with manually curated editorial descriptions from technical writers.

Concrete Example: How Matching & Conflicts Work

Suppose you compare an older documentation file with an updated version:

# File A (Base): ## Documentation
- [Getting Started](https://example.com/start): Installation guide
- [API Reference](https://example.com/api): REST endpoints
# File B (Updated): ## Documentation
- [Getting Started](https://example.com/start): Quickstart and setup
- [API Reference](https://example.com/api): REST endpoints
- [Authentication](https://example.com/auth): API key authorization
# Result Analysis: + Added Link: [Authentication](https://example.com/auth)
• Description Conflict: [Getting Started] → "Installation guide" vs. "Quickstart and setup"
• Unchanged: [API Reference](https://example.com/api)

In Merge mode, the tool automatically retains the unchanged links and prompts you to select your preferred description for Getting Started before creating the final downloadable output.

What Elements Are Compared?

The AST parser checks several distinct dimensions:

  • Section Matching: Sections with matching names are paired together. Added or removed sections are categorized separately.
  • Link URL Matching: URLs are matched across corresponding sections. Unique links are merged cleanly.
  • Duplicate Detection: Identical URLs appearing multiple times across different sections are flagged so you can avoid redundancy.
  • Core vs. Optional Scoping: If a link appears in a primary section in File A but under ## Optional in File B, the tool highlights this scope difference.

Next Steps: Validation & Formatting

Once you have merged your files, pass the final result through the llms.txt Validator to ensure proper H1 syntax and test live deployment headers, or use the llms.txt Formatter to adjust whitespace and indentation.

Free WordPress plugin

Publish your llms.txt automatically

Generate and maintain a clean /llms.txt endpoint from your WordPress posts, pages, categories and public custom post types.

Related Components

Questions you might have

What is the difference between Compare and Merge?
Compare mode is read-only and highlights differences across sections and links without altering content. Merge mode combines unique resources and presents conflicting descriptions as interactive cards to produce a single final file.
Does the tool modify my original files?
No. Both source files remain untouched. Any combined output is generated as a separate file for download or clipboard copy.
How does the tool handle conflicting descriptions for the same URL?
If both files share a URL but have different descriptions, a Conflict Card is generated. You can click "Use A", "Use B", or type a custom description before exporting.
Are duplicate URLs removed automatically?
Exact duplicates (identical URL, title, and description) can be deduplicated automatically. Ambiguous duplicates are presented for review to avoid accidentally deleting needed context.
Can I compare files before deploying an update?
Yes. Version auditing is a primary use case: paste your current live file into File A and your updated draft into File B to review all additions and removals before deploying.