Text Diff

Compare two texts side by side and see exactly what was added, removed or changed — line by line.

How to use

  1. Paste the original text on the left and the modified text on the right.
  2. The diff appears below as you type: green lines were added, red lines were removed, and unmarked lines are unchanged.
  3. Use it to review changes before committing, compare contract versions, or spot what someone edited in a document.

About this tool

A diff shows what changed between two versions of a text, and only what changed. It is the view a programmer sees before every commit, the view a lawyer sees when comparing contract drafts, and the view an editor sees when reviewing a revision. The original goes on the left, the modified goes on the right, and the tool marks what was added and what was removed.

This is a line-by-line comparison: it tells you which lines are new, which are gone, and which are the same. For most practical purposes — reviewing a code change, catching an edit in a legal clause, checking what moved in a configuration file — that is the right granularity. Character-level diffs exist but are harder to read on real documents.

Both texts stay in your browser. No server sees them, no copy is stored, and the page works offline once loaded. Paste production logs, credentials, patient records or contract text — the comparison happens on your device and nowhere else.

Frequently asked questions

Does my text leave my browser?

No. The comparison runs entirely in JavaScript on your device.

Is it word-level or line-level?

Line-level. Each line is compared as a unit: if any character in the line changed, the whole line is marked.

Can I use it for code?

Yes. Paste the old version on the left and the new version on the right. The output is similar to git diff, without the unified format.

Is there a size limit?

No hard limit. Very large texts (tens of thousands of lines) may slow the browser, but normal documents compare instantly.

Does it handle different line endings?

It splits on newlines, so Windows (CRLF) and Unix (LF) line endings both work.

Related tools

Long links? Shorten them for free

Vai.la turns any URL into a short link with click statistics, QR Code and your own biolink.

Vai.la is not responsible for how the tools are used or for decisions made based on their results.