Skip to tool
FreeToolsKit

Diff Checker

Compare two texts line by line — added, removed and unchanged lines, in your browser.

FreeNo uploadNo sign-up

Last updated:

Advertisement

Tool

3 lines added · 2 lines removed · 4 lines unchanged

6 lines · 53 characters

7 lines · 73 characters

Compare options

Ignore whitespace treats lines that differ only in spaces or indentation as the same line. Ignore case treats “Bread” and “bread” as the same line.

3 lines added · 2 lines removed · 4 lines unchanged

  • Shopping listUnchanged line 1: Shopping list
  • - MilkUnchanged line 2: - Milk
  • - BreadRemoved line 3: - Bread
  • - Wholemeal breadAdded line 3: - Wholemeal bread
  • - EggsUnchanged line 4: - Eggs
  • - ButterRemoved line 5: - Butter
  • - CheeseAdded line 5: - Cheese
  • - ApplesUnchanged line 6: - Apples
  • - OrangesAdded line 7: - Oranges

3

Lines added

2

Lines removed

4

Lines unchanged

Your files never leave your device - processing happens in your browser.

Related tools: Regex Tester · JSON Formatter · Text Reverser

A diff checker is a tool that compares two texts and shows exactly which lines were added, removed or left unchanged. FreeToolsKit's diff checker compares your texts line by line in the browser and lists every difference in one view, with line numbers on both sides and counts for added, removed and unchanged lines. It runs entirely in your browser — your texts are never uploaded.

How do you compare two texts?

  1. Paste the original text into the “Original text” box above and the changed text into the “Modified text” box — the sample shows a shopping list with a few edits, or press Sample to load it.
  2. Read the diff list below: added lines are marked +, removed lines −, and unchanged lines have no marker, with line numbers on both sides.
  3. Tick Ignore whitespace if spacing or indentation should not count as a change, or Ignore case if capitalisation should not count.
  4. To compare the other way round, press Swap; Reset returns to the sample texts and clears both options.
  5. Copy the diff with Copy diff or download it as a .txt file with Download diff; the counts above the list say how many lines were added, removed and left unchanged.

What is the Diff Checker used for?

  • Spotting what changed between two drafts of a document before sending it on.
  • Checking a config file against its previous version to find the edited lines.
  • Comparing two versions of code to see which lines were added or removed.
  • Reviewing an edited essay or article against the original to check every change.
  • Finding which lines were dropped or added when a list was re-exported.

Frequently asked questions

Is the diff checker free?

Yes. The tool is completely free with no sign-up and no usage cap. Compare as many texts as you like, as often as you like.

Is my text uploaded anywhere?

No. Comparison runs in your browser with a longest-common-subsequence diff. Nothing you paste is sent to a server, stored or logged — closing the tab removes it completely.

How does the diff checker decide what changed?

It compares the texts line by line: lines that appear in both texts in the same order are unchanged, and everything else is an addition or a removal. A line that was edited shows as one removal plus one addition, because the two versions of that line are different lines to the comparison.

What do Ignore whitespace and Ignore case do?

Ignore whitespace treats lines that differ only in spaces, tabs or indentation as the same line — useful when one version was re-indented. Ignore case treats “Bread” and “bread” as the same line. Both options only change the comparison; the diff list still shows the lines exactly as you pasted them.

What are the limits?

Each text is limited to 100,000 characters and 2,000 lines. The diff list shows the first 1,000 rows on screen, but copy and download include every line. Identical texts are reported as identical rather than shown as a diff.

Advertisement

Related tools

Last updated:

  • Free forever
  • Files stay on your device
  • No sign-up