Compare two drafts as word-and-punctuation tokens and expose the shortest sequence of additions and removals between them.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
Optional preprocessing lowercases the strings or collapses every whitespace run to one space before jsdiff tokenizes them. Its Myers-based pass produces ordered added, removed, and retained chunks, while displayed counters split those chunks on whitespace to count words.
Input1: The quick brown fox Input2: The slow brown cat
Type Value Count --------- ------- ----- unchanged The 1 removed quick 1 added slow 1 unchanged brown 1 removed fox 1 added cat 1
Editors review paragraph revisions, support engineers compare expected and actual test output, and localization reviewers inspect message-catalog wording changes.