How to use the Text Compare
- 1Paste the original text on the left.
- 2Paste the changed version on the right.
- 3Choose Lines for code and lists, or Words for paragraphs of writing.
- 4Turn on Ignore case or Ignore extra spaces to hide changes you do not care about.
- 5Read the highlighted result: green was added, red was removed.
How the comparison works
The checker uses the Myers diff algorithm, the same approach behind many version control tools. It finds the smallest set of additions and removals that turns the original into the new version, so the highlighted changes are as short and readable as possible.
Lines or words?
- Lines compares whole lines, which suits code, data files, lists and contracts with one clause per line.
- Words compares word by word inside the text, which suits essays, emails and articles where a single sentence changed.
Ignoring noise
Ignore extra spaces treats runs of spaces and tabs as one, and ignores spaces at the ends of lines, so re-indented code or re-wrapped text does not show up as changed. Ignore case treats "Hello" and "hello" as the same.
Privacy
Both texts stay in your browser. That makes the tool safe for comparing drafts of contracts, reports and code that should not be uploaded to a third-party website.
Reading the result
A changed line appears as one removed line (red) followed by the new version as an added line (green). Lines that are the same are shown without color. Two lines in a settings file show it well:
Original: port: 8080 New: port: 8081
debug: false debug: false
name: api name: api-v2
In Lines mode the first and third lines are flagged, and debug: false is left alone. The tool also reports how many lines or words were added and removed.
A paragraph you moved is shown as removed in one place and added in another. The algorithm finds the shortest list of edits, and it does not track moved text.
Getting a cleaner comparison
- Everything looks changed: the files probably differ in indentation. Turn on Ignore extra spaces. Windows and Unix line endings are handled automatically.
- Two JSON files differ in key order only: format both with the JSON formatter and sort the keys, then compare again.
- Only wording changed in a long paragraph: switch to Words.
- You are comparing versions of your own notes: keep each draft in a separate tab of the online notepad, or download them as .txt files first.
Typical uses
Spotting what an editor changed in a draft, finding the setting that differs between two config files, checking that a copied contract clause is unchanged, and confirming a script edit before you deploy it. For a length check on either version, the word counter gives a quick count.
Frequently asked questions
Is my text uploaded?
No. The comparison runs entirely in your browser.
How long can the texts be?
Up to about 20,000 lines or words combined. Very long texts that are almost completely different are better compared in smaller sections.
Can I compare Word or PDF files?
Copy the text out of each document and paste it in. Formatting is not compared, only the words.
How do I compare two files for differences?
Open each file, copy its text, and paste the original on the left and the new version on the right. Differences are highlighted as soon as both sides have text.
Why does a moved paragraph show as deleted and added?
The diff finds the shortest set of additions and removals, and it does not detect text that moved. A moved block is shown as removed from the old position and added at the new one.
Last updated · By the DailyDeskTools team
Built and written with AI assistance, then tested by hand by our team. How we make our tools