📝
Text Diff
Compare two texts with line and word-level diff highlighting.
Input Texts
Options:
About This Tool
This text diff tool compares two pieces of text and highlights the differences between them. It uses an LCS (Longest Common Subsequence) based algorithm to produce accurate diffs.
Unified view shows all changes in a single column with + and - prefixes, similar to git diff. Split view shows original and modified text side by side with line numbers.
Use the options to ignore whitespace differences, case differences, or blank lines when comparing. The swap button lets you quickly reverse the comparison direction.
📖How to Use
- 1Paste two texts into the respective input fields
- 2Added, deleted, and changed lines are highlighted in color
- 3Toggle between inline and side-by-side view
💡Tips & Knowledge
- •Great for quickly reviewing changes in config files or code
- •Character-level diff is also available, so no small change goes unnoticed
- •The unified view uses +/- prefixes like git diff, making changes easy to read at a glance
🔗 Related Tools
📋
JSON FormatterFormat and minify JSON data with syntax highlighting.
🔍Regex TesterTest regular expressions in real-time with match highlighting.
🔄Text ConverterBatch convert case, width, and Japanese kana characters.
📝Markdown PreviewPreview Markdown in real-time. Tables, code blocks supported. Copy HTML output.
All calculations run in your browser. No data is sent to any server.