Diff Visualizer

myers · line + word

Two versions of a small function, lined up by a real Myers diff — the same minimal-edit algorithm git uses. Changed lines are then diffed again word by word, so you see the edit inside the line. Type in either box and everything recomputes live.

example
v1 · before 0 lines
v2 · after 0 lines
+0 -0 0 hunks 0.00 ms
–/0
v1 · before
v2 · after

n / p jump between changes · panes are focusable, so arrows and PgDn scroll them · amber is added, red is removed (not green — on sloprun, green means "it worked")