Text Diff
Compare two texts line by line
- Nothing you type is sent
- Free, no sign-up
- 1Paste the old text
- 2Paste the new text
- 3See the changes
More in Text
Word Counter
Words, characters, reading time
Online Keyboard
Thai, Russian, Greek, Arabic, Hebrew
JSON Converter
JSON to CSV, YAML
About this tool
Paste an original text and a changed text to see which lines were added or removed. See the changes like a git diff, with changed words highlighted, in a unified or split view.
How to use
- Paste the older text into Original and the newer text into Changed.
- The differences appear below as you type.
- Switch between Unified and Split view, or copy the result as a patch.
- Open Options to ignore whitespace or letter case.
FAQ
- Is my text sent anywhere?
- No. The comparison runs in your browser on your device. Your text is not uploaded or saved.
- How does the comparison work?
- It compares line by line and finds the longest run of lines the two texts share. Lines only in Original are shown as removed, and lines only in Changed as added.
- Why does it say the text is too large?
- To keep your browser responsive, very large comparisons (over about 4 million line pairs) are not attempted. Try comparing smaller sections.
- What do the ignore options do?
- Ignore whitespace treats lines as equal when they differ only in spaces or tabs. Ignore case treats upper and lower case letters as the same.
- Does it show changes inside a line?
- Yes. When a removed line pairs with an added line, the changed words get a stronger highlight. Long unchanged stretches are collapsed and can be expanded with a click.