Diff Checker (Text / Code)

Compare two text blocks by line, word, or character and export a patch.

Compare text

Difference

Enter both versions and select Compare.

What is a diff checker?

A diff checker compares two blocks of text or code and highlights exactly what changed — added lines, removed lines and edited lines side by side. It replaces the manual scan where small edits hide inside long paragraphs.

It is used by developers reviewing a patch, writers checking a revision, and anyone verifying that a config change did only what it claimed. The comparison runs entirely in your browser, so nothing is uploaded.

How to compare two texts

  1. Paste the original text into the Left (Old) pane.
  2. Paste the revised text into the Right (New) pane.
  3. Press Compare to run the line-by-line comparison.
  4. Read the result view: removed lines and added lines are marked, and matching lines are left plain.
  5. Use Swap to invert the direction, or Copy Left / Copy Right to move a side back out.
  6. Clear both panes to start a new comparison.

Diff examples

A changed value

timeout = 30
retries = 3
region = "eu-west-1"
timeout = 60        ← changed
 retries = 3
 region = "eu-west-1"

An added line

server {
  listen 80;
}
server {
  listen 80;
  gzip on;    ← added
}

Diff checker vs other ways to compare

DimensionThis diff toolgit diffManual reading
InputTwo pasted blocksFiles in a repositoryAnything
SetupNoneA git repo and a terminalNone
Works on untracked textYesNeeds staging or filesYes
Large inputBrowser-boundVery large filesImpossible
PrivacyNever leaves the tabStays localN/A
FAQ

Frequently asked questions

Can I compare files?

Yes. Load a text file into either side.

What does unified view show?

It shows additions, deletions, and unchanged content in one stream.

What is a patch file?

A patch records changes in a format supported by common development tools.

Can I compare by words or characters?

Yes. Choose the granularity before comparing.

Is my text uploaded?

No. The comparison runs in your browser.

All Tools