Handy Orchard

Text difference viewer

Compare plain text in a bounded worker, showing aligned original/revised tokens with insertion and deletion counts.

Your input

Outputs are cleared when the input changes.

Result

Enter your data or use the example, then run the tool.

Worked example

Inserting one line into an otherwise identical document reports one inserted line.

The text <script> is shown literally. Ignoring whitespace is explicit and does not silently replace your input.

Method

Trim equal prefixes/suffixes and apply bounded longest-common-subsequence dynamic programming in a dedicated Worker.

Return equal/insert/delete operations and original/revised values; optional whitespace and newline matching rules are explicit.

Limits

Each side at most 1 MiB and 20,000 tokens; LCS matrix at most 2,000,000 cells. Over-complex jobs are rejected.

A worker is terminated after at most two seconds of waiting, with normal browser scheduling delay. No Word formatting, semantic merge or formal equivalence proof.

Sources

MIT: longest common subsequence

Related tools

PDF text layer extractorDOCX to semantic HTMLImage OCRJSON structural diff

Your inputs stay on this device. Only optional, consented page visits are measured. Input values, files, filenames and processing logs are not sent to Analytics.

When switching languages, text, settings and selected files are temporarily kept on this device. Transfers are removed after restoring; interrupted transfers are cleaned up on a later visit. Inputs and files are never uploaded.