Diff Checker

Paste two versions of a text, code or document and see exactly what changed. Added lines turn green, removed lines turn red, and changed words are highlighted inside each line.

  • Side by side
  • Lines, words, characters
  • No upload
Original text
Changed text
Differences
+0 added−0 removedSimilarity –
Compared on this device, never uploaded.
How to use

How to use Diff Checker

  1. 01

    Paste both versions

    Put the original text on the left and the changed text on the right, or upload two .txt, .csv, .json, .html or code files.

  2. 02

    Read the differences

    The comparison updates as you type. Green shows what was added, red what was removed, and changed words are highlighted inside the line.

  3. 03

    Adjust and export

    Switch between side by side and inline, compare by lines, words or characters, ignore case or spacing, and copy or download the result as a .diff file.

Guide

About Diff Checker

Diff Checker compares two pieces of text and shows you every difference between them. Use it to see what an editor changed in your article, which clause moved in a contract, what changed between two versions of a config file, or why two lists that should match don't.

How the comparison works

The tool uses the Myers diff algorithm, the same method behind git diff. It finds the smallest set of additions and removals that turns the original into the changed version. In Lines mode, each line is one unit; when a line was edited, the changed words inside it are highlighted, so you don't have to hunt for a single changed comma.

  • Lines: best for code, lists, CSV and config files.
  • Words: best for prose, such as articles, essays, emails and contracts, where one sentence often wraps over several lines.
  • Characters: best for short strings such as IDs, URLs, serial numbers or passwords that look identical but aren't.

Options that cut the noise

Ignore case treats "Total" and "total" as the same. Ignore whitespace skips extra spaces, tabs and indentation, which is useful when code was reformatted. Hide unchanged lines collapses long identical sections and keeps two lines of context around each change, like a code review.

What you can use it for

  • Writers and editors: compare drafts and see exactly what was rewritten.
  • Developers: compare code, JSON, logs or .env files without opening a terminal, and export a unified .diff.
  • Students and teachers: check how much a text was changed from its source.
  • Legal and admin work: spot edits between two versions of an agreement, policy or form.
  • Data checks: find the rows that differ between two exported lists.

Tips for the best results

  • Copying from a PDF or Word file can add line breaks in odd places. Switch to Words mode to compare the text itself rather than the layout.
  • Sort both lists the same way before comparing them, or every line will look moved.
  • Format JSON with the JSON Formatter first, so both files use the same indentation and each key sits on its own line.
  • Use Swap if you pasted the texts the wrong way round: additions and removals switch places.

Private by design: many online diff tools send both texts to their server. This one compares them in your browser, so contracts, source code and unpublished drafts never leave your device.

At a glance

Input
Pasted text or .txt, .csv, .json, .html, code files
Compare by
Lines, words or characters
Views
Side by side or inline
Options
Ignore case, ignore whitespace, hide unchanged
Export
Copy or download a unified .diff
Privacy
Compared in your browser
Use Diff Checker Read the guideHow to Compare Two Texts and Find Every Difference
FAQ

Questions about this tool

Something missing? Write to contact@ultratoolsai.com.

How do I compare two texts for differences?

Paste the original text in the left box and the new version in the right box. The differences appear below at once: green for added text, red for removed text, with changed words highlighted inside each line.

Can I compare two files?

Yes. Use Upload on each side to load a .txt, .csv, .json, .html, .md or code file. The files are read on your device and are not uploaded anywhere.

What is the difference between line, word and character mode?

Line mode compares whole lines and suits code and lists. Word mode ignores line breaks and suits prose. Character mode finds single-character changes in short strings.

Can it ignore spaces and capital letters?

Yes. Turn on Ignore whitespace to skip spacing and indentation changes, and Ignore case to treat upper and lower case as the same.

Does it work for code?

Yes. It uses the same algorithm as git diff and can export the result as a unified .diff file, which tools such as git apply and patch understand.

Is my text uploaded?

No. Both texts are compared in your browser and never leave your device.