Text Diff Checker

Paste two versions of any text, code or log and see the differences line by line, with the changed words highlighted. Unchanged stretches can be collapsed, and nothing is uploaded.

Original
Changed

Nothing leaves your browser. Shortcut: Ctrl/⌘ + Enter runs the main action.

What is a diff checker?

A diff checker compares two texts and shows which lines were added, removed or changed. It is the same idea as diff on the command line or the changes view in Git, without installing anything. Paste the original on the left and the new version on the right; the differences are marked immediately, and inside each changed line the exact words that differ are highlighted, so a single changed digit in a long line is easy to spot.

How to compare two texts

  1. Paste or drop the original text on the left and the changed text on the right.
  2. The comparison runs as you type; the summary shows how many lines changed, were added and were removed.
  3. Tick Ignore whitespace if indentation or spacing changes should not count.
  4. Keep Hide identical lines on to collapse unchanged parts, and use Previous / Next to jump between changes.

Reading the result

ColourMeaning
Red background on the leftLine removed or replaced; darker red marks the removed words
Green background on the rightLine added or replacement line; darker green marks the new words
Striped cellNo corresponding line on that side
Light yellowLines equal only because whitespace is ignored
Grey barCollapsed identical lines; click to expand

Common uses

Structured data

A line-based diff treats JSON and YAML as plain text, so reordered keys or re-indented blocks show up as changes. For those formats use the JSON diff or the YAML diff, which compare the data itself and list changed paths.

Text diff questions

How does the text diff decide what changed?

It uses the Myers algorithm, which finds the smallest set of inserted and deleted lines that turns the first text into the second; Git and most diff tools use the same method. Lines that were replaced are paired up and the differing words inside them are highlighted.

What does Ignore whitespace do?

Lines are compared after collapsing runs of spaces and tabs and trimming the ends, so re-indented or re-wrapped lines with the same words count as equal. Such lines are shaded lightly so you can still see them.

What is the difference between side-by-side and unified view?

Side by side shows the original on the left and the changed text on the right, aligned row by row. Unified shows one column with removed lines (−) followed by added lines (+), like git diff. Unified is used automatically on narrow screens.

Can I compare files instead of pasting?

Yes. Use Open file on each side or drop a file onto the editor. Any text file works: source code, CSV, logs, Markdown, configuration.

Is my text private?

Yes. The comparison runs in your browser and the text is never sent to a server, which makes the tool suitable for contracts, code and logs you cannot share.