Text Diff Tool
A free online diff tool that compares differences between two texts line by line and displays them visually
Original 0 B
Modified 0 B
0
Added Lines
0
Deleted Lines
0
Unchanged Lines
Comparison Result
The two texts are identical.
There are no differences between the original and modified text.
What is a Text Diff Tool?
A text diff tool is a utility that analyzes and visually displays the differences between two texts at the line or character level. It can be used in various situations such as code reviews, checking document changes, and comparing configuration files. It uses the LCS (Longest Common Subsequence) algorithm to accurately detect differences.
How to Use
- Enter the original text in the left input area and the modified text in the right input area.
- Click the "Compare" button to display the differences between the two texts, highlighted with colors.
- Enable the "Character-level Diff" option to see exactly which characters were changed within a modified line.
- Enable the "Ignore Whitespace" option to ignore whitespace differences and compare only substantive content changes.
Frequently Asked Questions
No. All comparison processing is done in the browser, and the entered text is not sent to any external server. You can safely compare source code or sensitive documents.
It uses the LCS (Longest Common Subsequence) algorithm. This algorithm is a standard comparison method also used in version control systems such as Git, enabling accurate difference detection.
Since processing is done in the browser, there is theoretically no limit, but very large texts with tens of thousands of lines may take longer to process. It works without issues for typical code files and documents.
Line-level comparison shows the entire changed line, while character-level comparison (inline diff) highlights exactly which characters were added or deleted within a changed line. Enabling character-level comparison makes it easy to identify even subtle changes.
