Text diff

Compare two texts and see the differences between them.

About Text diff

Compares two texts side by side and highlights the lines and characters that differ, using the same diff editor as Visual Studio Code. Both sides are editable, so you can fix a text and watch the differences disappear.

When you would use it

How to use it

  1. Paste the original text on the left and the modified text on the right.
  2. Changed lines are highlighted; within a line, the exact characters that differ are marked.
  3. Edit either side; the comparison updates as you type.

Things worth knowing

Frequently asked questions

Why does every line show as changed?
Usually because of invisible differences: line endings, indentation (tabs versus spaces) or trailing whitespace. Check a single line's highlighted characters to see which.
Can I compare two files?
Open each file in a text editor, copy its content and paste it into one side. The tool does not read files directly.

All the tools