Free Compare Text
Paste two versions of a text, code or list and see every difference highlighted, word by word, line by line or letter by letter. Instant, free and private.
Runs on your device
What to do next
How to use Compare Text
- 1
Paste or open the original text on the left.
- 2
Paste or open the changed text on the right.
- 3
The differences appear below as you type; switch between side by side and one text.
Compare Text finds every difference between two versions of a text: a contract and its revision, two drafts of an essay, two lists or two pieces of code. Changes appear highlighted as you type.
Paste the texts or open files. Nothing is sent anywhere.
Words, lines or letters
Words marks whole words that changed, which reads naturally for documents. Lines compares line by line, the usual way for code and data. Letters finds the smallest changes, such as a single digit in an amount.
Ignoring small differences
Ignore extra spaces skips changes in spacing and line breaks, which often appear when text is copied from different apps. Ignore capital letters treats “Total” and “total” as the same.
- See what changed between two versions of a document or code.
- Check edits in an essay or contract.
- The file is opened and processed by your browser on your own device. It is never uploaded, so no server, including ours, ever receives a copy.
- The two texts are compared on your device with the jsdiff library.
- Everything shows as changed
- Line endings or spacing differ. Turn on ignore whitespace.
Questions
What can I compare?
Any text: documents, emails, contracts, code, lists, subtitles or data files. Open .txt, .md, .csv, .json, .html and code files directly.
What’s the difference between words, lines and letters?
Words suits documents, Lines suits code and data, and Letters finds single-character typos and changed digits.
Is my text sent anywhere?
No. The comparison runs in your browser.
Something not working, or a question that isn’t here? Tell us about it
Related tools
More file tools
See all 28- YAML to JSONNewConvert YAML data to JSON
- JSON to XMLConvert JSON data to XML
- XML to JSONConvert XML data to JSON
- TOML to JSONConvert TOML data to JSON
- JSON to TOMLConvert JSON data to TOML
- CSV to JSONNewTurn spreadsheet rows into JSON
- JSON to CSVNewTurn JSON into a spreadsheet file
- Data Format ConverterJSON, YAML, XML, TOML and CSV, any way