Text Diff

Compare two text blocks and highlight differences.

About Text Diff

Text Diff compares two blocks of plain text line by line and highlights additions in green and deletions in red, similar to a Git diff. It is useful for spotting changes in documents, comparing two versions of a config file, or reviewing edits made to a piece of writing. No tooling or command-line access required — just paste and compare.

Frequently Asked Questions

Is Text Diff free?

Yes, completely free. No signup, no account, no usage limits. Use it as much as you need.

Is my data secure?

All processing happens directly in your browser using JavaScript. Your data is never sent to any server, stored, or shared. It stays entirely on your device.

Does the diff ignore leading and trailing whitespace?

By default whitespace differences are shown. You can enable a "ignore whitespace" option to focus only on content changes.

Is there a size limit on the text I can compare?

The tool handles texts up to a few hundred kilobytes comfortably in-browser. Very large documents may be slower to diff.