Original (A)
Modified (B)
How the diff works
This tool uses the Myers diff algorithm — the same algorithm used by Git — to compute the shortest edit script between two texts. Lines are compared one by one, and each line is marked as added (green), removed (red), or unchanged (grey).
Enable Character diff to see exactly which characters changed within a modified line. Enable Ignore case or Ignore whitespace to focus on meaningful changes only.
The Download .patch button exports a unified diff patch file compatible with the patch command.