Compare Text – Online Text Diff Checker
NEWCompare text online: paste two texts or open two files and see every difference line by line, with word highlights and a copyable patch. Free, in your browser.
Runs 100% in your browser — your input is never uploaded or stored on our servers.
Quick Examples
Typical inputs and the results this tool produces.
Overview
This tool compares two texts and shows exactly what changed between them: a config file, a contract clause, an email draft or a code snippet. Lines are matched with the Myers algorithm (the same idea used by git diff), and changed lines get word- or character-level highlights so you can spot a single edited word.
Switch between a side-by-side view and a unified view, collapse long unchanged stretches, and ignore whitespace or letter case when only the content matters. The unified diff can be copied as a standard patch.
You can paste the texts or open two text files. The comparison runs entirely in your browser — nothing you paste or open is uploaded.
Why use this tool?
- Spot one changed word in a long text
- Copy a standard unified diff patch
- Ignore whitespace or case noise
- Private: texts never leave your browser
Features
Inline highlights
Changed lines show the exact words or characters that differ.
Two views
Side-by-side panes (stacked on phones) or a single unified list.
Ignore options
Ignore case, extra whitespace and blank lines when comparing.
Open text files
Load either side from a .txt, .md, .json, .csv, .log or similar file up to 2 MB.
Change stats
Counts of added, removed, changed and unchanged lines.
Unified patch
Copy the diff in the standard @@ hunk format with 3 lines of context.
Collapse unchanged
Long runs of identical lines fold into a single marker.
How to Use
Paste or open both texts
Put the old version in "Original text" and the new one in "Changed text", or open a text file for either side.
Set options
Tick Ignore whitespace / Ignore case and choose word or character highlights.
Pick a view
Choose Side by side or Unified; use Swap to reverse the direction.
Copy the diff
Click "Copy unified diff" to paste the patch into a review or ticket.