100% private • Runs in your browser • No server upload

Text Diff

Free online text diff tool. Paste two texts and instantly see added, deleted, and modified lines with character-level highlighting. Supports side-by-side and unified views, word wrap, line numbers, and export. 100% private — runs in your browser.

What this Text Diff tool does

This free text comparison tool lets you paste two texts and instantly see every difference — added lines, deleted lines, and modified lines with character-level highlighting. Switch between side-by-side and unified views, toggle word wrap and line numbers, and export the diff. All processing happens in your browser with zero data uploaded to any server.

How to use this Text Diff tool

  1. 1.Paste your text into Text A and Text B, or upload files directly.
  2. 2.View differences instantly — added, deleted, and modified lines are highlighted.
  3. 3.Switch between side-by-side and unified views. Use search to find specific changes.
  4. 4.Copy the diff to clipboard or download it as a text file.

Frequently asked questions

Is my data private?

Yes. All comparison happens entirely in your browser. No data is ever sent to a server.

What file types are supported?

You can paste any text or upload files like .txt, .md, .json, .csv, .log, .js, .ts, .html, .css, .xml, .yaml, and .yml.

What is character-level diff?

For modified lines, the tool highlights exactly which characters changed within the line, making small edits easy to spot.

Can I ignore whitespace or case?

Yes. Toggle 'Ignore Whitespace' and 'Ignore Case' options to control comparison sensitivity.

Is there a size limit?

The tool handles large texts efficiently. For very large files (100k+ lines), performance may vary by browser.