inspect

Text Diff

Compare two text files and produce a unified diff with change statistics.

Loading…

About Text Diff

Text Diff compares two blocks of text and produces a unified diff with change statistics, so you can see exactly what was added, removed, or kept. Use it to spot differences between two versions of a document, config, or message when you don't have Git handy. Both inputs are compared in your browser, so nothing you paste is uploaded.

Category
inspect
Input
Accepts: text/plain.
Output
Outputs: text/plain (multiple).
Cost
Free, runs in your browser
Memory
low
Privacy: Text Diff runs entirely on your device. Files you provide never leave your browser — no uploads, no server, no tracking. The page works offline once loaded.

Common uses

  • Compare two drafts of a contract clause and see every line that changed
  • Diff a config file before and after an edit to confirm only the intended lines moved
  • Check what a colleague changed between two pasted versions of a README
  • Produce a unified diff you can attach to a code review or bug report without a repo
  • Verify a copy-edit pass by diffing the original prose against the revision
  • Catch accidental whitespace or wording drift between two near-identical text snippets

Frequently asked questions

What format is the output?

A standard unified diff (the +/- line format you see from diff and Git) plus summary statistics of how many lines were added and removed.

What kind of input does it take?

Plain text. Paste both sides directly; it's a line-oriented comparison, so it works best on text with natural line breaks.

Are my two texts sent anywhere?

No. The comparison runs locally in your browser, so confidential documents and config files stay on your machine.

Does it diff word-by-word or line-by-line?

It's a line-based unified diff, which is the standard for code and config. Reordered words within a line show as a changed line.

Is there a size limit?

There's no hard cap, but very large inputs run slower since the whole diff is computed in the page. For typical documents and files it's effectively instant.

Keywords

  • diff
  • compare
  • text
  • patch
  • changes
  • unified

Try next