Skip to tool

Free text compare tool

Text Diff

See which words or lines changed.

Paste or open two versions and compare them word by word, line by line or by character. It also works as a diff checker for code, with ignore options, a copyable report and a .diff download.

Free, no sign-up. Compare by word or by line.

  • W/LWord or LineProse or code, one page
  • .diffSave the result.diff file or plain report
  • OnNot uploadedFiles open in this browser
Compare by

Paste, open or drop a text file.

/text-diff

How it works

Two sides, one result. The comparison updates as you type.

  1. 1

    Paste or open

    Paste each version, or open or drop a text file on each side.

  2. 2

    Pick Word or Line

    Word suits documents. Line suits code and config files.

  3. 3

    Set the options

    Ignore whitespace is on to start. Turn on Ignore case if capital letters should not count.

  4. 4

    Save it

    Copy a report, or download the result as a .diff file.

Frequently Asked Questions

How the comparison works and where your text goes.

How do I compare two texts online?

Paste or open the first version on the Original side and the second on the Modified side. The difference shows straight away, with no button to press.

Is my text uploaded?

No. Text you paste and files you open are compared by code that runs in your browser on this page, and they are not sent to NixRey.

What happened to the Diff Checker?

The Diff Checker is now the Line view on this page. Old /diff-checker links open here, and Line view compares line by line, as the Diff Checker did.

Should I use Word or Line?

Use Word for essays, emails and documents, where changes sit inside sentences. Use Line for code, config files and logs, where each line counts. Character marks single letters, which helps with typos and IDs.

What do the colours mean?

Green marks text that is only in the modified version. Red marks text that was removed.

Can I ignore spaces or capital letters?

Yes. Ignore whitespace is on to start. In Word view it skips changes in spacing between words, and in Line view it skips spaces at the start and end of each line. Character view compares every character, including spaces, so Ignore whitespace is turned off there. Turn on Ignore case to treat A and a as the same. Punctuation changes are always marked.

Which files can I open?

Plain text and code files, such as .txt, .md, .log, .csv, .json, .xml, .yaml, .html, .css, .js, .ts, .py, .sql, .diff and .patch. They are read in your browser on this page and are not uploaded.

How do I save the result?

Copy report puts a plain text summary on your clipboard, with - and + marking removed and added lines. Download .diff saves the changes as a unified diff file.

What if the texts are the same?

You see "The texts are identical." If Ignore whitespace or Ignore case is on, the message says so, and the counts are zero.

Is there a size limit?

There is no fixed limit. Large texts are compared in the background, so the page stays usable while it works.