Text Diff Checker

Paste two blocks of text below to see a visual comparison of their differences. Ideal for comparing code, documents, and configurations.

Original Text

Changed Text

Differences

Lines highlighted in green have been removed from the original. Lines in red have been added in the changed text.

  const a = 1;
- const b = 2;
console.log(a + b);
+ const b = 3;
console.log(a * b);
// A new comment

How to Compare Text

A "diff" (short for difference) tool is used to compare two files or blocks of text and highlight the changes between them. This is incredibly useful for developers reviewing code changes, writers tracking revisions in a document, or anyone needing to spot what has been altered between two versions of a text. Our tool provides a simple, clear, line-by-line comparison to make this process easy.

Frequently Asked Questions

Related Tools