Compare two text blocks side-by-side and highlight the differences. Supports character, word, and line-level diff. Perfect for code review, document comparison, and change tracking.
The tool uses a standard diff algorithm comparing texts line-by-line and character-by-character.
Yes. The tool works with any text content including code, prose, JSON, and YAML.
The tool runs entirely in your browser, so performance depends on your device. It handles files with thousands of lines well, but very large files (tens of MB) may cause the browser to slow down. All data is processed locally and never sent to a server, making it safe for comparing files with sensitive content.
Most text diff tools use the Myers diff algorithm (O(ND) algorithm), which is also Git's default — it finds the shortest edit path (minimum number of changes). Git also supports patience (better for code refactoring, recognizes moved code blocks) and histogram (an improvement on patience). Online diff tools typically use diff_match_patch (Google) or jsdiff, both based on the same Myers algorithm and producing results consistent with git diff.