Diff Checker: Compare Two Texts and See the Differences

Paste two versions of a text or code and see exactly what changed. Choose line or word comparison and a side by side or unified view.

Loading tool…

How to use the Diff Checker

  1. Paste the original text on the left and the changed text on the right, or use Load a file on either side.
  2. Choose line or word comparison, and options such as ignore whitespace, case or blank lines.
  3. For line mode, pick side by side or unified view and use Previous and Next change to jump around.
  4. Read the added and removed counts, then copy or download the unified patch if you need it.

About this tool

A diff finds the smallest set of additions and removals that turns one text into another. Line mode compares whole lines and is the usual choice for code and config files. Word mode compares word by word and suits prose, where one edited sentence should not mark a whole paragraph as changed.

In side by side view, edited lines are shown next to each other with the changed words marked, so a small edit is easy to spot. Unified view shows removed lines with a minus and added lines with a plus, like git diff, and Copy unified patch gives you a standard patch with three lines of context that you can save as a .diff file.

Ignore whitespace treats runs of spaces and tabs as equal, Ignore case treats upper and lower case as equal, and Ignore blank lines removes empty lines from both sides before comparing (so line numbers then refer to the filtered text). Text files up to 5 MB can be loaded. Everything is compared in your browser using the open source diff library, and nothing is uploaded. Binary files, images and PDFs are not supported.

Frequently asked questions

What is the difference between line and word diff?

Line diff marks whole lines that changed. Word diff marks only the words that changed, which is better for paragraphs of text.

Can I compare code files?

Yes. Paste the contents or load each file. For very large files, comparison may be slow in the browser.

What do the ignore options do?

Ignore whitespace treats differences in spaces and tabs as no change, ignore case treats A and a as the same, and ignore blank lines drops empty lines before comparing.

Can I get a patch file?

Yes. Use Copy unified patch or Download .diff, which gives a standard unified diff with context.

Is my text uploaded?

No. The comparison runs locally in your browser.

Need a custom tool or website?

IDM Valley builds web apps, calculators, AI chatbots and automation for businesses. Fixed prices, code in your name.

Get a free quote

Have a project in mind?

Tell us what you need: a website, landing page, AI chatbot or automation. You get a clear scope and a fixed price within one working day. Free, no obligation.


  • avshack
  • DivineBamboo
  • goldleaf
  • janapril
  • kaizen
  • kwc
  • modv
  • pixelrush
  • revital
  • riderzplanet
  • sandsfashions
  • avshack
  • DivineBamboo
  • goldleaf
  • janapril
  • kaizen
  • kwc
  • modv
  • pixelrush
  • revital
  • riderzplanet
  • sandsfashions