🔀

Text Diff

Compare two texts side by side

Original
Modified

About Text Diff

Paste two versions of any text, see exactly what changed. Green lines with + were added. Orange lines with - were removed. Unchanged lines provide context. Uses the Longest Common Subsequence algorithm — the same one behind `git diff` — to find the minimal set of changes between the two versions. The summary tells you the total lines added and removed. Works for anything text-based: config files, code, JSON, YAML, documents, API responses. Useful any time you need to know what changed between two versions of something.

Common Use Cases

  • Comparing config files to find what changed between environments
  • Reviewing text edits before accepting them
  • Debugging why two API responses differ when they should be the same
  • Checking what changed between two exported data dumps

Frequently Asked Questions

What algorithm is used?+
Longest Common Subsequence (LCS). It finds the largest set of lines that appear in both texts in the same order, then marks everything else as added or removed. Same approach as Unix diff and git diff.
Line-level or character-level?+
Line-level, which is more readable for most use cases. Each line is classified as added, removed, or unchanged.
Can I diff code?+
Yes — any text-based content works. JSON, YAML, Python, SQL, Markdown, plain text. Binary content is not supported.