Boneyard Tools

Diff Checker: Compare Text and Code

Paste an original and a changed version to see exactly what differs, line by line. Added lines show in green, removed lines in red, and a running count tells you how much changed.

How to compare two texts

  1. Paste the original text into the left box.
  2. Paste the changed text into the right box.
  3. Read the unified diff below: green lines were added, red lines were removed.

Examples

A changed middle line

a
b
c
  a
- b
+ x
  c

An added line

one
two
  one
  two
+ three

Frequently asked questions

What does a diff show?

It shows how two texts differ. Lines only in the original are marked as removed, lines only in the changed version are marked as added, and lines present in both are shown as unchanged.

Is this a line diff or a character diff?

This tool compares line by line. A whole line counts as changed if any part of it differs, which is the clearest view for code and config files. It does not highlight individual characters within a line.

Is my text private?

Yes. The comparison runs entirely in your browser. Nothing you paste is uploaded or stored on a server.

What are common uses for a diff checker?

Reviewing code changes, comparing two config files, spotting edits in contracts or copy, checking what a tool rewrote, and confirming two lists match.

How does it decide which lines match?

It uses a longest common subsequence algorithm to find the largest set of lines that appear in both versions in order, then reports everything else as added or removed. That keeps unrelated edits from cascading.

Does it handle Windows and Mac line endings?

Yes. Carriage returns and CRLF endings are normalized before comparing, so two files that differ only in line endings show as identical.

Related tools