Text Compare
About this tool
About Text Compare
For prose, a line-by-line diff isn't much help: change one word in a long paragraph and the whole paragraph is flagged. Text Compare works word by word instead, so an edited essay, a revised contract clause, a rewritten product description or two translations of the same paragraph show precisely which words were removed (struck through in red) and which were added (in green), in the flow of the text. Ignore case to skip capitalisation changes, and ignore whitespace so doubled spaces and re-wrapped lines don't count as edits. The header counts what was added and removed. Need more detail? Switch to Characters to catch single-letter typos and changed digits, or to Lines with the side-by-side view for code and structured files, and download the changes as a standard .diff patch. Open .txt or .md files on either side or paste directly. Nothing is uploaded: both texts are compared on your own device, which matters for unpublished writing and confidential documents.
Built and maintained by Abhi JainUpdated
How to Compare Two Texts Word by Word
- 1
Paste both versions
Put the earlier text in Original and the revised text in Changed, or click Open to load files.
- 2
Keep Words selected
Compare by is set to Words; switch to Characters for typos or Lines for code.
- 3
Ignore noise
Tick Ignore case or Ignore whitespace if formatting changes don't matter.
- 4
Read the changes
Removed words are struck through in red and added words are green in the Differences panel.
Text Compare: questions and answers
How can I compare two documents for differences?
Copy the text of each document into the two panels, or open .txt and .md files directly. For Word or PDF files, extract the text first, for example with PDF to Text, then compare. To compare the text of two PDFs directly, use Compare PDF Text.
What is the difference between comparing by words and by lines?
Line mode marks whole lines as changed, which suits code. Word mode marks only the words that differ inside the text, which suits paragraphs where a line can hold many sentences.
Does it detect moved paragraphs?
A moved block shows as deleted in its old position and added in its new one. Diff algorithms find the smallest set of insertions and deletions; they don't track moves.
Is my text private?
Yes. The comparison runs entirely in your browser and nothing is sent to a server or stored.
More Diff Checker presets
Related tools
- Compare PDF TextCompare two PDFs word by word and see every added and removed word, free and offline.
- Compare PDFsCompare two PDFs with AI: key differences, changed terms and numbers, side by side.
- JSON FormatterBeautify, minify and validate JSON with exact error locations, without changing a single value.
- Whitespace Visualizer & CleanerReveal tabs, NBSP, zero-width characters and mixed line endings, then clean them.
- Regex TesterTest JavaScript regular expressions live with highlighted matches, capture groups, replace preview and plain-English errors.