How File Comparison Works
AnyTool compares files entirely in the browser. Text comparison uses the jsdiff library (Myers diff) at line, word, or character granularity, producing inline and side-by-side views with additions and deletions highlighted. Binary comparison walks the raw bytes to compute the match percentage, the first differing offset, and a paired hex/ASCII view.
- Runs client-side via jsdiff — files are never uploaded
- Line, word, and character granularity
- Side-by-side and inline (unified) views
- Ignore whitespace and ignore case options
- Binary mode: byte match %, first-diff offset, hex view
- Export a unified .diff file
