Free online text diff tool - Compare files and find differences instantly
Privacy-first
Compare locally in browser
Multiple views
Side-by-side & unified
Instant diff
Real-time comparison
You can compare any type of text including code files (JavaScript, Python, HTML, CSS), configuration files (JSON, YAML), documentation (Markdown, plain text), or any other text-based content. The tool works with Unicode text in any language.
Line mode compares text line by line, which is ideal for code and structured text where line boundaries matter. Word mode compares word by word, which is better for prose, documentation, or when you want to see granular changes within lines.
Ignore Case: Treats 'Hello' and 'hello' as identical. Ignore Whitespace: Ignores leading/trailing spaces and treats multiple spaces as one. These options are useful when formatting differences shouldn't be considered as changes.
There's no hard limit since all processing happens in your browser. However, very large texts (>1MB) may cause performance issues. The tool uses an efficient LCS (Longest Common Subsequence) algorithm for optimal performance.