toolset

Text Diff — compare two texts online, free, in your browser

Compare two texts line by line. Added and removed lines are highlighted; ignore whitespace or case. Runs in your browser — neither text is uploaded.

Comparison is line by line. Toggle ignore whitespace or case to skip cosmetic differences.

0 chars
0 chars
Differences

Paste text into both panels to see the differences.

Comparison runs in your browser. Neither text is uploaded.
How to use this tool

How to use this tool

  1. Paste the original text

    Type or paste your first (original) text into the left panel. It can be a paragraph, a list, code, a config file or any plain text.

  2. Paste the changed text

    Put the second (changed) version into the right panel. The two texts are compared line by line as you go.

  3. Read the differences

    Removed lines (only in the original) and added lines (only in the changed text) are highlighted, with a +N −M summary. Toggle “ignore whitespace” or “ignore case” to focus on the changes that matter.

Frequently asked questions

Frequently asked questions

Are my texts sent to a server?

No. The comparison runs entirely in your browser with JavaScript — neither text ever leaves your device and nothing is uploaded. That matters a lot for diffs: people often compare code, config files, .env files or other content that may contain secrets, and public online diff tools can log it. Here everything stays local.

How does the comparison work?

It compares the two texts line by line and finds the longest common sequence of lines, then marks the rest as removed (only in the original) or added (only in the changed text). Each line keeps its line number on both sides. Comparison is per line, so a changed line shows up as the old line removed plus the new line added — there is no inline word-level highlighting within a line yet.

What do “ignore whitespace” and “ignore case” do?

“Ignore whitespace” makes lines that differ only in indentation or spacing count as equal (the original spacing is still shown). “Ignore case” compares letters without regard to upper/lowercase. Both affect only the comparison — your text is displayed exactly as you pasted it.

Related tools