Text Diff

Compare two blocks of text and see the differences highlighted.

How to Use Text Diff

  1. 1

    Enter original text

    Paste the original version of your text into the left (Original) input area.

  2. 2

    Enter modified text

    Paste the modified version into the right (Modified) input area.

  3. 3

    Click Compare

    The tool computes the diff and displays results with additions, deletions, and unchanged lines clearly marked.

  4. 4

    Review differences

    Scan the color-coded output — green for additions, red for deletions — to understand exactly what changed.

Key Features

Line-by-Line Diff

Compares text line by line and highlights additions, deletions, and unchanged content.

Color-Coded Output

Green highlights show added lines, red highlights show deleted lines, making changes easy to spot.

Instant Comparison

Results appear immediately after clicking Compare — no waiting for server processing.

Large Text Support

Handles large documents with hundreds or thousands of lines efficiently in your browser.

Common Use Cases

  • Code Comparison

    Compare two versions of a file to see what changed between revisions without using a full version control tool.

  • Content Editing

    Compare draft and final versions of articles, emails, or documents to review all edits at a glance.

  • Configuration Changes

    Diff configuration files to identify which settings were changed between environments or deployments.

Frequently Asked Questions

How does the diff algorithm work?

The tool uses a longest common subsequence (LCS) algorithm to compute the minimal set of changes between the two texts, similar to how Unix diff and Git work.

Can I compare files?

This tool compares pasted text. Copy the contents of your files and paste them into the two input areas to compare.

Is my text sent to a server?

No. All comparison happens entirely in your browser. Your text never leaves your device.

Does it support word-level highlighting?

The current version highlights differences at the line level. Lines that differ are shown in their entirety as additions or deletions.