📖 How to Use
Paste two versions of text into the left and right panels. Choose a comparison mode (line, word, or character) and view the highlighted differences instantly.
⚡ How It Works
Uses the diffs.js library to compute the longest common subsequence (LCS) between two texts, then renders additions, deletions, and changes with color-coded highlighting.
💼 Use Cases
Review code changes before committing; compare document revisions; find differences between configuration files; verify data migration accuracy; check plagiarism between texts.
❓ FAQ
❓ Do I need to upload my content?
No. All comparison is done locally in your browser. Your text content is never uploaded to any server, ensuring data privacy.
❓ What diff modes are supported?
Three modes: Line Diff - compare text line by line; Word Diff - compare at word granularity; Character Diff - compare character by character for detailed changes.
❓ What is the maximum text size?
The tool handles up to 100KB of text, enough for daily code comparison and document comparison needs. It will warn you if the limit is exceeded.
❓ Can I export the diff result?
Yes. After comparison, you can copy the diff result or download it as a text file. Added (+) and deleted (-) lines are clearly marked.
❓ Can I compare code files?
Yes. It supports any plain text content including code files (Python, JavaScript, HTML, CSS, etc.). Multi-language code comparison is supported.
❓ Is this tool free?
Yes, completely free. No registration or payment required for any feature.