📄 Original Text
📝 Modified Text
Advertisement
728 × 90 — Leaderboard Ad
How to Use
- Paste your original text in the left pane.
- Paste the modified text in the right pane.
- Click 🔍 Compare Text in the top toolbar to generate the diff below.
- Cyan lines (+ sign) show additions, red lines (- sign) show deletions.
- Use the ⇆ Swap Inputs button to quickly reverse the original and modified texts.
What Is a Text Diff?
Why compare text line-by-line?
A diff (short for "difference") compares two pieces of text line by line and shows what changed between them. It's a fundamental tool in software development (used by Git, code reviews, and version control systems), but it's also highly useful for comparing contracts, essays, configuration files, or any two versions of a document. This tool uses a longest-common-subsequence (LCS) algorithm to produce an accurate, line-by-line comparison instantly in your browser.