Toolbox / Text diff Runs in your browser中文
Text

Text diff

Paste two versions and compare in place. Expand the workspace for a fullscreen view.

Ctrl / ⌘ + Enter Run

Ready when you are

Less switching. More focus.Functional build · Validation in progress

Using this tool

Compare two text versions to locate additions and removals and export prefixed differences.

Actions: Compare · Export text diff

Example

Put the original on the left and a/c lines in After; compare by lines without ignoring whitespace, then export text diff.

Example action and settings

Action: Export text diff
Updated text: a
c

Comparison mode: Lines
Ignore edge whitespace (line mode): Off

Input / action

a
b

Result / expected behavior

 a
-b
+c

Available options: Comparison mode · Ignore edge whitespace (line mode)

Scope and limitations

  • The inputs are limited to 200,000 combined characters; complex diffs have a 1.5-second and edit-length bound.

Common mistakes

  • Supplying only Before compares against empty text; ignoring edge whitespace does not ignore content changes.

Related tools

Text statistics

Privacy and browser support

Input is processed in this browser. Do not use real keys or active sensitive credentials as demonstration data. Device features require browser support and your permission.