Text Diff
Compare two blocks of text line by line.
About the Text Diff
Text Diff compares two blocks of text line by line and highlights exactly what was added and removed between them. It's ideal for spotting changes between two versions of a config file, a paragraph of copy, or a snippet of code at a glance. All comparison happens locally in your browser, so even sensitive text never leaves your computer.
How to use
- Paste the original text into the first box.
- Paste the changed text into the second box.
- Review the highlighted output to see additions and removals per line.
Frequently asked questions
- How does the comparison work?
- The two inputs are compared line by line, with added lines and removed lines marked so you can quickly see what changed.
- Can I diff code as well as plain text?
- Yes. Any text works, including source code, JSON, logs and prose, since the tool simply compares the lines you provide.
- Is my text uploaded anywhere?
- No. Both blocks of text are diffed entirely in your browser, so nothing is sent to a server.