Text Diff Tool
Compare two blocks of text or code and highlight additions, removals, and changes by line and character. This free online diff checker runs entirely in your browser, with no installation required.
This tool has been used … times.
Text to Compare
Comparison Results
Enter two blocks of text and choose Compare Text to see their differences here.
How to Use the Text Diff Tool
1. Enter both versions
Place the original text on the left and the revised text on the right. You can compare prose, source code, lists, configuration files, and more.
2. Choose a view
Use Side by Side for a broad comparison, or Inline to review changes in a single continuous list.
3. Adjust the options
Ignore whitespace, blank-line whitespace, or letter case when you want to focus only on meaningful changes.
4. Review and export
Jump between differences with the navigation buttons, copy the summary, or export a plain-text report containing the results and both inputs.
Your view mode and comparison options are saved in this browser and restored the next time you use the tool.
Frequently Asked Questions
What is a text diff?
A text diff compares two versions of text and identifies what was added, removed, or changed. This tool highlights differences at both line and character level, making small edits easier to spot.
Can I compare source code and configuration files?
Yes. You can compare any plain text, including source code, configuration files, CSV data, and lists. The whitespace and case options help filter out formatting-only changes.
Is my text uploaded to a server?
No. The comparison runs locally in your browser, and the text you enter is not uploaded. Only your view mode and comparison options are stored locally in the browser.