// IT TOOLS & CALCULATORS
| 60+ TOOLS
📝 TEXT DIFF TOOL
// Compare two blocks of text or code and highlight additions and deletions line by line
ADVERTISEMENT
[ IN-CONTENT AD ]

Free Online Text and Code Diff Tool — Compare Two Files Line by Line

Our free text diff tool compares two blocks of text or code and highlights every addition, deletion and unchanged line — similar to git diff. All comparison runs in your browser — your code never leaves your device. Perfect for reviewing config changes, comparing script versions or checking document edits.

Common Uses

  • Comparing configuration files before and after a change
  • Reviewing code changes without a full git setup
  • Spotting differences between Terraform plan outputs
  • Comparing two versions of a Kubernetes manifest
  • Verifying a copy matches the original document

How It Works

This tool uses the Longest Common Subsequence (LCS) algorithm — the same algorithm used by git diff and Unix diff — to find the minimal set of changes. Lines in green (+) were added, red (-) were removed, and plain lines are unchanged in both versions.