About this tool
What changed between two versions of a contract, an article or a configuration file? Reading them side by side, small differences are easy to miss. A diff tool compares two texts automatically and highlights every addition and removal in color.
This text compare offers three views: line by line side by side – ideal for code and configuration – and inline by word or by character, which suits prose and finding typos. Optionally, case and whitespace are ignored.
Both texts stay in your browser, so you can compare confidential documents too.
How it works
- Paste the original text on the left under “Original”.
- Paste the new version on the right under “Changed”.
- Choose the view: “Side by side”, “Inline (words)” or “Inline (characters)”.
- Green marks additions, red marks removals. The number of changes is shown at the top.
Frequently asked questions
Which view should I choose?
For code, lists and configuration files “Side by side” is the clearest. For prose, “Inline (words)” shows changes in the context of the sentence. “Inline (characters)” finds single typos or changed digits.
What does “Ignore whitespace” do?
Differences in spaces, tabs and indentation are not counted as changes. Handy when a text was only reformatted or re-indented.
Can I compare Word or PDF files?
The tool compares plain text. Copy the content from Word or your PDF reader and paste it into the fields. Formatting like bold or font sizes is not compared.
How do I compare two JSON files?
First format both with the JSON Formatter & Validator using “Sort keys”. Then the values appear in the same order and the comparison only shows real differences.