Tools
English

Neogie Diff · Text and writing

Text Compare: find the differences between two texts

Paste your text and the one to compare it with: the differences show up at once, line by line and word by word.

Words
0
Characters
0
Without spaces
0
Sentences
0
Paragraphs
0
Reading time
0
Speaking time
0

No action yet: every transformation can be undone.

Everything happens in your browser: nothing you type is sent.

How do you compare two texts?

Paste the new version into the main box and the old one into “Other text”, or open a file for each. The comparison follows your typing: added lines are marked “+”, removed lines “−” and changed lines “~”. Inside a changed line, the words or characters that differ are highlighted. The arrow buttons take you from one difference to the next. With “the original text”, you see what your transformations (cleanup, case…) have changed.

Side by side or unified view

The side-by-side view puts both versions face to face, which is handy on a wide screen to proofread a contract, an article or a translation. The unified view shows a single column, old lines followed by new ones: it suits phones and source code better. On a long document, hide the unchanged lines to keep only the affected passages and their surroundings.

Ignoring case, spaces or blank lines

  • Case: “Hello” and “hello” are treated as equal.
  • Extra spaces: leading and trailing blanks are ignored, and a run of spaces or tabs counts as a single one.
  • Blank lines: added or removed empty lines no longer count.
  • Windows (CRLF) and Unix (LF) line endings are always treated as identical.

Exporting a unified diff patch

You can copy or download the result in unified diff format, the one read by the patch and git apply commands and by most code editors. Each block gives the line numbers and keeps three lines of context.

Frequently asked questions

Are my texts sent to a server?

No. The comparison runs entirely in your browser; texts and files are never sent. The main text is kept in this browser so you find it again when you come back (the Clear button removes it), along with your view and comparison settings.

Which files can I compare?

Text files up to 5 MB: code, CSV, Markdown, subtitles, logs and so on. Word and PDF documents are not read: copy their text and paste it.

Does the tool cope with long documents?

It is designed for texts of around ten thousand lines. Beyond that, or with very long lines, the limit depends on your device and the detail inside lines may be simplified.

How does a moved paragraph show up?

As a removal at its old position and an addition at the new one. The tool does not detect moves as such.

Why are two lines that look the same reported as different?

They often contain a discreet character: a trailing space, a tab, a non-breaking space, a curly apostrophe or an accent encoded differently. The character-level highlighting helps you spot it.

Similar tools