Text Diff Checker
See exactly what changed between two versions of a contract, article, config file or code snippet.
Original & changed text
Limits
- Plain text only: Word, PDF and other binary files must be copied as text first.
- Very large inputs (over about 2 MB or 50,000 lines per side) can be slow; character mode is slowest.
- Moved blocks are shown as a deletion plus an insertion, not as a move.
Differences
How to use Text Diff
- Add both versionsPaste the original on the left and the changed text on the right, or load two text files.
- Choose optionsCompare by line, word or character, and ignore case or whitespace if you like.
- ReviewRemoved text is red, added text is green. Switch between side-by-side and inline views, or download a unified .diff.
How the comparison works
The tool uses the jsdiff library (BSD-3-Clause), an implementation of the Myers diff algorithm, the same approach used by Git. Line mode highlights changed words inside changed lines.
Everything runs in your browser, so you can compare confidential documents without uploading them.
Frequently asked questions
Can I compare two files?
Yes. Use the Load file buttons above each box to read a .txt, .md, .csv, .json, code or other plain-text file from your device.
Is my text sent anywhere?
No. Everything runs in your browser tab with JavaScript. Nothing you type or paste is uploaded, logged or stored.
What do the colors mean?
Red with a minus sign is text that was removed from the original; green with a plus sign is text that was added in the changed version.
Can I get a patch file?
Yes. Download diff saves a unified diff (.diff) that tools such as git apply and patch understand.
Related tools
All toolsCase Converter
UPPERCASE, lowercase, Title Case, Sentence case, camelCase, snake_case and more.
Word & Character Counter
Instant word, character, sentence, reading time, and keyword counts.
JSON Formatter & Validator
Format, minify, sort keys, and catch syntax errors cleanly.
Hash Generator
MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of text or files.