← utilities

Online Text Compare Tool

Compare two text files or snippets side-by-side locally in your browser.

.txt .md .json .csv

.txt .md .json .csv

Paste or drop text on both sides. Nothing is uploaded.

100% Client-Side Processing

What Online Text Compare is

Put the older copy in Original and the newer copy in Changed. Paste, type, or upload .txt, .md, .json, or .csv. Uploads are read with FileReader in this tab. The page draws a line diff, not a word-processor markup. Binary files will not read cleanly. Nothing is posted to social-hub.io.

Ignore whitespace, Case insensitive, and Trim lines are optional checks. Side-by-side view splits the result. On a phone, Split and Unified change how the two panes sit; Original and Changed tabs pick which box you are editing. Copy unified diff and Download .diff export the same patch-style text. Each side is trimmed at 8,000 lines. A note appears if a side was cut. The empty state asks you to paste or drop text on both sides before any rows are drawn.

How to use it

  1. Load Original and Changed. Paste, type, or upload a text file on each side.
  2. Tick Ignore whitespace, Case insensitive, or Trim lines if those should not count as a change.
  3. Turn on Side-by-side view if you want the result in two columns.
  4. On a phone, use Split or Unified, then the Original / Changed tabs if you need one pane at a time.
  5. Copy unified diff, or download a .diff file. Clear a side if you want a fresh compare.

Common uses

Check two drafts of a README. Diff a CSV export against last week. See what a colleague changed in a config. Compare a minified JSON line to a pretty copy after you format it. Spot a silent whitespace-only edit by leaving Ignore whitespace off, or hide those edits when you only care about words. Confirm a changelog matches the file. The tool is a line scan. It will not merge conflicts, it will not open a git repo, and it will not decode a spreadsheet or an image. Keep both sources as text if you want a clean result. If a file is huge, expect the 8,000 line cap to drop the tail.

Privacy

Neither side is uploaded. There is no saved pair and no share link. Close the tab or refresh and both panes are empty. We never see the files you drop.