Compare two texts side by side and highlight the differences.
100% Private — Your Text Never Leaves Your Browser
All diff comparisons are performed entirely in your browser using client-side JavaScript. No data is sent to any server, stored, or tracked.
The tool uses the Longest Common Subsequence algorithm to find the longest set of lines that appear in both texts in the same relative order. These common lines form the 'unchanged' backbone of the diff. Lines in the original text that are not part of this subsequence are marked as deleted (red), and lines in the modified text that are not part of it are marked as added (green). This produces a clean, minimal diff that focuses on actual changes rather than noise.
In a line-level diff, there are only three states: added, deleted, and unchanged. What looks like a 'modified' line is actually represented as a pair — a deleted line followed by an added line. For example, if you change 'name: John' to 'name: Jane', the diff will show '- name: John' in red and '+ name: Jane' in green. This is the same convention used by Git, GNU diff, and most code review tools.
The output follows the unified diff convention: each line is prefixed with a character indicating its status. A '+' prefix (green) means the line was added, a '-' prefix (red) means the line was removed, and a space prefix (no color) means the line is unchanged. Line numbers on the left help you locate changes within the original context. This format is widely recognized by developers and can be copied directly into documentation or patch files.
The Ignore Whitespace option is ideal when comparing code that has been reformatted or when indentation has changed but the actual content has not. The Ignore Case option is useful when comparing text where capitalization is inconsistent — for example, lists of names, titles, or data exported from different systems. These options only affect the comparison logic; the displayed output always shows the original text with its full formatting and casing preserved.
Compare two versions of a code file to see exactly which lines were added, removed, or changed. Perfect for reviewing pull requests, auditing code changes, or understanding what a refactoring actually modified.
Compare drafts of contracts, proposals, articles, or reports to see what content was added or removed between versions. Useful for collaborative writing and editorial review.
Compare old and new versions of configuration files like .env, nginx.conf, or JSON configs to verify exactly what settings were changed during a deployment or migration.
After migrating data between systems, export before and after snapshots as text and diff them to verify that only expected changes occurred and no data was accidentally lost.
Compare the original and translated versions of text documents to ensure all content has been properly translated and no sections were accidentally omitted.
Compare different versions of legal agreements, terms of service, or policies to identify the specific clauses that were added, removed, or reworded between revisions.
Compare a student submission against a reference text to identify matching and differing passages. While not a full plagiarism detector, it highlights exact textual similarities.
Compare API responses from different environments (e.g., staging vs. production) or before and after a deployment to verify that endpoints return the expected data.
Find and replace text with regex support and batch processing.
Count words, characters, sentences, and paragraphs instantly.
Remove duplicate lines from text while preserving order.
Sort text lines alphabetically, numerically, or in reverse order.
Count characters, words, and sentences with real-time analysis.
Generate placeholder text for design and development.
Convert text between uppercase, lowercase, title case, and more.

Founder & Developer of FreeKit
I personally designed and built every tool on this website — including the one you just used. If these tools have been helpful, I can build custom tools, automation workflows, websites, and SEO solutions tailored to your business.
Remote: Available Now
United States & European company
USD $25/hour or USD $1,500/month
On-site: Open to Relocation
With work visa & travel support