Code & data · comparisonText comparison

Compare two texts and find every difference — by line, by word and by character. Whitespace, letter case and line endings can be ignored. Everything is computed in your browser.

Both texts are compared in the browser and never uploaded — safe for contracts and code

01Comparison02About03Questions04Related
01

Compare two texts

lines, words and characters — down to invisible differences
View
Level
by line plus changed words
Ignore
Differences found: 4+1 added−0 removed3 edited84.6 % similar1 of 1
1
Service agreement No. 14
1
Service agreement No. 14
2
The contractor delivers the work within 30 days.
2
The contractor delivers the work within 45 days.
3
The fee for the work is 120 000 roubles.
3
The fee for the work is 145 000 roubles.
4
Payment is due within 5 banking days.
4
Payment is due within 5 banking days.
5
Appendix No. 1 forms an integral part of the agreement.
5
The parties are liable under the law.
6
The parties are liable under the law.
lines: 5 / 6 · change blocks: 1
Examples
02

About text comparison

Comparing two texts shows how one version differs from the other: which lines were added, removed or edited, and which words changed inside a line. Developers need it to check two versions of code or a config; in document work it finds the edits between two revisions of a contract. A separate job of a comparison is to explain the case where two texts look the same and still differ — almost always an invisible space, a tab or a line ending.

Line by line

Basics
+ added − removed
The two texts are matched line by line: added, removed and edited lines are highlighted differently, and each side keeps its own line numbers. A rewritten line is shown as edited rather than as a removal followed by an addition, which is how people actually read a change.

Words and characters

Precision
120 000 → 145 000
Inside an edited line you see the words or characters that actually changed instead of the whole line. Word level reads well in prose, character level catches a single digit inside a long value, and line level skips inline analysis when a line was rewritten from scratch.

What to ignore

Options
whitespace · case · CRLF
Letter case, extra whitespace, blank lines and mismatched line endings can all be excluded from the comparison — the last one is the usual reason a whole file looks rewritten. Whitespace has four modes: as is, edges, amount and any. The text in the panes is never modified.

Identical or not

Verdict
98.4 % similar
The tool states whether the texts match and works out similarity from matching characters rather than matching lines: a line with one edited word is not simply «a line that differs». When the texts are not equal but the reason is trivial, it names the reason itself.

Invisible differences

Honesty
· → ¶
Sometimes two lines look the same but differ by a trailing space, a tab instead of spaces or a line ending. Those can be made visible: a space becomes a dot, a tab an arrow, a line end a pilcrow. What the verdict claims in words then becomes something you can see.

Privacy

Local
no server
Both texts are compared inside your browser and nothing is uploaded; a dropped file is read on the spot. The text is never written into the page address, not even by a button, because from there it would reach browser history and site analytics. Contracts and private code are safe.
03

Frequently asked questions

Paste one version into the «Before» pane and the other into «After» — the comparison runs as you type, with no button to press. Added lines are green, removed lines are red, edited lines are amber, and inside an edited line the changed words are marked individually. A file can be dropped straight into a pane; it is read locally. The arrows in the summary jump between differences.

Updated

«» added to favorites