Skip to content
PocketDesk
Your files are processed on your device, never uploaded

Text diff checker

Paste an old and a new version to see what changed. Both stay on your device.

  • Runs in your browser
  • No sign-up
Result

How to compare two texts

  1. Paste the original text into Original text.
  2. Paste the changed text into Second text.
  3. Choose Compare by lines or words.
  4. Read the coloured view under the result. Green is added, red with a strike is removed. The tiles show the totals.

How the comparison works

The checker finds the smallest set of changes that turns the first text into the second. In lines mode, each line is either unchanged, removed or added. A line you edited shows up as one removed line and one added line, which is the standard way diffs are shown in code review.

In words mode, the comparison goes inside lines and keeps spaces, so a single changed word in a long paragraph is easy to spot. The plain output uses [-old-] and {+new+} markers, so the result still makes sense when you paste it into an email or a chat.

The Result tile says Identical when nothing differs. Line endings are normalized first, so a Windows file and a Mac file with the same lines compare as the same.

Tips

  • Comparing contract or essay drafts? Use words mode. For code, lists and settings, use lines mode.
  • If the whole text shows as changed, check spacing. Try Ignore whitespace, or remove extra spaces from both sides first.
  • Sort both lists with sort lines before comparing, so order differences do not hide real changes.
  • To see how much longer one version is, count it with the word counter.

Good to know

A diff shows differences, not meaning. Moving a paragraph shows as a removal in one place and an addition in another. If you only care about added or missing items, sort both lists first. Very large texts take longer to compare, because the tool looks for the shortest list of edits. They are handled in a background process, so the page stays usable.

Privacy

Both texts stay on your device. Nothing is uploaded, stored on a server, or placed in the page address. The coloured view is built from escaped text, so pasted markup is shown as text and never run.

Questions

What do the markers mean?

In line mode, + marks a line added in the second text, - marks a line removed from the first, and a plain indent means the line is unchanged. In word mode, [-removed-] and {+added+} appear inline.

What is the difference between lines and words mode?

Lines mode compares whole lines and is best for code, lists and configuration. Words mode finds small edits inside a paragraph.

Can I ignore spacing differences?

Yes. Turn on Ignore whitespace in lines mode to skip changes in spacing. Ignore case treats capital and small letters as equal.

Can I save the result?

Yes. Copy it or use Download to save it as a plain text file with the markers.

Is my text uploaded?

No. Both texts are compared in your browser, and neither leaves your device.

More text tools