Text

Text Diff

Compare two text documents or code snippets line-by-line. Visualizes additions, deletions, and unchanged lines with unified or side-by-side views.

● LOCAL ● NO NETWORK ● MYERS LCS ALGORITHM

Comparing structured JSON data? Use JSON Diff to perform semantic key-by-key comparison that ignores whitespace and ordering.

About this tool

What it does

Calculates the shortest edit script (SES) between two sequences of text lines using the Longest Common Subsequence (LCS) algorithm. Offers unified (standard patch style) and side-by-side comparative views without transferring any character outside your browser.

No data leaves your browser. Both input texts are diffed in local memory and are never saved to localStorage or external services.
AlgorithmDynamic Programming LCS Line Diff (Myers-style)
Network transferNone
PersistenceZero (memory only)