Text Compare Paste two versions and see what was added, removed or changed

Your text stays on this device.

How to compare two texts for differences

Paste the earlier version in Original text and the newer version in Changed text. You can also press Open file below either box to read a plain text file from your device. The comparison updates shortly after you stop typing, so you do not need to submit the text.

Read the summary above the result to see how many lines were removed and added. A changed line counts once on each side. A minus sign marks a removal, and a plus sign marks an addition. The red and green colors repeat what these signs show.

Choose Inline for one column or Side by side to keep both versions beside each other. On a phone, Inline is selected initially. Long lines wrap in either view. Line numbers refer to the original versions, including lines hidden inside a collapsed section.

Choose Words to highlight changed words inside a pair of lines, or choose Characters to find smaller edits. Press Swap to reverse the versions. Press Clear to empty both boxes.

What is a diff checker?

A diff checker lines up two versions of a text and marks what was added or removed. “Diff” is short for difference. This tool first compares whole lines, then highlights differences within changed pairs. It finds an alignment with the fewest added and removed lines.

Ignore case makes capital and lowercase letters count as equal. Ignore whitespace treats a run of spaces or tabs as one space and ignores spaces at the beginning and end of a line. Blank lines still count as lines. These options affect the comparison, while each version's original text remains visible.

Different line endings are treated alike. A missing final newline is not counted as a change. Large unchanged sections collapse around three lines of context beside each change. Press the button in a collapsed section to reveal its lines.

How to compare two lists

Put one item on each line and paste each list into its own box. Order matters: moving an item can make it appear as removed in one place and added in another. Repeated items are kept, and duplicates are not removed.

You can compare notes, draft paragraphs, code or a column copied from a spreadsheet. This page compares text rather than document formatting. Check the original files as well when layout, formulas or comments matter.

Questions

Is it safe to paste private text?

The comparison runs in your browser. Your text is not sent or saved. Press Clear to remove it from the boxes. If the text is private, make sure no one else can see your screen.

Is this diff checker free?

Yes. You can paste text, open local text files and compare them without signing up.

Can I compare two Word documents or PDFs?

Paste their text into the two boxes. Formatting, images and comments are not compared. The file buttons accept plain text, not Word or PDF document files.

Can it ignore spaces or capital letters?

Yes. Use Ignore case for capital letters. Use Ignore whitespace to treat runs of spaces and tabs as one space and ignore spaces at the start and end of a line. Blank lines still count, and neither option rewrites your text.

Why does a moved line show up twice?

Line order counts. A moved line can be removed from its earlier position and added at its new position. This preserves the order of both versions in the result.

How large can the texts be?

There is no fixed line limit. Very large texts with many differences may take too long. If the comparison runs for more than five seconds, the tool stops it and asks you to compare smaller parts. Speed also depends on your device.