Skip to content
HandyKit

Text Compare: Diff Checker for Any Text

Paste two versions of a text to see the added, removed and changed lines, with changed words highlighted. Free and private: nothing is uploaded.

Runs in your browser. Your input is never uploaded or stored.

These are examples. Paste your own text into each side.

Differences

2 lines removed, 3 added.

Each line with its number in the original and the changed text. Removed lines are marked minus, added lines plus.
Original lineChanged lineChangeText
11Dear team,
22
3RemovedThe launch is on Monday 3 March.
4RemovedPlease send your slides by Friday.
3AddedThe launch is on Tuesday 4 March.
4AddedPlease send your slides by Thursday.
55Lunch will be provided.
6AddedParking is free on the day.
67
78Thanks,
89Anna

How to compare two texts

  1. Paste the earlier version into the Original text box.
  2. Paste the later version into the Changed text box.
  3. Read the result below the boxes. It updates as you type, so there is no button to press.
  4. Click Copy differences if you want the changed lines as text, such as -3: old line and +3: new line.

Reading the result

Each line in the result shows its number in the original text and in the changed text.

  • A minus on a red background means the line was removed.
  • A plus on a green background means the line was added.
  • Inside a changed line, the changed words are highlighted. Removed words are also struck through.

The tool compares line by line, so a paragraph you move shows as removed in one place and added in another. Windows and Mac or Linux line endings count as the same.

Options

  • Ignore upper and lower case treats Cat and cat as the same.
  • Ignore extra spaces counts a run of spaces as one and ignores spaces at the end of a line.
  • Show only changed lines keeps two unchanged lines around each change and hides the rest.
  • Swap sides switches the two texts. Clear empties both boxes.

Tips

  • Use it to check two versions of a contract, essay, email, config file, code or CSV.
  • Turn on Show only changed lines to focus on the edits in a long text.
  • If more than 3,000 lines changed, the texts are too different to compare line by line. Compare smaller parts instead.
  • Your text stays in your browser. Nothing is uploaded.

Frequently asked questions

Is my text uploaded anywhere?

No. The comparison runs in your browser, so your text never leaves your device. There is no sign-up.

Why does a moved paragraph show as removed and added?

The tool compares line by line. A paragraph that moves appears as removed in its old place and added in its new place.

Can I ignore capital letters or extra spaces?

Yes. Tick Ignore upper and lower case to treat Cat and cat as the same, and Ignore extra spaces to count a run of spaces as one and ignore spaces at line ends.

Do Windows and Mac line endings count as changes?

No. Windows and Mac or Linux line endings count as the same.

Why does it say the texts are too different?

This appears when more than 3,000 lines changed. Check that you pasted the right texts, or compare smaller parts one at a time.

What does Copy differences copy?

The changed lines as plain text, with line numbers: removed lines look like -3: old line and added lines like +3: new line.

Guides

  • · 2 min read

    How to Compare Two JSON Files

    Find what changed between two JSON documents, ignoring key order and formatting. A worked example, how to read JSONPath, and how arrays and numbers compare.

  • · 3 min read

    How to Find and Replace Many Words at Once

    Replace a whole list of words in one go: write find => replace pairs or paste them from a spreadsheet, swap words safely, and check every change afterwards.