Text Diff Checker

Free

Compare two blocks of text and highlight the differences line by line.

How to Use the Text Diff Checker

  1. Paste the original text into the left panel (Text A).
  2. Paste the modified text into the right panel (Text B).
  3. Click Compare Texts to see the differences.
  4. Green lines (+) are additions. Red lines (-) are removals. Unmarked lines are unchanged.

Common Use Cases

  • Comparing two versions of a document or essay
  • Reviewing changes to configuration files
  • Checking what changed between two API responses
  • Verifying text was not accidentally altered during editing
  • Finding differences in code snippets outside of a Git repo

Frequently Asked Questions

How does the diff work?

This tool uses the Myers diff algorithm, the same algorithm used by Git. It computes the minimum number of insertions and deletions needed to transform one text into the other and displays the result line by line.

Is the comparison case-sensitive?

Yes. The comparison is case-sensitive by default, matching how most text editors and version control tools work. A line with "Hello" and one with "hello" will be shown as different.

Can I compare code files?

Yes. Paste code from any language into the two panels. The diff output shows exactly which lines were added, removed, or unchanged — identical to git diff output.

What do the + and - symbols mean?

Lines starting with + (shown in green) are lines that exist in Text B but not in Text A — these are additions. Lines starting with - (shown in red) are lines that exist in Text A but not in Text B — these are deletions. Unmarked lines exist in both.

Is my text sent anywhere?

No. All comparison happens entirely in your browser using JavaScript. Neither text is transmitted to any server.

Related Tools