W3docs

Tools

Code Diff

Paste two snippets and see the differences highlighted line by line. Useful for spotting changes between versions of HTML, CSS, JavaScript, or any other plain text.

  • Unchanged
  • Added
  • Changed
  • Removed
Line-by-line diff between the two inputs
Left lineLeft contentRight lineRight content
1<!DOCTYPE html>1<!DOCTYPE html>
2<html>2<html>
3<body>3<body>
4 <h1>Hi</h1>4 <h1>Hello</h1>
 5 <p>Welcome to W3Docs</p>
5 <p>This is very minimal 'hello world' HTML document.</p>6 <p>This is very minimal 'hello world' HTML document.</p>
 7 <div>This is a new code!</div>
6</body>8</body>
7</html>9</html>