Skip to the content

Contact usFree tools · No signup · Files stay on your device

Text Tools

Text Diff Checker: the complete guide to comparing two texts

Text Diff Checker: the complete guide to comparing two texts

A text diff checker puts two versions of a text side by side and marks exactly what changed: what was added, what was removed and which words were edited inside a line. Our free Text Diff Checker does this as you type, with options to ignore case and spaces, to fold away the parts that did not change, and to export the result as a standard .diff file. It suits writers, editors, students, developers and anyone who has two versions of a document and no idea which is newer.

This guide covers every control, how to read the result, what the tool cannot see, and how to handle large inputs. For a step-by-step walk through a real document, see how to compare two versions of a document.

What Text Diff Checker does

The tool splits both texts into lines, finds the smallest set of added and removed lines that turns the first text into the second, and then looks inside lines that were edited to mark the words that changed. It uses Myers' algorithm, a classic one that many diff tools, Git among them, are built on, so the result is the familiar kind.

It compares lines, then words. It does not understand meaning, formatting, tables or pictures, and it does not detect moved lines. If you move a paragraph, you will see it removed in one place and added in another.

How to use Text Diff Checker, step by step

  1. Open Text Diff Checker.
  2. Paste the older text into "Original text" (left) and the newer text into "Changed text" (right). You can also press Open file above either box to load a text file.
  3. Read the Differences panel. It updates about 0.2 seconds after you stop typing.
  4. Tick Ignore case, Ignore spaces or Only show changes if you need them.
  5. Press Copy diff or Download .diff to keep the result.

If you just want to see how it behaves, press Try an example. It loads two short versions of an order email, and the Differences panel shows 1 added, 0 removed, 2 changed and 2 unchanged.

How to read the result

Above the table, four small badges give the totals: added, removed, changed and unchanged lines. Below, each row has line numbers and text.

  • Added lines are green and appear only on the right.
  • Removed lines are red and appear only on the left.
  • Changed lines exist on both sides. The words that differ are highlighted inside them.
  • Unchanged lines are plain.

Here is the example. The original says "Your order #1042 has shipped." and the new version says "Your order #1042 has been shipped today." The tool does not make you compare the sentences yourself: it highlights "been " and " today" on the right. In the next line, "5 days" and "3 days" differ only by one number, so only the 5 and the 3 are highlighted. The line "Track it from your account." exists only in the new version, so it is added.

Side by side or one column

Above the table, the View switch has Side by side and One column. Side by side is best on a wide screen. One column prints the old line (marked −) directly above the new one (marked +), with both line numbers, which suits a narrow screen and is closer to what you see in code review.

Every option explained

Ignore case

Treats "Order" and "order" as the same. Use it when you want to find real wording changes in a text that was re-typed or auto-capitalised. The text on screen keeps its original capitals, so you can still see them.

Ignore spaces

Treats any run of spaces or tabs as one space and ignores spaces at the start and end of a line. It is the right setting when indentation or trailing spaces changed but the words did not. It does not remove a space that is missing, so "5%" and "5 %" are still different.

Only show changes

Hides long runs of unchanged lines. Three lines of context stay around each change, and each hidden run is replaced by a row such as "⋯ 12 unchanged lines". It is the fastest way to review a long document with a few edits.

Swap

Exchanges the two texts, so the original becomes the changed text and the other way round. Added lines turn into removed ones. Use it if you pasted them in the wrong order.

Clear and Try an example

Clear empties both boxes. Try an example appears only while both boxes are empty.

Copy diff and Download .diff

These two buttons appear once the texts are different. They give you the result as a unified diff, the standard text format for changes. It starts with --- original and +++ changed, then one block for each group of changes, headed by a line such as @@ -1,4 +1,5 @@. Lines starting with - were removed and lines starting with + were added, with three unchanged lines around each change. It is easy to paste into an email, a ticket or a chat. The downloaded file is called changes.diff, and the site adds its "Tech Solution Point - " prefix to it.

