Text Diff Checker
Compare two texts or files with character-level highlighting, merge the changes, and export the result.
Original
Changed
Character-level highlighting
When a line is edited rather than added or deleted outright, the exact characters that changed are highlighted in a deeper shade — so a one-word change in a long line is instantly visible instead of the whole line lighting up.
Merge and export
Choose which side to keep for each change to build a merged file, then copy it, download it as text, or export the full comparison as a PDF report or an Excel spreadsheet for review and sharing.
Frequently Asked Questions
How does the comparison work?
Text is compared line by line using a longest-common-subsequence algorithm, the same technique used by most "diff" tools — it finds the smallest set of added and removed lines needed to turn the original into the changed version.
What do the darker highlights inside a line mean?
When a line was edited rather than added or deleted outright, it is matched with its counterpart and compared character by character. The lighter tint marks the whole changed line, while the deeper green or red marks the exact characters that were inserted or removed.
Can I compare two files instead of pasting text?
Yes. Use the Upload button above either box to load a text-based file — .txt, .md, .csv, .json, .xml, .yaml, or any common source-code file. The file is read locally in your browser and never uploaded.
How does the merge feature work?
Each block of changes becomes a hunk you can resolve individually — keep the original side, the changed side, or both. Unchanged lines are carried through untouched, and the combined result can be copied or downloaded as a .txt file.
What is included in the PDF and Excel exports?
The PDF is a paginated report of the full comparison with added lines shaded green and removed lines shaded red. The Excel export is a spreadsheet with original and changed line numbers, both versions of each line, and a change type column, so you can filter and review the differences.
Is my text or file uploaded anywhere?
No. Comparing, merging, and generating the PDF and Excel files all run entirely in your browser — nothing is sent to a server.
Related tools
More free, private, browser-based utilities — no upload, no sign-up.

Davemi Tools