Text Diff & Compare
Paste an original and changed version to highlight exactly what was added or removed. Switch between line, word, and character comparison.
Tool input stays in your browserDid you know · Languages
JavaScript was written in about 10 days in 1995 by Brendan Eich and was first called Mocha.
Original text
you editChanged text
you editUnified difference
The right diff granularity
Line mode is best for config files and logs. Word mode makes edited prose readable, while character mode finds tiny punctuation and identifier changes. Ignore case when capitalisation should not count as a difference.
Text diff versus JSON diff
This page compares literal text, including order and whitespace. Use the JSON Diff tool when reordered object keys should count as equal or you need a JSON Patch.
Compare sensitive drafts locally
Both inputs remain in browser memory. The diff algorithm runs in this tab, so drafts, configuration, and log excerpts are not uploaded to a comparison service.