Read the two versions in columns, with an edited line opposite its new version, or in one column with removed lines marked − and added lines marked +. The words that changed are highlighted inside the line.
Text
Text Diff Checker
Paste an original and a changed version and see exactly what is different, line by line, with the words that changed marked inside each edited line.
How to use this tool
Paste the earlier text into Original and the edited text into Changed, or press Sample. Swap exchanges the two.
Choose Side by side or Unified. Turn on Ignore case or Ignore spaces to hide differences that do not matter, and Only show changes to hide unchanged lines except a few beside each change.
Read the added and removed counts below the result. Copy diff or Download gives a unified diff that git and patch can read.
How to use this tool
Paste the earlier text into Original and the edited text into Changed, or press Sample. Swap exchanges the two.
Choose Side by side or Unified. Turn on Ignore case or Ignore spaces to hide differences that do not matter, and Only show changes to hide unchanged lines except a few beside each change.
Read the added and removed counts below the result. Copy diff or Download gives a unified diff that git and patch can read.
Paste the original text on the left and the changed text on the right, or load the sample.
See the change, not just that there is one.
Two versions of a document look the same until you find the one word that moved. This lines them up and marks every difference, so review takes seconds.
Ignore case, or ignore differences in spaces and tabs, so only real changes show. Only show changes hides the unchanged lines except for a few beside each change.
Copy or download the changes as a unified diff, the format that git, diff and patch read, with three lines of context around each change.
Frequently asked questions
How does the comparison work?
It finds the longest run of lines the two texts share, and treats everything else as removed from the original or added in the changed version. That gives the smallest set of changes, the way diff and git do it.
Why are some words highlighted inside a line?
When a line was edited rather than replaced, the words that differ are marked, so you can see that only version 1.4 became 1.5 without reading the whole line. Lines with almost nothing in common are shown as a removal and an addition instead.
Does a line break at the end of the text count?
No. A final line break is ignored, and Windows and Unix line breaks are treated the same, so a file saved on another system does not show every line as changed.
How much text can it compare?
Up to 400,000 characters on each side. Very large texts that differ almost everywhere can take several seconds, so compare them in parts if it feels slow.
Can I use the result with git?
Yes. Copy diff gives a unified diff. Save it as a .diff or .patch file and apply it with git apply or patch. The file names in the header are original and changed, so edit those first if the tool you use needs real paths.
