Skip to content
BrowserUtil

Text Compare

Diff two blocks of text line by line and highlight every addition, deletion and change. Runs fully in your browser.

+0 Added-0 Removed~0 ChangedSimilarity 100%

0 lines · 0 characters

0 lines · 0 characters

Add text on both sides to see the difference.

How to use

  1. 1 Paste the original text on the left and the revised text on the right.
  2. 2 Turn on ignore case or ignore whitespace when formatting is not important.
  3. 3 Read the highlighted result: green is added, red is removed, amber is changed.

Features

  • Line-by-line diff with aligned line numbers
  • Side-by-side and unified views
  • Character-level highlighting inside changed lines
  • Ignore case, ignore whitespace and trim-line options
  • Similarity score plus added, removed and changed counts
  • Everything computed locally — nothing is uploaded

Frequently asked questions

Is my text uploaded to a server?

No. The comparison runs entirely in your browser with JavaScript, so your text never leaves your device.

How is the similarity score calculated?

It compares the number of identical lines with the total number of lines on both sides, so two identical texts score 100%.

Is there a size limit?

Very large inputs are trimmed to the first few thousand lines to keep the page responsive. For huge files, split them into sections.

Related tools

Case Converter

Coming soon

Convert text between lower case, UPPER CASE, Title Case, camelCase and snake_case.

Sort & Deduplicate Lines

Coming soon

Sort lines alphabetically or numerically, remove duplicates and blank lines in one click.