Home/Tools/Writing Tools/Text Compare
Text Compare (Diff Checker)
Writing ToolsProcessed in your browser. A copy of each run is saved to your past runs so you can reopen it. Privacy
What the Text Compare does
Text Compare is a diff checker: paste two versions of a text and it highlights what was added and removed, by line, word or character, side by side or inline. It can ignore case and whitespace, produce a unified diff you can paste into a code review, and build a shareable link that keeps both texts in the URL. It is for writers, editors, developers and anyone checking a contract or a config. It does not merge the versions.
How to use it
- 1Paste the original text on the left and the changed text on the right, or upload two files.
- 2Choose the granularity: Lines for code and lists, Words for prose, Characters for very small edits.
- 3Optionally turn on Ignore case or Ignore whitespace.
- 4Press Compare (or Cmd/Ctrl+Enter). Additions are green, removals red; the counter shows how many lines, words or characters changed.
- 5Switch between Side by side, Inline and Unified views; copy the unified diff or a share link.
Options explained
- Lines / Words / Characters
- Lines treats each line as a unit and suits code, CSV and lists. Words highlights changed words inside a paragraph, the right choice for prose and contracts. Characters shows single-letter edits such as a typo fix or a changed digit.
- Ignore case
- Treats 'Invoice' and 'invoice' as the same. Use it when a text was re-cased but you want to see real wording changes only.
- Ignore whitespace
- Collapses runs of spaces and tabs and trims line ends before comparing, so re-indented code or a reflowed paragraph does not light up every line.
- Side by side
- Two columns with line numbers; changed lines are paired. Best for reviewing a document of any length. Collapse unchanged hides long identical stretches.
- Inline
- One flow of text with insertions and deletions marked in place. Best for word and character level changes in prose.
- Unified
- The standard patch format (--- / +++ / @@ hunks) used by git and code review tools. Copy it into a ticket or apply it with patch.
- Share link
- Encodes both texts into the URL fragment (after #), which browsers never send to a server. Anyone with the link sees the same comparison. Works for texts up to about 8 KB each.
Common problems and limits
Each side can be up to 2 MB of text. The comparison uses the Myers algorithm (via the jsdiff library), which is fast for ordinary documents; two very long texts with almost nothing in common take longer.
Side by side always compares whole lines. Choose Inline to see word or character changes within a line.
Moved blocks are shown as a removal in one place and an addition in another; the tool does not detect moves.
Share links hold the texts themselves, so they grow with the input and stop being practical beyond roughly 8 KB per side. For longer texts copy the unified diff instead.
Ignore whitespace changes how lines are compared but the displayed text is normalized too; copy the originals, not the view, if exact spacing matters.
Who uses it
- Writers and editors: See exactly what a co-author changed between two drafts when the document was not tracked.
- Developers: Compare two config files, log excerpts or SQL statements without opening an IDE, and copy the unified diff into a pull request comment.
- Legal and procurement: Check a returned contract against the version you sent, word by word.
- Ecommerce teams: Compare two product descriptions or two versions of a policy page before publishing.
- Recruiters: Spot what changed between two versions of a job description or a candidate's updated résumé text.
Frequently asked
How can I compare two texts?
Paste one in each panel above and press Compare. Choose Words for prose or Lines for code, and read the highlighted result side by side or inline. The counter tells you how much changed.
What does a diff checker do?
A diff checker finds the shortest set of insertions and deletions that turns one text into another and highlights them. It answers 'what changed?' without you reading both versions in full.
Is there a free online text compare tool?
This one is free, needs no account, and runs in your browser; there are no limits other than 2 MB per side.
Is this diff checker safe for confidential text?
The comparison itself happens on your device. Like the other text tools here, a copy of each run is saved to your past runs so you can reopen it; share links keep the texts in the URL fragment, which is not sent to our server. Do not paste secrets such as passwords or API keys. See the Privacy page for details.
Does Notepad++ do text compare?
Yes, through the Compare plugin (Plugins → Plugins Admin → Compare), which highlights differences between two open tabs. This page does the same without installing anything and adds word and character modes.
What is text comparison?
Text comparison is the process of finding differences between two pieces of text. Tools do it with diff algorithms; the output is a list of added, removed and unchanged segments at a chosen granularity (lines, words or characters).
What tool can I use to find differences between two files?
For two text files, upload them with the Upload file links above the panels. On the command line, diff a.txt b.txt or git diff --no-index a.txt b.txt give a unified diff; for two JSON files use the JSON Compare tool, which ignores key order.
What is a unified diff?
A unified diff is the patch format introduced by GNU diff -u and used by git. Lines starting with - were removed, + were added, and @@ headers give the line numbers of each hunk. Copy it from the Unified view here.
Automation: an MCP tool diff_text(a, b, mode) → unified_diff and an n8n node are planned (the diff output is text).