Text Compare
Compare two texts with line, word, or character diff. Inline or side-by-side view. Ignore case, whitespace, trim. Swap texts. Statistics.
- 100% Free
- Files stay private
- Works in your browser
Word level is best for prose, line level for code or lists, character level for the finest detail. Everything is diffed live in your browser. Your text never leaves your device.
How it works
Paste both versions
Paste the earlier version into Original text and the changed one into Modified text. Results appear once both boxes have text.
Choose how to compare
Set Compare by to Line, Word or Character, choose Inline or Side by side, and use options like Ignore case or Ignore extra spaces.
Read the differences
Removed and Added parts are highlighted under Differences, with a Similarity percentage. Press Copy diff or Download for a text version.
Paste two versions of any text and see exactly what changed (added, removed, and unchanged), highlighted line by line, word by word, or character by character. Everything runs live in your browser.
What is Text Compare?
Text Compare is a free diff tool that lines up two blocks of text and pinpoints every difference between them. It uses a longest-common-subsequence algorithm to classify each token as unchanged, added, or removed, then reports a similarity percentage alongside per-side line, word, and character counts. It matters because eyeballing two near-identical documents is slow and error-prone, while a proper diff makes the smallest change jump out instantly.
Who Benefits from This Tool
- Writers and editors: compare draft revisions to see precisely which sentences were reworked.
- Developers: diff snippets, config files, or JSON payloads without opening an IDE.
- Students and researchers: check how a document changed between submissions or citations.
- Legal and compliance teams: spot altered clauses between two contract versions.
- SEO and content teams: confirm which lines of a page or meta description actually changed.
- Translators: verify that only the intended segments were updated across a file.
Key Features
- Three comparison levels: diff by line, word, or character to match the granularity you need.
- Inline or side-by-side view: read a unified stream or two aligned columns.
- Similarity score: a live percentage with a colour-coded bar summarising how alike the texts are.
- Normalisation options: ignore case, ignore extra spaces, and trim lines before comparing.
- Detailed counts: additions, deletions, unchanged tokens, plus line, word, and character totals per side.
- Swap and reset: flip the two inputs in one click or clear everything to start over.
- Copy or download: export a plain-text unified diff for sharing or record-keeping.
How to Use
- Paste or type the original text into the left box and the modified text into the right box.
- Choose a comparison level (line, word, or character) from the "Compare by" menu.
- Pick inline or side-by-side view, and toggle ignore case, ignore extra spaces, or trim lines as needed.
- Read the highlighted differences and the similarity summary, which update instantly.
- Copy the unified diff or download it as a .txt file if you want a copy.
Common Use Cases
- Reviewing two drafts of an article to see what an editor changed.
- Comparing a proposed code change against the current version before committing.
- Checking whether two lists of URLs, keywords, or SKUs match.
- Verifying that a copied-and-pasted block wasn't accidentally altered.
- Auditing edits to terms, policies, or documentation between releases.
Tips and Best Practices
- Use line level for code and lists, word level for prose, and character level for the finest detail.
- Enable "ignore extra spaces" when comparing text pasted from different sources with inconsistent spacing.
- Turn on "ignore case" when capitalisation differences are cosmetic and shouldn't count as changes.
- Switch to side-by-side view for long documents so you can read each version in its own column.
- Keep "trim lines" on to avoid trailing-space differences masking the real edits.
- Use the swap button to reverse which side is treated as the original when the comparison feels inverted.
Limitations and Notes
Everything is diffed entirely in your browser. Your text is never uploaded or stored. The similarity percentage is a token-level statistic, not a measure of meaning, so paraphrased sentences may still register as heavily changed. Extremely large inputs fall back to a simpler comparison to keep the page responsive. The tool detects differences in the text you provide; it does not judge which version is correct.
FAQs
Line comparison treats each line as a single unit, word comparison breaks the text into words, and character comparison inspects every character. Choose finer levels when you need to see small edits within a line.
No. All processing happens locally in your browser using JavaScript, so nothing you paste leaves your device.
It is the share of tokens that are unchanged out of the total added, removed, and unchanged tokens at your chosen comparison level.
Yes. Line-level comparison works well for code and structured lists, while word-level suits ordinary writing.
Ignore case treats uppercase and lowercase as identical, and trim lines removes leading and trailing spaces from each line before comparing, so cosmetic whitespace doesn't show up as a difference.
Yes. You can copy the unified diff to your clipboard or download it as a plain-text file.