Text Diff
Compare two texts and see every addition and deletion highlighted.
100% in-browser — no data sent anywhere
Original
0 chars
Modified
0 chars
Diff Result
What is a Text Diff?
A diff (short for difference) compares two pieces of text line by line and highlights what was added, removed, or left unchanged. It is one of the most fundamental tools in software development, used by version control systems like Git to track changes.
This tool uses a longest common subsequence (LCS) algorithm to find the optimal alignment between the two texts, producing a minimal and accurate diff output.
Common uses
Code Review
Compare code versions to spot bugs, review pull requests, or understand changes.
Document Editing
See what changed between drafts of contracts, articles, or documentation.
Config Changes
Compare server configs, YAML files, or environment variables across deployments.
Debugging
Compare expected vs actual output to pinpoint where things went wrong.
Data Validation
Verify that data transformations, migrations, or exports produced correct results.
Version Tracking
Track how policies, procedures, or specs evolve over time.