Skip to content
Codoryn Search tools

Diff Checker

Compare two texts line by line in your browser. Nothing is uploaded, neither text is altered, and the complete diff stays available to copy.

Your text is never altered

Both documents are stored and emitted exactly as you pasted them, byte for byte. The comparison options change only how lines are matched, never what is stored or what you copy out.

Turn on "ignore all whitespace" and two lines that differ only in spacing stop being reported as a change — but the line in the diff is still your original line, with its spacing intact. A tool that handed back stripped text would be quietly destroying the thing you asked it to compare.

Whitespace is data here, not noise. A document containing a single space is a different document from an empty one, and the two are compared rather than treated as nothing to do. Only two completely empty panes are “nothing to compare”.

Line endings

Lines are split on LF, CRLF and a lone CR, and the terminator is not part of the line when matching. A file converted from Windows to Unix endings therefore does not report every single line as changed, which is almost never what you want to see.

If you do want to know about it, turn on "Show newline differences" and the difference is reported once, as a note, rather than as thousands of content changes. A missing final newline is reported with the standard \ No newline at end of file marker.

What this version does not do

Line-level only. There is no word-level or character-level highlighting within a changed line. Intra-line diffing needs a second pass per changed line pair, which is where the expensive worst case lives, and it needs a richer display than a text pane. It is deferred rather than rushed.

No side-by-side view and no file upload in v1. No merging: this shows you what changed, it does not let you resolve it.

Unicode

Comparison is over the actual characters. Two strings that look identical but are normalised differently — é as one character versus e followed by a combining accent — are reported as different, because they are different data. Nothing is silently normalised.

Frequently asked questions

Does this upload my text?

No. Both documents are compared in a Web Worker in your browser, and this tool does not send either of them over the network.

Why are all my lines marked as changed?

Usually indentation — tabs against spaces, or a different amount of it. Try "ignore leading/trailing whitespace".

Can I compare files?

Not in this version. Paste the text instead.