What it accepts and its limits

  • Input: any text, pasted or opened. Open file lets you choose .txt, .md, .csv, .json, .xml, .html, .css, .js, .ts, .log, .ini, .yml, .yaml or other plain text. It replaces what is in that box.
  • Not accepted: Word, Excel and PDF files. They are not plain text, so opening one would give you unreadable characters. Copy their text instead.
  • Line endings: Windows, Mac and Linux line endings are treated as the same, and a single line break at the very end of a text is ignored.
  • Large results: only the first 1,500 rows are drawn at once. If there are more, a button says "Show all … rows".
  • Extremely different texts: if two long texts differ by more than about 3,000 added and removed lines, the tool stops searching for the best match and lines the texts up in order, so nearly everything shows as changed. This is a safety limit to keep the page responsive.

Privacy

Everything happens in your browser. The text you paste and the files you open are read locally and never uploaded, so comparing a private contract draft or a config file is safe. The page makes no network request when you compare.

Tips to work faster

  • Compare data files after normalising them. For JSON, beautify both and tick Sort keys A→Z in the JSON Formatter first, so reordered keys do not appear as changes.
  • For a Word document, run it through Word to Text first, or copy and paste the text. Then both versions are plain text with the same layout.
  • If you only care about wording, tick Ignore case and Ignore spaces together.
  • Use Only show changes on long texts, and untick it again when you want to see the surroundings.
  • After a find-and-replace across a document, use the diff to check that nothing else changed. If the replace changed capital letters, the Case Converter can bring them back.

Common problems and how to fix them

Almost every line shows as changed

The cause is usually different line breaks. One version may have a line break after every sentence or every 80 characters, and the other a single long line per paragraph. The tool compares lines, so reflowed text looks completely different. Make both versions wrap the same way before comparing, or use the same source for both.

A new line next to an edited one

Inside a block of changes, the tool first lines up the removed and added lines that look alike (they share most of their words), shows those as "changed", and treats the lines left over as plainly removed or added. So if you edited a line and also added a new line just before it, the edited line shows as "changed" and the new line as "added". Lines that are completely different from each other are still paired in order. When a pairing looks odd, read the green and red rows together, or open the unified diff with Copy diff.

A moved paragraph shows as removed and added

That is how a line-based diff works. Look for the same text in a green row elsewhere. A moved line will appear once in each colour.

I see no differences, but I know the texts are different

If the page says "The two texts are identical", check the options. With Ignore case or Ignore spaces ticked, it adds "(with the chosen options)". Untick them to see small differences in capitals or spacing. The tool also treats Windows and Mac line endings as equal.

Spacing differences keep appearing

Tick Ignore spaces. It collapses runs of spaces and tabs and trims line ends, so changes in indentation and trailing spaces disappear.

The result stops at 1,500 rows

That is the display limit. Press the "Show all … rows" button to draw everything. Copy diff and Download .diff already include the whole result.

An opened file looks garbled

The file was not plain text. Word and PDF files, for example, need to be converted to text first.

Quick checklist

  • Paste the older text on the left and the newer one on the right.
  • Make both versions wrap the same way.
  • Use Ignore case and Ignore spaces when only wording matters.
  • Use Only show changes for long documents.
  • Keep the .diff file if you need to share the result.

Frequently asked questions

What do the colours mean in the Text Diff Checker?
Green is added text and red is removed text. A line that exists on both sides but is not identical is called changed, and the words that differ inside it are marked, so you see the exact edit instead of two whole lines.
Does it detect a line that was moved?
No. It compares line by line and does not track moves, so a line that moved shows once as removed from its old place and once as added in its new place.
Will it ignore Windows and Mac line endings?
Yes. Different line endings and a final blank line at the end of the text are not reported as differences, so a file saved on Windows compares cleanly with the same text from a Mac or Linux machine.
Can I compare Word or PDF files?
Not directly. Open file reads text files only, such as .txt, .csv, .json, .html and code files. For a Word or PDF document, copy its text and paste it into each box, or convert it to text first.
Is what I paste sent to a server?
No. The comparison runs in your browser and nothing you paste or open is uploaded.
Found this useful? Share it

Tools in this guide

Main tool

Text Diff Checker

Paste or open two versions of a text and see exactly what changed: added lines in green, removed lines in red.

Open tool

JSON Formatter

Paste messy or minified JSON to get clean, indented output instantly — or minify it for production.

Open tool

Word to Text

Get the text out of a Word document without the formatting.

Open tool

Case Converter

Change the case of any text in one click — from headline-style Title Case to programmer formats like camelCase and snake_case.

Open tool

Back to all guides & blog