All tools

Text Diff

Compare two blocks of text and highlight added, removed and changed lines side by side.

2 added 2 removed
11 function greet(name) {
2- console.log("Hi " + name);
3- return true;
2+ console.log(`Hi ${name}`);
3+ return name.length > 0;
44 }

Line-by-line comparison using an LCS diff. Green is added, red is removed. Runs entirely in your browser.