Text Diff Checker
100% FreeSide-by-side line diff between two blocks of text using LCS — added/removed/equal hunks, similarity percentage, ignore-whitespace + ignore-case toggles.
Embed This Tool
Easy to EmbedAdd Text Diff Checker to your website or blog in seconds.
- Responsive design
- Lightweight & fast
- No backend required
- Always up-to-date
<iframe
src="https://tools.town/embed/text-diff-checker/"
width="100%"
height="600"
style="border:none; border-radius:12px;"
loading="lazy"
title="Text Diff Checker">
</iframe> Advertisement
How to Use
- 1 Paste original text on the left, modified text on the right
- 2 Diff updates instantly with LCS-based line matching
- 3 Toggle 'Ignore whitespace' or 'Ignore case' for noisy comparisons
- 4 Added lines highlighted green, removed red, unchanged grey
Features
- Longest Common Subsequence algorithm (correct line matching)
- Side-by-side diff view with line numbers
- Similarity percentage based on common-line ratio
- Ignore-whitespace mode for code/config diffs
- Ignore-case mode for prose comparisons
- 100% client-side — handles thousands of lines in-browser
Why it Matters
Spotting differences between two texts by eye is error-prone. A line-level diff with proper LCS matching highlights exactly what changed — added, removed, or moved. Useful for proofreading edits, comparing config files, and tracking changes across draft versions.
Use Cases
Config Diff
Compare two .env or YAML files to spot the changed setting
Editing Review
See exactly what an editor changed in a draft
Compliance Check
Detect unauthorised modifications between document versions
Frequently Asked Questions
What's LCS?
Why doesn't it show character-level diffs within a line?
How big can the inputs be?
Why is similarity 50% when only one line differs?
Related Tools You Might Like
Character Counter
Real-time character, word, line, sentence count plus Twitter / SMS / meta-description limit warnings. Grapheme-aware (emoji counts as 1).
Duplicate Line Remover
Strip duplicate lines from any list, preserving the first occurrence and original order. Case + whitespace toggles, optional alpha sort.
Find and Replace
Find and replace across a block of text — plain or full regex with back-references, case toggle, multiline mode.
Remove Extra Spaces
Whitespace cleanup with surgical control — collapse spaces, trim lines, collapse newlines, remove blank lines, or strip ALL whitespace.
Text Sorter
Sort lines five ways — alphabetical, natural (item2 < item10), length, numeric, random shuffle. Reverse, case toggles, blank-line handling.