Text Compare (Diff)
Put two texts side by side and see what was added, removed or changed by line, word or character.
Both texts are compared only in this browser and never sent anywhere.
Put two texts side by side and see what was added, removed or changed by line, word or character.
Both texts are compared only in this browser and never sent anywhere.
Puts two texts side by side and finds what changed. Use it to check a revised document or code changes.
Paste the original and the revised text.
Click compare.
Check the added and deleted parts.
Line mode works on whole lines, showing them side by side or in one column, and marks the changed words within a changed line. Word and character modes mark deleted and newly added parts directly on the sentence within a paragraph.
Click "Open file" on each box or drag a file onto it to load a text file. Files can be up to 8 MB, and a notice appears if the file does not look like text. Loaded files are read only inside this browser and are not sent anywhere.
If the two texts differ greatly, the comparison stops and shows this notice. Try comparing the file in parts. A similar notice can appear when a text is too long in word or character mode; in that case switch to line mode.
The line level is good for seeing which lines changed in code or long documents. The word level is good for finding where a sentence was edited, and the character level for finding where a single typo differs. Switch the level to suit what you are looking at.
It shows the two texts side by side, with added, deleted and changed parts distinguished by color.
Invisible differences can make the whole text appear different. The most common is the line break style (CRLF on Windows, LF on Mac and Linux), along with trailing spaces at the end of lines and the difference between tabs and spaces. Invisible space characters mixed into copied text can also be a cause.
In such cases, try switching to word or character level, or tidy up the whitespace and compare again.
The texts you compare are processed only inside your browser and not sent to a server. Even text that is awkward to upload elsewhere, such as a contract draft or code, does not leave this page.
Paste the original text on the left and the changed text on the right, and the differences appear straight away.
Direction matters, so decide which text came first before you start. If you pasted them the wrong way round, the swap button puts them back in place.
Green marks new parts and red marks removed parts. Deleted lines are highlighted in the left text and added lines in the right text.
If only part of a line changed, only the changed words are marked rather than the whole line, so you can see exactly what differs.
Green background (right)
Red background (left)
Gray blank
Highlighted changed word
Korean attaches particles to words, so in word mode a change to just the particle shows the whole word as changed.
For example, changing 사과를 먹었다 ("ate an apple") to 사과가 먹었다 shows 사과를 and 사과가 as fully changed in word mode, while character mode shows only 를 and 가 as changed.
Character mode is easier for finding typos and particle fixes, and word mode is easier for reviewing rewritten sentences.
When you want to ignore differences caused by spaces or capitalization, turn on the option; those parts are treated as equal only during comparison, and the result shows your original text.
Ignore whitespace works differently depending on the comparison unit.
Ignore whitespace
Ignore case
In line mode, turn on Fold identical lines to keep only a few lines around each change and fold the rest so you can focus on what changed.
You can click folded parts to expand them, and the previous and next buttons let you move through changes quickly even in documents of hundreds of lines.
In line mode, the copy-changes button copies text with a symbol at the start of each line.
Deleted lines start with a minus, added lines with a plus and unchanged lines with a space, so pasting into a messenger or an issue still shows what changed.
Copying works only in line mode, so switch to line mode before copying from word or character mode.
Click the open-file button on each input box or drag a file onto it to load a text file directly.
Files can be up to 8 MB, and non-text files such as Word or Hangul documents cannot be read. For those, copy the content and paste it instead.
It is useful whenever you cannot easily spot the difference between two versions by eye, in any before-and-after comparison of the same text.
It especially helps find one- or two-character differences that people tend to miss.
If two texts are almost entirely different, the computation becomes so heavy it could freeze the browser, so past a limit it skips the comparison and shows a notice.
In line mode, split the files and compare them in parts; in word or character mode, switch to line mode.
This tool only compares the two texts you provide with each other; it is not a plagiarism checker that compares against other documents or the internet.
So it tells you how similar the two texts are, but not where a text was copied from.
Formatting such as bold, color, tables and images is not compared; only the characters are.
To find formatting changes, use the track-changes feature of your word processor alongside.
The two texts you compare are processed only inside your browser and are never sent to a server.
Start with the numbers above the result to see the overall size. The green number is the amount added, the red number the amount deleted, and next to them is how many places changed.
In line mode it counts lines, and in word or character mode it counts pieces excluding spaces. If you edited only a spot or two but the number is large, suspect line-break or whitespace differences.
In line mode, when an added line directly follows a deleted line, it is treated as an edit of the same spot and shown as a left-right pair.
Within that pair, only the changed words are highlighted, so you can see right away which words you edited.
When lines do not match up and exist on one side only, the other side is left as a gray blank to keep line numbers aligned.
Side-by-side puts the original and changed text left and right with lines aligned, while the single-column view shows deletions and additions one above the other in one column.
On a wide screen side-by-side is easier to read, and on a narrow one like a phone the single column is easier.
Side-by-side
Single column
You can choose the view only in line mode.
In contracts, even one or two words can change the meaning a lot, so it is safest to skim in line mode and then check suspicious lines again in word mode.
Always check numbers, amounts, periods and dates separately with your own eyes.
Line mode lets you see which lines were added and deleted in a form similar to a code review.
When indentation differences make everything look different, turn on Ignore whitespace to see only content differences. In languages where indentation matters, a whitespace difference can change behavior, so it is best to check again with whitespace included at the end.
After several rounds of polishing it is easy to lose track of what you changed, but comparing with the previous version lets you quickly see only the changed parts.
Word mode helps you see where wording was changed, and character mode helps you check typo fixes one by one.
Comparing the final version with the one just before it once more before you submit can prevent unintended deletions.
If copied text has different line-break styles or leading and trailing spaces, everything can show as different lines even though the content is the same.
In that case, apply the whitespace cleanup in the character counter or trim leading and trailing spaces in the line tools first, and the comparison becomes much more accurate.
After seeing the result you still have to decide which changes to accept. This tool only shows the result and does not merge one side into the other, so you need to make the edits yourself.
If you edited few places but many changes show, suspect invisible differences. Most of the time invisible characters are the cause.
Trailing spaces
Indentation difference
Case difference
Full-width vs half-width spaces
Word mode works best for English. Spaces between words are also compared separately, so only the changed words within a sentence are marked precisely.
Turning on Ignore case skips differences caused by capitalizing the first letter of a sentence so you see only content differences.
If there are dozens of changes, do not try to view them all at once; move through them one at a time with the previous and next buttons. The current position is highlighted so you never lose track of how far you have gone.
Collect important changes with copy-changes so they are easy to find later, and fold the parts you have finished checking to clear them from the screen and focus on what is left.
Keep the text from before your edits as a separate file until the comparison is finished. Once you clear an input box you cannot undo it. Double-check before you press Clear all.
It is fine to enter the original and changed text the other way round. The colors for additions and deletions simply swap and the difference itself is the same.
Clear all empties the input boxes, and Insert example lets you see how it works first.
While you paste a long text, comparison runs a beat later so typing is not interrupted; wait a moment and the result updates.