Text Diff & Compare Tool
Free online text diff tool. Compare two texts side-by-side and see additions, deletions, and changes highlighted.
Diff Output
Click Compare to see differences... Compare two texts and see exactly what changed between them. Our diff tool highlights additions, deletions, and modifications clearly.
Perfect for comparing code versions, configuration files, or any text content. All processing happens in your browser.
How to Use This Tool
- 1 Paste the original text in the left panel
- 2 Paste the modified text in the right panel
- 3 Click Compare to see differences
- 4 Toggle between unified and side-by-side views
- 5 Adjust options to ignore whitespace or case
Use Cases
Code Review
Compare code versions to see what changed between commits.
Configuration Comparison
Spot differences between config files from different environments.
Document Versions
Track changes in documentation or content revisions.
Debugging
Compare outputs to identify where issues were introduced.
Frequently Asked Questions
What algorithm does this diff tool use?
We use a longest common subsequence (LCS) algorithm to find the minimal set of changes between the two texts, similar to how git diff works.
What's the difference between unified and side-by-side view?
Unified view shows changes inline with + and - markers. Side-by-side shows both versions next to each other with highlighting.
Can I compare files directly?
Currently you need to paste the text content. For file comparison, copy the contents first. File upload may be added in future updates.
Is there a size limit?
The tool handles reasonable text sizes well. Very large files (>1MB) may be slow as everything runs in your browser.
Is my text stored anywhere?
No. All comparison happens locally in your browser. Your text is never sent to any server.