A text diff checker compares two versions of a text and shows what changed. Paste the original in the first box and the changed version in the second. Lines found only in the new text are marked with a plus sign in green, lines found only in the original with a minus sign in red, and unchanged lines stay plain.
How to use the Text Diff Checker
- Paste the originalPut the older or first version of the text in the top box.
- Paste the changed versionPut the newer or second version in the box below it.
- Read the differencesAdded lines are green with a plus, removed lines are red with a minus. The counts are shown above the comparison.
- Refine or exportTick the options to hide unchanged lines or ignore spacing and case, or download the diff as a text file.
How to read the comparison
The text diff checker works line by line. It finds the longest set of lines that both texts have in common, in the same order, and treats everything else as a change. The result is a single merged view:
- Plain lines are the same in both texts.
- Red lines marked with a minus appear in the original but not in the changed text. They were deleted.
- Green lines marked with a plus appear in the changed text but not in the original. They were added.
A line that was edited shows up as a pair: the old wording in red directly above the new wording in green. The two narrow columns on the left give the line number in the original and in the changed text, so you can find the place in your own document. The plus and minus signs mean the comparison can be read without relying on colour.
For long documents, tick "Show only changed lines" to collapse the unchanged parts. Two lines of context are kept around each change, and a row of dots marks where lines were skipped.
Options, limits and privacy
Ignore differences in spacing treats lines as equal when they differ only in indentation, trailing spaces or the number of spaces between words. Use it when a document was reformatted and you care about the wording. Ignore upper and lower case treats "Total" and "TOTAL" as the same line.
Because the comparison is by line, one changed word marks the whole line as changed. This suits code, configuration files, lists, CSV data and text with one sentence or paragraph per line. If your text is one very long paragraph, break it into lines first, for example at each sentence, to get a more useful diff.
The comparison is exact for typical documents. For very large inputs with thousands of changed lines, the tool anchors on lines that occur once in both texts to stay fast, so the diff remains correct but may not always be the shortest possible one. The page shows up to 4,000 rows; the downloadable diff file always contains every line.
Both texts stay in your browser. Nothing is uploaded, which makes the tool suitable for contracts, source code and other confidential material. To tidy data before comparing, remove extra spaces, or pretty-print JSON with the JSON formatter so that each value sits on its own line.
Frequently asked questions
How do I compare two texts for differences?
Paste the first version into the top box and the second into the bottom box. The text diff checker lists every line, marking added lines in green with a plus and removed lines in red with a minus.
Does it compare word by word or line by line?
Line by line. If any part of a line changes, the old line is shown as removed and the new line as added, one above the other.
Is my text uploaded to a server?
No. The comparison runs entirely in your browser, and neither text leaves your device. You can use it for private or confidential documents.
Can I ignore changes in spaces or capital letters?
Yes. Tick "Ignore differences in spacing" to skip indentation and spacing changes, and "Ignore upper and lower case" to skip changes in capitalisation.
How large can the texts be?
Texts of 100,000 characters each compare in well under a second. Larger inputs work too, although the page shows only the first 4,000 rows; the download contains the full diff.
Last updated 24 November 2026 by the TheTechFolk team.