How this diff checker compares text
A diff answers one question: what is the smallest set of line insertions and deletions that turns the original text into the changed one? This tool uses the Myers diff algorithm, the same approach behind Git’s default diff, to find that shortest edit script. Lines that only appear in the original are marked as removed, lines that only appear in the new version are marked as added, and everything else is unchanged. When a removed line and an added line sit in the same spot, they are shown as a pair and the tool runs a second, finer diff inside them, so you see exactly which words or characters were edited instead of two whole lines in color.
Side by side or unified view
The side-by-side view puts the original on the left and the changed text on the right with line numbers for each, which is the easiest way to read edits to prose, contracts and configuration files on a wide screen. The unified view stacks removed lines (marked −) directly above their replacements (marked +), which fits small screens and matches what you see in Git and code review tools. On phones the tool starts in unified view; you can switch at any time. “Copy unified diff” produces standard unified format with @@ hunk headers and three lines of context, ready to paste into an issue, an email or a patch review.
Ignore options and word versus character highlights
- Ignore whitespace: treats lines as equal when they differ only in spaces, tabs or indentation. Useful after reformatting code or copying text from a PDF.
- Ignore case: treats “Hello” and “hello” as the same.
- Words: highlights whole changed words, best for documents and sentences.
- Characters: highlights individual characters, best for IDs, numbers, URLs and small typos.
Privacy and limits
The comparison runs entirely in your browser; nothing you paste is uploaded or stored. To keep the page responsive, the tool compares up to 50,000 lines in total, and it stops with a clear message if the texts differ in more than 2,500 lines or the comparison takes longer than a couple of seconds. In that case, compare smaller sections. Very large results show the first 5,000 rows on screen, while the copied unified diff always contains every change. If you only need to compare two lists of items regardless of order, the compare two lists tool is a better fit, and the remove duplicate lines tool can clean data before you compare. For JSON, run both versions through the JSON formatter first so the formatting matches.