Text Diff Checker
Compare two texts, code files, or documents side by side. Highlights every added, removed, and unchanged line — instantly, in your browser.
Paste Your Texts to Compare
Original / Text A
Modified / Text B
What is a Text Diff?
A diff (short for difference) is a way to compare two versions of a text and show exactly what changed. Lines prefixed with − were removed, lines with + were added, and unmarked lines are unchanged.
Common Use Cases
- Code review: See what changed between two versions of source code
- Document comparison: Compare contract revisions, legal documents, or articles
- Configuration files: Compare server configs, JSON, YAML, or .env files
- API responses: Spot differences between two JSON responses
- Plagiarism detection: Find common text between two documents
This Tool vs. Git Diff
This tool uses the Longest Common Subsequence (LCS) algorithm — the same algorithm used by git diff, diff command-line tool, and most code review tools. It gives a minimal diff, preserving as many unchanged lines as possible.