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
- Open Text Diff Checker.
- 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.
- Read the Differences panel. It updates about 0.2 seconds after you stop typing.
- Tick Ignore case, Ignore spaces or Only show changes if you need them.
- 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,.yamlor 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.
Related tools
- JSON Formatter: sort the keys of two JSON files before comparing them.
- Word to Text: get the plain text out of a Word document.
- Case Converter: fix the capital letters of a text before comparing.
- Text Tools: the rest of our text utilities.
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.



