Text Diff Checker
Compare original and modified text side by side locally in your browser with added, removed, and unchanged line counts and zero uploads.
About this tool
Both inputs are split into lines, normalized according to your case and whitespace toggles, and aligned using a Longest Common Subsequence (LCS) matrix in memory. Added lines are prefixed with +, removed lines with -, and unchanged lines with two spaces.
How to use the diff checker
- Paste the original text into the left box and the changed text into the right box.
- Read the differences. Lines that were removed, added or changed are highlighted line by line.
- Use Swap to exchange the two texts if you pasted them the wrong way round.
- Copy the diff to share the changes, or use Clear to start again.
What the comparison shows
The checker compares the two texts line by line and then within changed lines, so you can see exactly which words moved, were replaced or were deleted. A line that only gained a word shows the new word, so small edits do not look like whole rewrites.
Whitespace and line breaks are compared as they are unless you tick Trim spaces, so an extra blank line is a real change. Ignore case treats Draft and draft as the same word. This is useful for code and contracts, where a single character can matter.
A worked example
The sample texts are two drafts of a short report. Draft 2 changes three numbers, one plan and one deadline, and it adds a line about hiring. The diff marks each change, so you can check every edit without rereading the whole document.
- Check what changed between two versions of a contract before you sign.
- Compare a translated text with the original to confirm no sentence was dropped.
Who uses a text diff
- Editors and writers reviewing changes from a colleague or a client.
- Developers comparing a configuration file, a SQL query or a snippet of code.
- Legal and compliance staff checking an agreement against a previous draft.
- Students comparing their own draft with a model answer.
- Anyone who wants to be sure what changed before they publish.
Tips and common mistakes
- Make sure both texts use the same line endings. A mismatch can show every line as changed.
- Trailing spaces count as differences. Clean the text first with the Whitespace Cleaner if they are not important.
- For long documents, compare one section at a time, so the highlighted changes are easy to follow.
- Both texts are compared in your browser. Nothing is uploaded, so confidential drafts stay on your device.
- A diff shows what changed, not whether the change is correct. Read the highlighted lines carefully.
Frequently asked questions
Related browser tools
Word Counter
Count words, unique words, characters without spaces, sentences, reading time, speaking time, and keyword density locally in your browser with zero uploads.
Case Converter
Convert text between UPPERCASE, lowercase, Title Case, Sentence case, camelCase, snake_case, and kebab-case locally in your browser with zero uploads.
Remove Duplicate Lines
Remove duplicate lines from any list or text file locally in your browser with case-sensitive, trim whitespace, blank-line, and A-Z sort options.