Workspace

Text / code diff

Compare two texts line-by-line, word-by-word or char-by-char; returns parts and a unified patch.

Result

Run the tool to see results here.

About Text / code diff

Text / code diff is a free online developer tool. Compare two texts line-by-line, word-by-word or char-by-char; returns parts and a unified patch.

Enter your input, adjust the options (a, b and mode) and run it. The result appears right next to the form, is never stored, and you can copy or save it in one click. No account is needed.

You may also know this as: text-compare.

How to use Text / code diff

  1. Type or paste your input into the form.
  2. Choose the options you need: a, b and mode.
  3. Press Run, or use Ctrl/⌘ + Enter.
  4. Copy or save the result from the panel on the right.

Text / code diff FAQ

What does Text / code diff do?

Compare two texts line-by-line, word-by-word or char-by-char; returns parts and a unified patch.

Is Text / code diff free to use?

Yes. Text / code diff is free, with no sign-up or account required.

Is my data safe?

Results are never stored. See our privacy policy for details.

What options does Text / code diff have?

You can set: A, B and Mode.

Is Text / code diff also called “text-compare”?

Yes. “text-compare” is another common name for this task, so you’re in the right place.

More developer toolbox tools

See all Developer toolbox tools →

Popular on Toolsera