Text Diff

Compare two texts and instantly see what's different. Line-by-line highlighting.

Instant Line-by-Line Private

How it works

Three simple steps – everything happens in your browser.

1

Paste both versions

Put your original text on one side and the edited version on the other so the tool can compare them line by line.

2

Choose your diff view

Switch between unified and side-by-side layouts to inspect additions, deletions, and unchanged lines in the clearest format.

3

Review changes quickly

Use the stats summary and highlighted output to spot what changed before copying, debugging, or sharing revisions.

Features

Line-by-Line Diff

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

Two View Modes

Unified view shows all changes in one column. Side-by-side shows both texts with aligned diffs.

Change Statistics

See how many lines were added, removed, and unchanged at a glance.

Local Comparison

Text comparison runs in this browser without a processing upload or document storage.

Why choose ToolKnit Text Diff?

Side-by-side diff

Color-coded additions, deletions, and modifications shown line by line.

No Comparison Upload

The comparison algorithm uses the text already in this page. Follow your organization's rules before handling sensitive information.

Instant results

LCS-based diff algorithm runs in your browser with no server round-trip.

Pro Tips

  • ● Great for comparing code, configs, API responses, or any text documents.
  • ● Use Swap to quickly reverse which text is original vs. modified.
  • ● The diff algorithm uses the Longest Common Subsequence (LCS) method for accurate results.

Frequently Asked Questions

Everything you need to know about the text diff tool.

How does the text diff tool work?

Paste two versions of any text into the left and right panels and the tool highlights every line that was added, removed or changed. Differences are color coded so you can scan results at a glance.

Can I compare long documents?

The workspace allows up to 200,000 characters per side and 4,000,000 line-pair cells, counting each side's extra boundary row. Larger comparisons are stopped before allocating the table. For long documents, compare smaller sections; performance depends on line counts and device memory.

Does the diff show character-level changes?

No. This version highlights whole added and removed lines. A changed line appears as a deletion and an addition; it does not separately highlight the changed characters within that line.

Is whitespace ignored?

Spaces and tabs are significant. There is no ignore-whitespace switch. For prose, you can normalize whitespace before pasting, but doing so changes what you compare.

Is my pasted text uploaded anywhere?

The comparison does not upload pasted text to a processing server. It runs in this browser and does not save a document. Clipboard history, browser recovery or extensions can retain separate copies; this is not a secure-erasure tool.

You May Also Like

Explore more free browser-based tools – no signup, no uploads.