Text Compare

Find added, removed, and changed lines with optional whitespace and case-insensitive matching.

Original Text
1
Changed Text
1
Diff Output
1
Added0
Removed0
Changed0
Unchanged0
No text differences to display yet.
0 characters 0 lines

Text Compare

Text Compare compares two text blocks line by line and produces a compact diff for reviews, documentation edits, logs, and configuration snippets.

The comparison runs locally in the browser and can ignore whitespace or casing when you only care about meaningful content changes.

How to use

  1. Paste the original text into the left editor.
  2. Paste the changed text into the right editor.
  3. Choose whether to ignore whitespace, ignore case, or include unchanged lines.
  4. Click Compare Text, then copy or download the generated diff.

What is this tool?

A text diff shows which lines were added, removed, changed, or left unchanged between two versions of text.

Line-based comparison is a practical fit for logs, prose, environment files, SQL snippets, and any plain text that needs a quick before-and-after review.

Input notes

The tool compares by line. Very large inputs work in the browser, but extremely large files may take longer because the diff uses a dynamic-programming line matcher.

Example

A changed line is shown with old and new content:

Original
status: draft
owner: alice

Changed
status: published
owner: alice

Diff
~ [1 -> 1]
- status: draft
+ status: published

MCP integration

MCP (Model Context Protocol) lets AI agents and apps discover and run Coding.Tools utilities for repeatable conversions, formatting, hashing, and generation workflows.

MCP tool name: text-compare

MCP endpoint: https://coding.tools/mcp

Call tools/list first. Each tool entry includes inputSchema, outputSchema, and examples so an AI agent or client can build valid arguments without guessing.

For tools/call, read result.content[0].text for the display value and result.structuredContent for machine parsing. Tool-level failures return isError: true; protocol failures return a JSON-RPC error.

Example tools/call request:

curl -s https://coding.tools/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "MCP-Protocol-Version: 2025-06-18" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"text-compare","arguments":{"input":"status: draft\nowner: alice","options":{"compareTo":"status: published\nowner: alice"}}}}'

Most text and data tools accept an input string plus optional options. Browser-only image tools are listed for discovery and return a web UI link when they need browser image APIs.