How to use the Compare Text Files
- 1 Drop the older version first, then the newer one. Or paste the second text under More options.
- 2 Choose what to ignore: upper/lower case, differences in spaces, blank lines, punctuation.
- 3 Read the side-by-side view: red is removed, green is added, and changed words are marked inside a changed line.
- 4 Download the differences as a unified diff, if you need one.
Lines first, then words
The comparison uses the same idea as diff: it finds the longest run of lines the two versions share and reports what is left as removed or added. A removed line next to an added line is shown as one changed line, and a second pass compares the two word by word, so a single changed number in a long paragraph is marked rather than the whole paragraph.
What counts as a change
Meaningful changes are often hidden by noise. Ignore upper and lower case, ignore differences in spaces (including a different number of spaces or tabs), ignore blank lines, or ignore punctuation. Windows and Unix line endings are never a difference. Lines are the unit, so text that was re-wrapped differently shows as changed unless you clean the line breaks first.
Output
The side-by-side view shows line numbers of both versions. The download is a unified diff with three lines of context, the format used by version-control tools and patch programs.
Limits
Only plain text is compared. Word, PDF and other formatted documents are not read yet; copy their text into a file first. Very different texts of many thousands of lines are compared approximately, and the studio says so. To compare tables, use compare CSV files.
Frequently asked questions
Can I compare Word or PDF files?
Not yet. Paste or save their text as a .txt file and compare that.
Why is a moved paragraph shown as removed and added?
A line diff does not track moves. The paragraph appears once where it was and once where it is now.
Does a different line ending count as a change?
No. Windows and Unix line endings are treated the same.
Last updated: