Rates TodayNIFTY25,291.1+0.98%SENSEX82,104.8+1.23%Gold 24K ₹12,469.05/g down19.59Silver ₹152.90/g down3.38
InsightforGeeks

Text Diff Checker (Compare Two Texts)

Paste two versions of a text, a config file or some code and see exactly what changed, line by line and word by word. Choose a side-by-side or unified view, ignore whitespace or letter case, and copy the result as a standard patch. The comparison happens in your browser and nothing is uploaded.

How to use it

  1. Paste the original text on the left and the changed text on the right, or press “Load sample”.
  2. Read the highlighted result. Red is removed, green is added, and changed lines show which words differ.
  3. Use the options to ignore whitespace or case, hide unchanged lines or switch to the unified view.
  4. Copy the patch or download it as a .diff file.

Frequently asked questions

What does the checker compare?

It compares the two texts line by line using a standard difference algorithm, then looks inside changed lines to highlight the words or characters that differ. Line endings (Windows or Unix) are treated as equal.

What does “ignore whitespace” do?

It treats lines as equal when they differ only in leading or trailing spaces, or in how many spaces sit between words. This is useful when code was re-indented.

What is the patch for?

It is the changes in unified diff format, the same format Git and the patch tool use. You can paste it into a code review, a ticket or a message, or apply it with git apply or patch.

Is there a size limit?

Each text can be up to 500,000 characters. Large comparisons show the first 1,500 rows at once, and you can turn on “Only show changes” to hide unchanged stretches.

Can it compare files?

Paste or open the text of the files. It works on text, so it is not meant for binary files such as images or PDFs.

Related tools

These tools run entirely in your browser and are provided free, without warranty. Check important results before using them in production.