Text Diff Tool
Compare two texts side-by-side and see exactly what changed. Added lines are highlighted green, removed lines red. Runs entirely in your browser. Nothing is sent to any server.
🔒 Private by design. The comparison runs entirely in your browser. No text is uploaded, sent, or stored anywhere.
How to Use
When to Use a Text Diff
Comparing two versions of a contract or legal document to spot what changed. Checking a revised article against the original before publishing. Verifying that two configuration files that should match actually do. Finding the differences between two lists of values when both are too long to scan by eye.
Worked Example
Frequently Asked Questions
What is a text diff tool?
A text diff tool compares two pieces of text and highlights the lines that are different. Added lines appear in green, removed lines in red, and changed lines in yellow. It is useful for comparing two versions of a document, checking what changed in a contract, or spotting differences between a draft and a final version.
Is my text sent to a server?
No. The comparison runs entirely in your browser using JavaScript. Your text is never uploaded or stored anywhere. This makes the tool safe to use with sensitive or confidential text.
What algorithm is used for the diff?
The tool uses a longest common subsequence (LCS) approach to find the minimum set of changes between two texts, the same algorithm used by most diff tools and version control systems like Git.