Text Diff Checker

Instantly compare two blocks of text or code to find differences.

function sum(a, b) {
  return a + b;
}

function multiply(a, b) {
  return a * b;
}

console.log(sum(1, 2));
console.log(multiply(2, 3));

What is a Text Diff Checker?

A text diff checker (or diff viewer) is a developer utility that compares two versions of a document line-by-line. It visually highlights exactly what text was added, removed, or modified. It is an invaluable tool for code reviews, finding sneaky typos in configuration files, or comparing large JSON payloads.

How to use

  • 1Paste the original, unmodified text into the left editor pane.
  • 2Paste the new, modified version of the text into the right editor pane.
  • 3The visual diff viewer below will instantly render the differences.
  • 4Lines highlighted in red were removed from the original text.
  • 5Lines highlighted in green were added to the modified text.

Related Tools