Text Diff Checker

Compare two versions of text or code and identify added, removed, and unchanged lines. Useful for code reviews, configuration changes, logs, and API responses.

Original text

Version A · 7 lines

Original

Modified text

Version B · 9 lines

Modified

Added lines

4

Removed lines

2

Unchanged lines

5

Comparison results

Green indicates additions; red indicates removals.

1
const user = {
2
  name: "Alex",
3-
  role: "user",
4-
  active: false,
3+
  role: "admin",
4+
  email: "[email protected]",
5+
  active: true,
6
};
7
 
8
console.log(user.name);
9+
console.log(user.role);

This is a line-level comparison. Replaced lines may appear as a removal followed by an addition. Line numbers refer to the corresponding original or modified text.

Comparison runs locally in your browser. Your text is not uploaded.