Comparar y fusionar texto
Paste two versions of text and compare them line by line with colour-coded differences.
Diff Result
How It Works
- Paste two texts: Enter original text in the left panel and the revised text in the right panel.
- View the diff: Changed lines are highlighted — green for additions, red for deletions, and yellow for modifications.
- Review and merge: Step through each change, accept or reject edits, and copy the final merged result.
Why Use Text Diff & Merge?
Comparing two versions of a document, code snippet, or configuration file by reading them side-by-side is slow and error-prone. A diff tool highlights exactly what changed — added lines, removed lines, and modified content — so you can review changes in seconds rather than minutes. This is essential for reviewing edits, merging contributions, auditing changes, and understanding what was modified between two versions of any text.
Features
- Line-by-line diff: Clearly shows added (green), removed (red), and unchanged lines.
- Character-level highlighting: Within changed lines, the exact characters that differ are highlighted.
- Side-by-side and unified views: Toggle between split and inline diff display.
- Change statistics: Shows total additions, deletions, and unchanged lines at a glance.
- Browser-based privacy: Text is compared locally — sensitive documents never leave your device.
Frequently Asked Questions
Can I compare code files?
Yes. Paste any text including code, JSON, HTML, Markdown, or plain text. The diff is purely text-based, so it works for any format.
Does it ignore whitespace differences?
Enable the "Ignore whitespace" option to skip differences that are only spaces or line endings. This is useful when comparing code that was reformatted but not meaningfully changed.
Can I merge the two versions?
Yes. In merge mode you can accept changes from either version line by line to produce a merged output. Copy the final merged text when complete.