DFK Studio

Compare two texts

Compare two blocks of text and see exactly which lines were added, removed or changed. Runs in your browser — neither version is uploaded.

  • Free, no account
  • Nothing is uploaded
  • Runs in your browser

Original

Changed

How it works

  1. 1 What goes in Two versions of a text
  2. 2 It runs in your browser On your own device. Nothing is uploaded, there is no queue and no account, and it keeps working with the network switched off.
  3. 3 What comes back Every line that changed, marked

What it does

Paste both versions and get a line-by-line comparison: what was added, what was removed, and what stayed. Word-level highlighting shows what changed inside a line that was only edited.

This page does the work itself. Your text is handled by the browser and never sent anywhere — there is no server here to send it to.

Questions

How does it decide which lines match?

By longest common subsequence, the same idea git uses. It looks for the longest run of lines that appear in both texts in the same order, and everything outside that run is an addition or a removal. That is why moving a paragraph shows as a removal and an addition rather than as a move — a diff has no concept of a move.

Is it safe to compare a contract or a config file here?

The comparison happens in the page. There is no server here to receive either version, so load it once, disconnect from the network, and it still works. That is the only proof of the claim worth anything.

Why is a line marked changed rather than added and removed?

When a removal and an addition land next to each other and the two lines are more alike than not, they are shown as one changed line with the differing words highlighted. It is the same text either way; it is just far easier to read.

Every shelf