How to Compare Two Texts with an Online Diff Checker and Read the Differences
Updated
Paste the original text into the left block and the modified text into the right block on textcompare.org, then click Compare. The tool shows both versions side by side and highlights deleted strings in red and added strings in green, along with a count of lines added and deleted. This works for plain text and code, requires no installation, and runs on any modern browser on Windows, Mac, or Linux.
Step-by-step: run a comparison
- Open the Online Text Compare Tool in your browser.
- Put the original version in the left pane. You can paste it, or use Choose Original File to load a file.
- Put the modified version in the right pane, either pasted or via Choose Modified File.
- Set the Language selector to Plaintext or the relevant code language so syntax highlighting matches your content.
- Click Compare to generate the side-by-side diff view.
- Check the result: red marks deleted strings, green marks added strings, and the tool reports how many lines were added and deleted.
If you want to start over, use Clear; Swap exchanges the two panes, which is useful when you pasted the versions in the wrong order. A Sample option lets you try the tool before using your own text.
How to read the diff view
The comparison is line-oriented and color-coded:
| Color | Meaning |
|---|---|
| Red | Text present in the original but removed in the modified version |
| Green | Text added in the modified version |
| Unhighlighted | Text identical in both versions |
Use the arrows in the bottom-right corner of the diff view to jump from one difference to the next instead of scrolling through long files. The added/deleted line counts give a quick sense of how large the change is before you review details.
Reduce noise with display and ignore options
Small formatting differences can make a diff look busier than the actual content change. The tool offers options such as trim whitespace, render side by side, and word wrap. Trimming whitespace is the one to reach for when indentation or trailing spaces changed but the wording did not; it keeps the diff focused on real edits.
Two more features help with longer or messier files:
- Search finds every occurrence of a string, which is handy when you want to check whether a term was changed consistently.
- Beautify / Format Document reformats minified or badly indented code. Right-click the pane you want to format and choose Format Document, or click the Format button. This matters when comparing code copied from websites that minify their files, since formatting both sides first makes the structural diff readable.
Save, share, and privacy
The tool processes everything in your browser, so nothing is stored on the server unless you explicitly choose to save. That default matters if you are comparing configuration files, drafts, or anything containing internal details.
When you do want to share results, you have two paths with different privacy implications:
- PDF export saves the diff view as a file you can send privately.
- Public share saves the diff online and gives you a URL. Anyone with that link can view the comparison, so treat it as public. Saved data is described as encrypted and sent over a 128-bit SSL/TLS connection, but the share link itself is still accessible to whoever holds it.
There is no stated limit on the number of comparisons, so you can run as many as you need.
Common snags
- The diff is full of whitespace changes. Enable trim whitespace before comparing, or format both panes first if the content is code.
- Minified code produces one giant changed line. Use Format Document on each pane, then compare again.
- You pasted the versions backwards. Click Swap rather than re-pasting.
- You need to find a specific change in a long file. Use the navigation arrows or the search box instead of scanning manually.
- You are unsure whether your text left your machine. By default it does not; only saving to share online sends the diff to the server.