±
Runs in your browserNothing is uploadedText

Text Compare

Compare two texts and see which lines were added, removed or kept, with a summary of the changes.

Loading tool…
Short answer

Text Compare shows the difference between two versions of a text, line by line. Removed lines are marked with a minus and red, added lines with a plus and green, and a summary counts each. It can ignore case and spacing, and runs in your browser.

How does a text diff work?

Line-by-line diff

The tool finds the longest run of lines the two texts share in the same order, then marks everything else as added or removed. A line that was edited shows as the old line removed and the new line added. It compares whole lines, not single words.

Why use Text Compare?

  • Spot edits in a contract or draft. See at a glance what someone changed between two versions instead of reading both side by side.
  • Compare configuration or lists. Find the lines that differ between two settings files or two exports.
  • Private comparison. Both texts stay in your browser. For two PDF files, use Compare PDF.

How to use Text Compare, step by step

Text Compare in PrintxPDF with a file loaded, options on the right and the run button below
Text Compare with a file loaded: the steps below follow this screen.
  1. Paste the original into the first box of Text Compare. Then paste the changed version into the second box.
  2. Read the marked lines. Minus lines were removed, plus lines were added, and the rest are unchanged.
  3. Narrow it down if needed. Ignore case or spacing, or hide unchanged lines to see just the edits with a little context.

Frequently asked questions

Does it highlight changed words inside a line?

No. It works on whole lines. An edited line appears once as removed and once as added, one above the other, so the change is easy to compare.

How large can the texts be?

Many thousands of lines are fine when they are mostly similar. Very large texts that differ almost everywhere can be too much for a browser tab, and you will be asked to compare a smaller section.

Can I save the result?

Yes. Copy text gives a plain diff with + and - at the start of each line, and Download saves a coloured HTML copy.

Looking for the long version? The guides cover each of these jobs in depth.