Text Diff Checker

Compare two texts side-by-side and highlight differences instantly.

How to Compare Two Texts Online

1. Paste your original text

Paste the original or older version of your text into the left panel. This can be source code, a document, a config file, JSON, or any plain text.

2. Paste the modified text

Paste the newer or modified version into the right panel. The tool compares both versions and highlights every addition, deletion, and change between them.

3. Review the differences

Green highlights show added text, red shows removed text, and unchanged lines are shown in grey. Use line-by-line mode for a clean overview or character mode for precise changes.

Diff Output Explained

MarkerMeaningDisplay
+Line or text added in the new versionGreen highlight
-Line or text removed from the originalRed highlight
~Line modified (part added, part removed)Mixed highlight within the line
Unchanged line — identical in both versionsNo highlight (grey)

Common Use Cases

Code review
Compare two versions of a function or file to review what changed before merging a pull request.
Document comparison
Compare two drafts of a contract, report, or essay to spot additions and deletions made by collaborators.
Config file diff
Compare development and production config files to find discrepancies causing environment-specific bugs.
API response debugging
Diff two API responses to identify what changed between versions of an endpoint.
Plagiarism checking
Compare a submitted document against an original to identify copied or lightly modified passages.
Translation verification
Compare an original text against a back-translation to verify accuracy.
FAQ

Text Diff Checker