Compare Two Texts Online: Side-by-Side Diff Checker
Paste two versions and see what was added, removed or changed, highlighted by word or character, side by side or unified. Runs in your browser.
Updated November 2026
Reviewed by Rafael Duarte
Paste text in both panels above to compare
Supports plain text, code, contracts, or any document
How to compare two texts online
Paste two versions, see what was added, removed or changed
1. Paste the original text
In the Original panel: two drafts of an essay, a contract clause, an email, a config file or any plain text. There's no file upload, so open the file, copy and paste.
2. Paste the updated version
In the Modified panel. The comparison updates as you type, and the badges show how many diffs, added lines and removed lines there are.
3. Step through the changes
Use Prev / Next, or Alt+↓ / Alt+↑ (these work even while typing in a panel). Click Copy or Download to take the result with you.
What this text compare tool does
Line-by-line comparison with word and character highlighting
Line comparison, word or character highlighting
The texts are always matched line by line. Mode (Line, Word or Char, Word by default) decides what gets highlighted inside a changed line: nothing extra, the words that changed, or the exact characters. That inner highlighting shows in the Split view.
Split or unified view
Split puts the two versions side by side. Unified lists removed and added lines one after another with -/+, in the style of git diff, showing changed lines whole, without word highlighting.
Whitespace and case options
Ignore Whitespace (on by default) treats runs of spaces and tabs as one and ignores leading and trailing spaces, but an extra blank line still counts as a change. Case Sensitive is off by default.
100% in your browser
The comparison runs on your device and the text isn't sent to any server, which suits private drafts, contracts and proprietary code.
Which Mode to pick
The comparison is always by line; Mode only changes the highlighting inside changed lines in Split view
30 days → 45 days lights up only 30 and 45. Good for prose and contractscolor → colour lights up only the u. Good for typos and punctuationgit diff-, then added line with +, both shown wholeWhen you'll reach for this
The most common scenarios among people who use this tool
Code review
Compare two versions of a function or config file before merging a pull request.
Contract comparison
Catch edits between two drafts of a contract without rereading both versions side by side yourself.
Editorial workflow
See exactly which words an editor changed, without relying on track changes.
Translation QA
Source on the left, translation on the right, to spot missing sections or drift from the original.
Common mistake? Start here
Looking for word highlights in Unified view
Word and Char highlighting only appear in Split view. In Unified, a changed line shows up whole, once as removed and once as added. Switch to Split to see exactly which words changed.
Pasting a paragraph as one long line
The texts are compared line by line, so a whole paragraph with no line breaks becomes a single changed line. Keep Mode on Word to see the edited words inside it, or break long text into lines before pasting.
Pressing Shift+Enter inside a panel
Shift+Enter copies the diff only when the cursor isn't in one of the text panels; inside a panel it just adds a new line. Click Copy instead, or click outside the panels first.
Expecting plagiarism detection
This tool only compares the two texts you provide. It doesn't search the web or academic databases.
Why use this diff checker
It matches the lines of the two versions with a longest common subsequence (LCS) table, the same problem diff solves, so a line inserted at the top doesn't make everything below it look changed. On very large inputs (over 2,000 lines in the changed section) it switches to patience-style anchors on lines that appear only once in each version, to stay fast.
It runs entirely in your browser: nothing you paste is sent to a server, so it works for private drafts, contracts and proprietary code.
For a walkthrough of when a diff helps and how to read one, see How to compare two texts with a diff checker.
Split view vs. unified view
Two ways to read the same diff
git diffFrequently asked questions
A diff checker compares two versions of a text and shows every difference in a color-coded view, with additions, deletions, and changes clearly marked. Use it any time you need to answer "what actually changed?" between two versions of a document, a contract, or a block of code.
Yes. The comparison runs entirely in your browser via JavaScript. Your text is never uploaded, stored, or logged on a server, which makes it safe for proprietary code and confidential contracts.
None of them changes how the texts are matched: the comparison is always line by line. The mode only decides the highlighting inside a changed line in Split view. Word marks the words that changed, Char marks the exact characters, and Line marks the whole line with no inner highlight, the way git diff shows it.
Yes, with any language: Python, JavaScript, CSS, SQL, YAML, JSON, Go and more. For a strict comparison, turn off Ignore Whitespace (so indentation changes count) and turn on Case Sensitive. Line mode with the Unified view reads closest to git diff.
Not quite. Copy follows the Split view: each removed line is followed by the line that replaced it, prefixed with - and + . Download saves diff.txt in the Unified order: all the removed lines of a change first, then all the added ones. Unchanged lines are included in both.
It can identify identical or similar passages between the two documents you provide, but it doesn't search the web or academic databases. For broader plagiarism detection, a dedicated plagiarism checker is the better tool for the job.
There's no file upload. Open each document, copy its text and paste it into the two panels; the tool then compares the plain text. Formatting (bold, fonts, layout) isn't compared. When formatting matters too, use a document-comparison tool that reads the file format directly.
References
Related Tools
- XML Formatter & Validator: Pretty Print, Tree, XPath Developer Paste XML to pretty print or minify it, spot the line with the error, browse it as a tree, run XPath queries, diff two files or convert to JSON.
- ASCII Table Generator: Plain-Text & Markdown Tables Developer Turn CSV or typed data into a plain-text table: MySQL, Unicode box, rounded, double-line, Markdown, RST or minimal style. Copy it or download as .txt.
- Base64 Decode Online — Free Base64 to Text Decoder Developer Free online Base64 decoder — decode Base64 strings back to plain text instantly in your browser. Validates input and shows decoded payload size.
- Base64 Encoder: Encode Text, PDF & Files Online Developer Encode UTF-8 text or any file (PDF, DOCX, XLSX, ZIP up to 50 MB) to Base64 or Base64URL. Runs in your browser, nothing is uploaded. Free, no sign-up.
- Base64 to Image Online: Preview and Save PNG, JPG, GIF Developer Paste raw Base64 or a data:image URL to preview the image with its type, dimensions and size, then save the original file. No upload, runs in your browser.