Skip to content
toolsdocks

Compare two versions of text

Paste or open an original and a changed version to see what was added, removed or kept, at the level of detail you choose.

Runs on your device
Loading tool…

How to use

  1. Paste or open the original and the changed version.
  2. Choose line, word or character mode and side-by-side or inline view.
  3. Download a .patch file if needed.

Worked example

Comparing “The quick brown fox” with “The quick red fox” in word mode marks “brown” removed and “red” added.

Supported formats and limits

InputTwo texts or files
OutputHighlighted diff, Unified diff (.patch)
EngineMyers diff (jsdiff) at line, word and character level

Limitations

  • If either input is over 5 MB, the texts are compared by line only.

Questions

Which comparison level should I choose?

Line mode suits code and lists and highlights changed words inside changed lines. Word mode suits prose: comparing “The quick brown fox” with “The quick red fox” marks brown removed and red added. Character mode shows single-letter edits.

Can it ignore case or whitespace?

Yes. Ignore case, and ignore whitespace (leading and trailing spaces in line mode, spacing differences in word mode). Windows and Unix line endings are treated as the same.

What does the .patch download contain?

A unified diff with 3 lines of context that tools such as patch and git apply understand. It is an exact comparison, so the ignore options do not apply to it.

Privacy

Runs on your device. Files and text are processed in this browser tab and are not uploaded.

See the privacy policy for how toolsdocks handles data.