Text Difference Checker
Free online text diff checker. Paste two versions of a text and instantly see which lines were added or removed, highlighted side by side. Runs 100% in your browser.
How does a text diff work?
A diff compares two versions of a text and reports the minimal set of lines added and removed. This tool uses the longest-common-subsequence (LCS) algorithm — the same foundation as git diff — so unchanged blocks stay aligned and only real changes are highlighted.
Typical uses: reviewing edits to a contract or article, comparing two config files, checking what changed between two API responses, or verifying that a refactor did not alter output.
How to use
- 01Paste the original text into the left box.
- 02Paste the changed version into the right box.
- 03Click Compare texts.
- 04Removed lines are highlighted red, added lines green.
Frequently asked questions
- How does the comparison work?
- The tool uses a longest-common-subsequence (LCS) algorithm on lines — the same approach used by git diff — to find the minimal set of added and removed lines.
- Can I compare code with this tool?
- Yes. The diff is line-based and monospaced, which makes it well suited to comparing code snippets, configs and JSON.
- Is my text private?
- Yes. Both texts are compared locally in your browser and never uploaded.