Text Compare

Compare original and changed text locally with line-based diffs, whitespace and case options, and a compact summary.

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

What does Text Compare do?

Text Compare compares two text blocks line by line and highlights additions, removals, and changes.

  • Primary use: Text Compare compares two text blocks line by line and highlights additions, removals, and changes.
  • Key technical fact: Line-based diffs are the same comparison model used by many code review and version-control workflows.
  • Practical check: Review Unicode, whitespace, line break, and punctuation behavior before treating the output as production text.
Topic Direct answer Source
Direct answer Text Compare compares two text blocks line by line and highlights additions, removals, and changes. Browser JavaScript
Key fact Line-based diffs are the same comparison model used by many code review and version-control workflows. Browser JavaScript
Processing model Runs locally in the browser; no production Node server receives the input. Browser JavaScript

Compare two text versions line by line

Text Compare shows what changed between an original text block and a revised version. It marks added, removed, changed, and unchanged lines, making it useful for release notes, config edits, translated copy, SQL snippets, logs, and before-and-after content checks.

The diff is line-based, similar to many code review tools. It is best for text where each line has meaning; it will not show character-level edits inside a line unless the whole line is classified as changed. Whitespace and case options can hide noise when exact formatting is not important.

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 Text Compare?

Text Compare is a browser-based diff tool for plain text. It helps you verify whether a generated file, edited paragraph, copied setting, or rewritten message still contains the lines you expect.

Line endings, trailing spaces, indentation, and capitalization can all affect results unless you enable the ignore options. For structured formats such as JSON or HTML, format both sides consistently before comparing for a cleaner diff.

Input notes

Put the baseline text on the left and the revised text on the right. Enable Show unchanged lines when you need context, or disable it for a shorter change-only report.

Example

A changed status line is reported with the removed version and the added version:

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.