Text

Text Diff Checker

Compare two texts online for free. Highlight differences between two strings, files, or code snippets instantly.

About this tool

The Text Diff Checker compares two pieces of text and highlights all the differences between them. Additions are highlighted in green, deletions in red. Ideal for comparing code versions, proofreading documents, finding changes between configuration files, or checking what changed between two API responses. Works line-by-line for code and character-by-character for short strings.

How to use Diff Checker

  1. 1
    Paste original text: Enter the original (before) text in the left panel.
  2. 2
    Paste new text: Enter the modified (after) text in the right panel.
  3. 3
    View differences: Differences are highlighted automatically. Green = additions, red = deletions.

Frequently Asked Questions

What is a diff?

A diff (difference) shows exactly what changed between two versions of a text, highlighting additions, deletions, and modifications.

Can I compare code files?

Yes. Paste any code into both panels. The diff checker works with any plain text including code, JSON, XML, SQL, etc.

Is the comparison case-sensitive?

Yes, by default. Case differences will be shown as changes.

Related Tools