Paste two versions of text and instantly see every line that was added, removed, or changed. Color-coded, line-by-line.
Text Diff & Comparison
Original text
Modified text
Common uses for text diff
Code review — compare a file before and after edits without Git
Contract and document comparison — spot changes between two versions of a legal or business document
Content QA — verify that an edited article matches the approved version exactly
Database migration scripts — compare two SQL files to find differences before running
Translation verification — paste source and translated text to ensure line counts match
Config file changes — compare nginx.conf or similar before deploying
Frequently Asked Questions
This tool uses the Myers diff algorithm — the same algorithm used by Git, GNU diff, and most version control systems. It finds the shortest edit script that transforms text A into text B by identifying the longest common subsequence (LCS) of lines. Lines not in the LCS are either added or removed. The result shows red for removed lines, green for added lines, and yellow for lines that appear in both but were moved.
No. The comparison runs entirely in JavaScript inside your browser. Neither version of your text is sent anywhere. This makes it safe for comparing confidential documents, source code with API keys, legal contracts, or internal company content. Turn off Wi-Fi after loading the page and the tool still works — that's the proof.
Git diff compares files tracked in a repository — it requires Git history to exist. This tool compares any two pieces of text you paste, regardless of version control. It's useful when you have two text blocks from different sources (emails, documents, clipboard history) that you need to compare without a repo. Git diff is more powerful for code; this tool is faster for ad-hoc comparisons.