Skip to content

Text Compare (Diff)

Compare two texts and highlight added and removed lines and words, side by side or inline.

About Text Compare (Diff)

This text compare tool finds the differences between two pieces of text. Paste the original on the left and the changed version on the right, and removed text is shown in red and added text in green. Compare line by line for documents and code, or word by word for small edits.

Choose a side-by-side or inline view to suit your screen. It is useful for checking contract changes, comparing drafts of an essay, reviewing edits to a configuration file or spotting what changed between two lists. The diff checker is free, needs no sign-up, and your text is compared in your browser.

How to use Text Compare (Diff)

  1. Paste the original text on the left and the changed text on the right.
  2. Choose line or word comparison and a side-by-side or inline view.
  3. Removed text is shown in red and added text in green.

Frequently asked questions

How does the comparison work?

It uses the longest common subsequence (LCS) algorithm — the same idea behind tools like git diff — to find the smallest set of additions and removals that turns the first text into the second.

What is the difference between line and word mode?

Line mode compares whole lines and also highlights the changed words inside modified lines. Word mode compares the texts word by word as one flowing passage, which suits paragraphs better.

Is my text uploaded anywhere?

No. The comparison runs entirely in your browser, so it is safe for contracts, code and other private documents.

How do I compare two texts for differences?

Paste the first text on the left and the second on the right. Differences are highlighted instantly.

Can I compare code with this tool?

Yes. Use line mode to compare code or configuration files; changed lines are highlighted.

Can it ignore spacing or capital letters?

Yes. Tick Ignore extra whitespace or Ignore case to hide differences you do not care about.

People also search for

text compare online · text compare online tool · text compare online free · diff checker online · diff checker online free · compare text online · compare text online free · text compare · text compare tool · diff checker · compare text free online · text compare free

Related tools