Compare Text
Compare two text versions privately in your browser. Review line changes, additions and removals with local draft recovery and no account.

Enter two versions, then choose Find Difference. Drafts are saved in this browser only.
Compare two drafts without uploading them
When a paragraph has been revised several times, it can be difficult to spot what changed by reading both versions separately. This page lines up the text you provide and marks unchanged lines, additions, removals and paired changes.
How the comparison is calculated
The tool splits each version into lines and matches them in sequence. A changed block pairs old and new lines where possible; unmatched old lines count as removed and unmatched new lines count as added. The totals are line-based, not a word-by-word judgement of meaning.
Review the three views
- Original: shows the first version with removed and changed lines marked.
- Split: places the two versions side by side.
- Changed: shows the revised version with additions and changes marked.
Ignore whitespace can treat spacing-only differences as equivalent. Case sensitivity controls whether uppercase and lowercase letters are considered different. The comparison is designed for ordinary text drafts; it does not preserve rich formatting, comments or document metadata.
Privacy and local recovery
Comparison happens in the browser. The two text boxes and selected comparison settings are saved in this browser's localStorage to help recover a draft after a reload. Do not use local browser storage on a shared device for text you do not want the next device user to see; use Clear when finished.
What does the Compare Text tool count? It compares lines in two text versions and reports unchanged lines, paired changes, additions and removals. It is a practical review aid, not a semantic or document-format comparison.
Does the comparison send my text anywhere? No. The comparison runs in this browser. Draft recovery uses localStorage on this device; clearing the drafts removes that saved comparison.
What does Ignore whitespace do? When enabled, runs of whitespace are normalized before matching. A line that differs only by spaces or tabs can therefore be treated as unchanged.
What is the difference between Changed, Added and Removed? Changed counts paired old and new lines in a changed block. Added counts extra new lines, Removed counts extra old lines, and Unchanged counts matched lines.
Can it compare Word or PDF files? No. This page compares text you paste or type. Copy text out of a document first if you want to compare its wording.
Understand what a line comparison shows
A text comparison is a way to inspect change between two versions, not a judgement about which version is better. The tool splits the two drafts into lines and calculates a sequence of matching lines so it can show unchanged, added and removed material. Where a removed line and an added line occur together, the display can pair them as a changed line. This makes revisions easier to scan, but it does not understand the meaning of a sentence or know whether a change improves accuracy.
The ignore-whitespace option normalises runs of whitespace before matching, and the case-sensitivity option determines whether letter case affects the comparison. These settings can reduce noise when formatting changes are not the focus. They can also hide differences that matter. In code, case can change an identifier; in poetry, line breaks and spacing can be meaningful; in legal text, a seemingly small punctuation or whitespace change may alter interpretation. Choose the comparison settings based on the document's purpose.
Review the change in context
A useful review begins with the reason for the revision. If the goal was to correct a typo, look for the exact correction and confirm that no nearby words disappeared. If the goal was to shorten a policy or instruction, check that exceptions, dates, amounts and conditions remain. If the goal was to update code or configuration, review the changed lines in the context of the surrounding logic and test the result in the relevant environment. A diff is a map of edits, not a substitute for testing.
Version-control systems use diffs to help people review changes over time. Git's documentation describes diff output as a way to show changes between data sources such as commits, working trees and files. The comparison page follows the same general idea at a simpler text level. It does not track authors, record a chain of approvals or preserve a formal audit trail. Keep versioned copies of important documents and use the system required by your organisation when accountability matters.
Microsoft Word also provides a compare-and-merge workflow for document versions. That can be more appropriate when the document contains formatting, comments, tracked changes or other word-processing structure that a plain-text comparison cannot represent. Use this browser tool for quick text review; use the native application when the document's layout and revision metadata are part of the review.
Privacy, local drafts and practical limits
The page saves the two draft fields and comparison settings in local browser storage so a draft can be restored in the same browser. MDN explains that localStorage stores data associated with a site's origin and can persist between browser sessions. This is convenient, but it is not encrypted document management or cloud backup. Someone with access to the same browser profile may be able to access locally stored data, and private browsing or browser settings can change storage behaviour.
The algorithm has a practical size limit because it builds a comparison table from the two line sequences. Very large inputs can exceed the page's stated matrix limit, in which case the tool asks you to compare shorter sections. Divide a long document by chapter, heading or logical unit and compare each section separately. That makes the output easier to inspect and reduces the chance that a single large reformatting change obscures the edits you actually need to review.
The general purpose of a diff is described in the Git diff documentation; Microsoft explains a document-oriented alternative in its Word compare-and-merge guidance. The local recovery feature uses browser storage described by MDN’s localStorage reference.
Further reading: Git documentation — git diff; Microsoft Support — Compare document versions; MDN — Window.localStorage.