Compare Text

Paste two texts and see a line-by-line diff — added, removed, and unchanged lines highlighted. Nothing leaves your browser.

+0 lines added, -0 lines removed

Diff

Paste text on both sides to see the difference.

A line-by-line diff, entirely in your browser

Paste an original and a changed version of any text — code, a contract, notes, a config file — and this tool highlights which lines were added, removed, or left unchanged. Comparison is line by line, not word or character by word or character, which keeps the result easy to scan for most everyday edits.

There is a live count of lines added and removed, and a one-click copy of the full diff so you can paste it elsewhere — into a code review comment, an email, or your notes.

Why your text stays on your device

Privacy here is structural, not a promise. There is no upload step because there is no server to upload to:

  • The comparison runs entirely in your browser.
  • The page is served as static files and makes no request with either text you paste.
  • The source is open and anyone can read it (MIT).
  • It works offline, which is only possible because nothing leaves the device.

If you want to check for yourself, open your browser's Network panel while comparing — no request carries your text. Read the source.

How to use it

  1. Paste the original

    Paste or type the starting version of your text into the Original box.

  2. Paste the changed version

    Paste or type the updated version into the Changed box. The diff updates as you type.

  3. Read the highlighted diff

    Added lines are marked with a leading + on a green background; removed lines with a leading - on a red, struck-through background; unchanged lines are left plain.

  4. Copy or clear

    Copy the full diff to your clipboard with one click, or clear both boxes to start over.

FAQ

Is my text uploaded anywhere?

No. The comparison runs entirely in your browser. There is no server component, so your text has no path off your device. The source is open and you can confirm this in your browser's Network panel.

Does it compare word by word or character by character?

No — this tool compares line by line only. A single changed word inside a long line shows the whole line as removed and re-added, rather than highlighting just that word. Word- and character-level diffing are a possible future addition, not part of this tool today.

Is there a size limit?

There's no hard limit. A very large text (roughly 5MB or more) shows a brief warning, since comparing and rendering that much text can take a moment and typing may feel less responsive — but the comparison still runs, entirely on your device.

Can I drop in a file instead of pasting?

Yes — drop a plain-text file (.txt, .md, .log, .csv) onto either box and its contents load into that side. This is a convenience on top of pasting or typing, not a requirement.

Does it work offline?

Yes. It is a PWA. After the first visit it is cached, so it works without a network connection. You can also install it to your home screen.

What counts as an 'added' or 'removed' line in the summary?

Each line present in the changed text but not at that point in the original counts as added; each line present in the original but not in the changed text counts as removed. Lines that appear in both, in the same order, are unchanged and don't count either way.