How to Read a Text Diff: Comparing Contract and Draft Versions
Reading a line-by-line diff, why an edited line shows as a deletion plus an addition, and lining up line breaks and spaces before comparing contracts or drafts.
📚 Free Web Tools · 22/52·⏱ About 4min read·Information updated 2026-11-03
📋 Key facts5
Unit
This site's tool compares line by line
Edited line
Shown as one deleted line plus one added line
Symbols
Usually - for deletions and + for additions
Trap
Invisible spaces, tabs or line endings make lines differ
Final check
For legal documents, recheck the original by eye
What a diff shows
A diff compares two texts and shows which lines would have to be deleted and which added to turn one into the other. A common method finds the longest sequence of lines the two texts share and marks everything else as deletions and additions. This site's text comparison tool also aligns the original and the new text line by line and tells you how many lines were added and deleted. It is useful for quickly finding what changed between versions of a contract, a proofread draft or a configuration file.
Reading the result
On a typical diff screen, - or red marks a line that was only in the original (deleted), + or green marks a line only in the new text (added), and unmarked lines are the same in both. The unified diff format used by developer tools adds lines such as @@ -3,4 +3,5 @@, a location marker meaning that four lines starting at line 3 of the original became five lines starting at line 3 of the new text.
- or red: line only in the original
+ or green: line only in the new text
No mark: line identical in both
@@ -start,count +start,count @@: where the change is
An edited line appears as a deletion and an addition
In a line-by-line comparison, changing even one character makes the whole line different. So instead of an edited mark, you see the old line deleted and the new line added. When a deleted line and an added line appear together, it is usually the same line edited, so put the two side by side and reread them character by character to find the change. If a whole paragraph is on one line, changing a single comma makes the whole paragraph look different, so putting each sentence on its own line before comparing makes differences much easier to see.
Invisible differences
Lines can come out as different even when they look the same. Typical causes are trailing spaces, tabs versus spaces, full-width versus half-width characters, different kinds of quotation marks, and the different line endings used by Windows and Mac. This site's tool does not ignore these differences and shows such lines as changed, so if the content is the same but many differences appear, suspect spaces and punctuation first. On the other hand, when you need to catch exactly these small changes, comparing the text as is is the safer choice.
Tips for comparing contracts
A diff is especially useful for checking what changed in a revised contract the other side sent back. Text copied from a PDF is broken into lines to fit the page width, so if the two files break lines in different places, many differences appear even where nothing changed. Copy both in the same way, or rejoin lines into paragraphs, before comparing. A single word such as an amount, a date, a deadline, a party's name, or may versus shall can change the meaning greatly, so always recheck flagged lines in the original file.
Comparing edited drafts and assignments
If an editor or colleague returns a corrected draft without tracked changes, only the file itself, you can paste the original and the corrected version to find the sentences that changed. Here too, putting each sentence on its own line shows at a glance which sentences were edited. From the comparison you can then sort out which edits to accept and which to undo.
Version-keeping habits
You can only compare if the original still exists. Each time you edit a file, saving a separate copy with a date or version in the name, such as contract_v2_their_edits, lets you compare against any point later. For sensitive documents, check whether an online tool sends the content to a server before pasting it in.
Summary
A diff finds where things changed; judging what the change means is up to you.
- is a deletion, + an addition; a pair together is an edit
One sentence per line makes differences easier to see
Spaces, quotation marks and line endings also count as differences
Line up the line breaks of PDF copies first
Recheck important differences in the original file