Diff Checker

Compare two texts and see added, removed and changed lines.

Result

Result 3 added · 2 removed 3 lines unchanged
1 const greeting = "Hello"; 1 const greeting = "Hello";
2 const name = "World"; 2 const name = "Superwebkit";
3 console.log(greeting, name); 3 console.log(greeting + ", " + name);
4 4
5 export default greeting; 5 export default greeting;
6 export const version = 2;

What is a diff?

A diff lists the differences between two versions of a text. Lines that appear only in the new version are marked as added, and lines that appear only in the old version are marked as removed. Everything else is unchanged. Programmers use diffs to review changes to code, but they work for any text.

This tool uses the Myers algorithm, the same approach as git, which finds a smallest set of line changes. A line you edited shows as removed on the left and added on the right. You can ignore letter case, spacing or blank lines when they are just noise, and copy a unified diff like the one git prints.

How to use the Diff Checker

  1. Paste the original text on the left.
  2. Paste the changed text on the right.
  3. Choose side by side or unified view.
  4. Turn on any ignore options, then read or copy the result.

Real situations

When people use the Diff Checker

  • 1

    Review a change before you commit

    Paste the old and new version of a file to see exactly which lines you touched and nothing else.

  • 2

    Compare two config files

    Find the one setting that differs between a working and a broken environment.

  • 3

    Check edits to a document

    See what a colleague changed in a contract clause, an email draft or an article.

  • 4

    Confirm two lists match

    Paste two exports and see whether any lines are missing or extra, ignoring case or spacing if needed.

FAQ

Diff Checker: questions answered

How does it decide what changed?

It finds the longest run of lines that both texts share and treats everything else as changes. A line that was edited appears as removed on the left and added on the right, because the comparison is line by line.

What result does the example show?

The sample compares two five-line code snippets. The result is 3 added and 2 removed, with 3 lines unchanged. The edited name line and console.log line each count as one removal and one addition, and the new export line is an addition.

What is a unified diff?

A compact text format used by git and many tools. Lines starting with - were removed, lines starting with + were added, and nearby unchanged lines give context. The @@ line shows which line numbers are covered.

Can I ignore case or spaces?

Yes. Turn on "Ignore case", "Ignore spacing" or "Ignore blank lines". For example, Hello and hello are treated as the same with case ignored, and the result says the texts match.

Does it compare words or characters?

It compares whole lines. If one word in a long line changed, the whole line is shown as changed. Put each sentence or item on its own line for finer comparisons.

Is there a size limit?

Yes. Each side is limited to 20,000 lines, because comparing very large texts is slow in a browser. For huge files use a command-line tool such as git diff.

Is this Diff Checker free and private?

Yes. It is free with no sign-in, and every calculation runs inside your browser. Nothing you type is sent to a server or stored, and the page keeps working offline once it has loaded.

Private by design. No accounts, no cookies, no tracking. Everything you type stays on your device.

How we keep it that way