Text Diff Checker
Compare two texts by line, word or character and see every change. Provide original text, changed text and compare by and the tool shows 1 added, 1 removed immediately.
Your inputs
Your inputs and files stay on your device.
Your result
A little input. A useful answer.
Enter your values and run the tool to see your result here.
What the Text Diff Checker does
Compare two texts by line, word or character and see every change. This text tool runs entirely in your browser. You provide original text, changed text and compare by and it returns 1 added, 1 removed.
How it processes your input: Green = only in the changed text. Red = only in the original.
What you get with each result
Compare by lines, words or characters with the Myers algorithm, ignore case or extra whitespace, and see colour-coded additions and removals with counts and a similarity score.
The formula behind it
The texts are split into lines, words or characters and compared with the Myers diff algorithm, the method behind Git, which finds the smallest set of additions and removals. Ignore case and extra whitespace hide differences you do not care about.
How to use it
- Set Original text.
- Set Changed text.
- Set Compare by.
- Press Compare texts.
- Review the result panel, then use Copy result, Print or Download as needed.
Inputs and options
- Original text: enter text.
- Changed text: enter text.
- Compare by: choose Lines, Words or Characters.
Worked example
Using Original text = The quick brown fox ⏎ jumps over ⏎ the lazy dog; Changed text = The quick brown fox ⏎ leaps over ⏎ the lazy dog; Compare by = Lines, the tool returns:
1 added, 1 removed:
Added lines: 1
Removed lines: 1
Unchanged lines: 2
Similarity: 66.7%
This example was produced by the tool itself.
Every option explained
Compare by offers 3 choices: Lines, Words and Characters. The first entry is the default.
What appears in the result
The result panel breaks the answer into separate lines so you can see how it was built:
- Added lines
- Removed lines
- Unchanged lines
- Similarity
Tips for reliable results
- Paste large blocks of text directly; line breaks are preserved and nothing is trimmed unless the tool says so.
- The result is recalculated each time you press the button, so change one field at a time to see how it affects the outcome.
Frequently asked questions
Which comparison level should I use?
Lines for code and documents, words for edits to prose, and characters for spotting a single changed letter.
Why does it say the texts differ too much?
Comparing long, unrelated texts character by character has no useful answer. Compare by lines, or in smaller pieces.
What does the Text Diff Checker return?
It returns 1 added, 1 removed along with supporting details such as Added lines.
How is the result calculated?
Green = only in the changed text. Red = only in the original.
Does this tool upload my data?
No. Everything you enter is processed by JavaScript on your device, so nothing is sent to a server.
Something not working as expected? Report a problem with Text Diff Checker with a sample input and the result you expected.