About the Text Diff Tool
Paste two blocks of text and instantly see every addition, deletion, and unchanged line highlighted with colour coding. Great for comparing code revisions, configuration changes, document edits, or any two versions of a file.
Key Features
- Side-by-side or unified inline view
- Line numbers for easy reference
- Context-only mode to hide unchanged lines
- Load text files from disk
- Swap original and modified text with one click
- Stats bar showing additions, deletions, and unchanged lines
How to Use
- Paste the original text on the left and the modified text on the right
- Or click Load file to import files from your computer
- The diff is computed automatically as you type
- Toggle Side by side for parallel columns, or Inline for a unified diff
- Enable Context only to hide unchanged lines and focus on changes
Common Use Cases
- Reviewing code changes before committing
- Comparing two versions of a configuration file
- Checking edits in a translated document
- Diffing API responses to find unexpected changes
Privacy
The diff is calculated entirely in your browser. No text is uploaded, logged, or shared.