snaptools
D
Text Diff
// about this tool

Text Diff Online

Updated 2026-07-09

Compare two blocks of text and highlight the differences line by line, right in your browser. Paste the original on the left and the updated version on the right, and SnapTools color-codes every addition and removal as you type. Nothing is uploaded — all comparison runs locally, so it is safe for private documents, code, and sensitive text on both sides.

Finding what changed between two versions by eye is slow and unreliable. Text Diff shows added and removed lines at a glance, making it quick to review edits, compare config files, or check exactly what a paste or import altered.

// how to use

  1. 1 Paste the original text into the left input panel and the updated text into the right input panel.
  2. 2 The diff runs as you type and highlights changes line by line, color-coded.
  3. 3 Scan the output for additions (green) and removals (red), then copy or download the result.

// examples

One line changed
Input
Original:
name: Ada
role: admin
active: true

Updated:
name: Ada
role: developer
active: true
Output
name: Ada
- role: admin
+ role: developer
active: true
Line added
Input
Original:
apple
banana

Updated:
apple
banana
cherry
Output
apple
banana
+ cherry

// common uses

Comparing two versions of a document Reviewing edits before committing Spotting changes between config files Checking what a paste or import altered

// faq

It compares line by line and highlights which lines were added or removed. Lines that are unchanged are shown for context.
Yes — trailing spaces, tabs, and blank lines are treated as part of the line, so they can show as changes. Trim your text first if you only care about visible content.
No. The comparison happens in your browser — nothing is uploaded, so it is safe for private or sensitive text on both sides.
Text Diff compares any two blocks of plain text line by line; JSON Diff understands JSON structure and compares keys and values. Use JSON Diff when both inputs are JSON.
Yes. Paste each version into a panel and the line-by-line diff highlights exactly what changed, much like a pull request view.

Use this via API

Get a free API key →
curl -X POST https://snaptools.dev/api/v1/tools/text-diff \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"original":"Original: name: Ada role: admin active: true Updated: name: Ada role: develop..."}'
Esc
↑↓ navigate open Esc close