Compare two blocks of text and see the differences line by line.
Runs in your browser. Your input is processed on this device.
This diff checker compares two blocks of text and highlights exactly what was added and removed, line by line. It uses a longest-common-subsequence algorithm — the same core idea behind git diff — to find the smallest set of changes between the original and the changed version.
Paste two versions of a file, config, or paragraph to instantly see the differences, with added lines marked in green and removed lines in red. Everything runs locally, so you can compare private code or documents safely.
This tool compares text line by line, which is ideal for code, config files, and structured text. Whole lines are marked as added or removed rather than highlighting individual characters within a line.
No. The diff is computed entirely in your browser, so you can safely compare private code, credentials, or confidential documents.
Yes. Any plain text works, including JSON, source code, CSV, and logs. For JSON, formatting both sides first (with the JSON Formatter) produces the cleanest, most readable diff.