Text Diff Checker
Paste an original and a changed version to highlight exactly what was added and removed.
Differences
Paste two texts above to see what changed.
How the comparison works
The tool finds the longest run of lines (or words) that both versions share in the same order. Anything else is marked as removed from the original or added in the changed text. This is the same idea used by version control tools like Git.
Lines, words and the options
- Compare by lines: best for code, lists, logs and configuration files.
- Compare by words: best for documents, where edits happen inside a sentence.
- Ignore case: treats "Hello" and "hello" as the same.
- Ignore extra spaces: treats repeated spaces and tabs as one space and ignores spaces at the ends of lines.
What people use a diff checker for
- Checking what changed between two drafts of an essay or contract.
- Spotting edits between two versions of code or a settings file.
- Comparing two lists to see which items are new or missing.
- Verifying that a copy is identical to the original.
How to use the Text Diff Checker tool
- Paste the original text on the left and the changed text on the right.
- Choose to compare by lines or by words, and tick the options you need.
- Read the highlighted differences below. Green was added and red was removed.
Frequently asked questions
What is a diff?
A diff is a list of the differences between two versions of a text: what was added, what was removed and what stayed the same.
Should I compare by lines or by words?
Use lines for code, lists and logs, where whole lines change. Use words for articles and essays, where small edits happen inside sentences.
Is my text uploaded anywhere?
No. The comparison runs in your browser, so your documents stay on your device.