Text compare
Compare two blocks of text and see which lines were added, removed or changed.
How it works
Paste two versions of something and see what changed between them, line by line. Added lines, removed lines and unchanged lines are marked separately.
This is a line-level diff computed from the longest common subsequence, which is the same basic approach version control uses. It finds the largest set of lines the two texts share in order, and everything else is an insertion or a deletion.
Whitespace-only differences are the usual reason two apparently identical files diff as changed. The ignore-whitespace option handles that.
This tool runs entirely in your browser. Nothing you enter is sent to a server, logged or stored, and the page keeps working with the network disconnected.
Common questions
- Why do identical-looking lines show as changed?
- Usually trailing whitespace, or different line endings between the two sources. Turn on ignore whitespace to confirm.
- Does it compare word by word?
- No, this compares line by line, which is what you want for lists, code and configuration. A changed line shows as one removal plus one addition.
Related pages
- Word and character counter Words, characters, sentences, paragraphs and reading time, counted as you type.
- Typing speed test Measure words per minute and accuracy on a one, two or five minute test.
- Remove duplicate lines Strip repeated lines from a list, keeping the first occurrence of each.
- Sort lines alphabetically Sort a list of lines A–Z, Z–A, by length, or numerically.
- JSON formatter and validator Pretty-print, minify and validate JSON, with the exact position of any error.
- Regex tester Test a regular expression against sample text, with matches and capture groups shown.
- Case converter Convert text between upper, lower, title, sentence, camel, snake, kebab and other cases.
- Remove empty lines Delete blank lines from a block of text, optionally collapsing runs to one.
- Find and replace Replace every occurrence of a string in pasted text, with optional regex.
- Readability checker Flesch Reading Ease and grade level, with sentence length and passive voice flagged.