Free Text Compare Tool

Compare two pieces of text by lines, words, or characters and highlight every addition, deletion, and change right in your browser.

Browser-side text comparison

Paste text or open local files. The comparison is computed in the current browser session and nothing is uploaded.

Granularity
View
+ 2− 1Similarity 43%
Original
Modified
0 / 2
1function add(a, b) {
1
2 return a + b
3}
4
5const result = add(1, 2)
6console.log(result)
1function add(a, b) {
2 // Returns the sum of two numbers
3 return a + b
4}
5
6const result = add(1, 2)
7console.log("result:", result)

How to compare text

1

Paste or open your text

Type or paste the old and new versions into the two boxes, or open .txt files from your device. Nothing is uploaded - the comparison runs entirely in your browser.

2

Run the comparison

Click Compare. Switch between line, word, and character granularity, and turn on ignore options to skip whitespace, case, or lines that match a pattern.

3

Review the differences

Added, removed, and changed regions are highlighted. Use the previous/next buttons to jump between changes, and fold long unchanged blocks to keep the edits in view.

What you can compare

Use it for drafts, code snippets, configuration files, release notes, logs, or any plain text. Switch between line, word, and character granularity to focus on the level that matters - line view for documents, word view for prose, character view for tight strings.

Side-by-side or inline

Pick a side-by-side view to scan both panes at once, or an inline view to read a single merged stream of old and new. Folding hides long unchanged regions so the changes stay in view, and the previous/next navigator jumps straight between edits.

Flexible inputs

Type or paste directly, open .txt files from disk, or paste from your clipboard. Fine-tune the result by ignoring whitespace, case, blank lines, or skipping lines that match a regular expression - handy for noisy logs and generated output.