Text
Text Diff
Compare source text as lines or characters when whitespace, wording, or serialization details matter.
About this tool
When to use it
Compare source text as lines or characters when whitespace, wording, or serialization details matter.
How to use it
Paste the earlier text into Original and the revision into Changed, choose a comparison mode, and select Compare text. Swap reverses the comparison. Only enable whitespace ignoring when spacing has no meaning for your task.
Guide updated . Examples checked against this implementation.
Worked examples
A single-character substitution
Input
Original: cat; Changed: cut; Mode: charactersExpected output
Unchanged: c; Removed: a; Added: u; Unchanged: tThe view marks removed and added text inline. This is a textual comparison, so it does not infer that two differently formatted JSON documents have equal values.
Errors and unsupported input
Indentation differences disappearDisable Ignore repeated whitespace. That option collapses all whitespace runs, including line breaks, before comparing.
Continue this workflow
- JSON Diff: Compare parsed JSON values while ignoring object-key order and layout.
Questions
Frequently asked questions
Are moved lines recognized as moves?
The text diff represents changes as additions and removals. A move can therefore appear as removed text in one place and added text elsewhere.