Text tools

Text Comparison

Compare text by line, word, or character in accessible unified and side-by-side views.

Processed locally in your browser. Your input is not uploaded to our server.

0 characters
0 characters
Comparison mode
Display mode
Comparison options

Run a comparison to see additions, removals, changed pairs, and similarity.

Enter or load both texts to begin

How to use Compare Text

  1. Paste or open the original text on one side and the changed text on the other.
  2. Choose line, word, or character comparison plus display and ignore options.
  3. Review labeled changes and export the unified diff or JSON summary if needed.

Supported behavior

Text Comparison shows how an original and changed document differ by line, word, or character. Results can appear side by side, as a unified diff, or inline, with added, removed, and changed segments labeled in addition to color for accessibility. Options can ignore case, trim line edges, ignore all whitespace changes, normalize line endings, show unchanged material, wrap long lines, and select zero to twenty context lines. The summary reports additions, removals, changes, and a similarity percentage; unified diff and JSON summaries can be downloaded. Either side can come from pasted text or a local file, and the inputs can be swapped. Large comparisons run outside the main interface, with virtualized rendering beyond 5,000 lines. Both documents remain in your browser and are never uploaded, and HTML is always displayed as text rather than executed. Ignoring differences changes comparison keys, not the underlying documents, so exported views should state the selected options.

  • Similarity is a structural estimate and is not a plagiarism or semantic-equivalence score.
  • Character mode can produce a very detailed result for large, heavily changed documents.

Examples

                Original:
The release is Monday.

Changed:
The release is Tuesday.
              

Result: - The release is Monday. + The release is Tuesday.

                Original:
plan
build

Changed:
plan
build
verify
              

Result: + verify; 1 added line

Common use cases

  • Review edits between two policy drafts.
  • Check whether generated files differ only in whitespace.
  • Create a portable unified diff for a code review discussion.

Frequently asked questions

Can I compare two files?

Yes. Select a supported local file for each side, and use Swap sides if their roles are reversed.

Is color the only change indicator?

No. Plus and minus markers, labels, and accessible text accompany the color treatment.

What does ignoring whitespace do?

It suppresses configured whitespace differences for matching without rewriting either original input.

Will pasted HTML render?

No. HTML remains inert text in every comparison view.