About this tool
Paste an original and an edited version to see exactly what changed. Line mode lines the two versions up side by side and highlights the changed words inside modified lines; word and character modes show edits inline. You can ignore case or whitespace changes and download the result as a standard patch file.
How to use Text Diff
- Paste the original text on the left and the changed text on the right.
- Pick whether to compare by lines, words or characters.
- Review the highlighted differences, or download a patch.
Frequently asked questions
Is the comparison done on a server?
No. Both texts are compared in your browser, so it's safe for contracts, code and other private documents.
What does "ignore whitespace changes" do?
Lines that differ only in indentation, trailing spaces or the number of spaces between words are treated as identical.
What is the patch file?
It's a unified diff, the format used by Git and the patch command, which you can share or apply to the original file.