Text compare
Compare the original and the revised text line by line to see additions, deletions and changes. Everything runs inside this browser.
Enter both texts and press Compare.
Could not compare.
How to fix
Result
Added line Deleted lineA changed line appears as a − line followed by a + line; the changed parts are marked with underline (added) and strikethrough (deleted).
Unified format
How to use Text Compare
Use it to see what changed between two versions of a draft, a config file, code or a translation.
- Paste the original on the left and the revised text on the right.
- Pick the whitespace or letter-case options if needed and press Compare. Ctrl+Enter (⌘+Enter on Mac) also works.
- A + line is an addition and a − line is a deletion. Inside changed lines, the differing words or characters are highlighted.
- Copy the unified format to paste into a code review or a note.
Limits
- Each text can be up to 200,000 characters and 5,000 lines. Some characters such as emoji count as 2.
- Line breaks (CRLF, CR) are normalized to LF, and one line break at the very end is ignored.
- The line comparison finds the fewest additions and deletions. A moved line shows as one deletion and one addition.
- If a line is too long, the whole line is marked as changed without inline highlighting.
- Differences inside a line are shown by pairing consecutive deleted and added lines in order. Unpaired lines count as deleted or added.
- Ignoring letter case uses the default rules, independent of your language setting.
FAQ
Is my input sent to a server?
No. The comparison runs only inside this browser and your input and result are neither saved nor sent. They disappear when you reload.
How do “Ignore whitespace differences” and “Ignore trailing whitespace” differ?
Ignoring whitespace differences treats runs of spaces inside a line as one and also ignores spaces at both ends. Ignoring trailing whitespace ignores only spaces and tabs at the end of a line, so indentation differences are still shown.
Can I use it if I have trouble telling colors apart?
Yes. Added lines carry a + sign and deleted lines a − sign, and changed parts inside a line are underlined or struck through. Screen readers announce the type of each line.
What is the unified format?
It is the standard change-list format used by diff and Git. Under each hunk header starting with @@ you see the changed lines plus 3 lines of context; a leading − means deleted and + means added.