Text Diff — The text diff tool compares two versions of a document line by line and marks each line as added, removed, or unchanged — the same idea as the diff command developers use, but for any text.
Comparison runs locally in your browser. Neither text is uploaded.
Was Text Diff useful?
What is text diff?
The text diff tool compares two versions of a document line by line and marks each line as added, removed, or unchanged — the same idea as the diff command developers use, but for any text.
It is useful for reviewing edits to articles, contracts, configuration files, or notes, and for spotting what changed between two drafts at a glance.
How to use it
-
Paste the original
Left panel: the older version of the text.
-
Paste the changed version
Right panel: the newer version.
-
Read the diff
Green lines were added, red lines removed, plain lines are unchanged.
Examples
One-line edit
Changing a single line shows one removal and one addition.
a b c → a c d
Result: a − b c + d
Frequently asked questions
Related guides
How to Explore a JSON File Visually (and Stop Scrolling)
JSON files get long fast. A 5,000-line config file or a 50 KB API response is unreadable as raw text. This guide covers the right way to navigate a JSON document: tree views, search, path navigation, and the moves that turn a wall of text into something you can actually work with.
How to Convert SRT to VTT or SUB (and Why You Might Need To)
A practical guide to subtitle formats: the differences between SRT, WebVTT, and MicroDVD SUB, the format compatibility matrix for common players, the timing-shift and FPS-scaling cases that come up when subtitles drift, and how to convert everything in your browser without uploading your file anywhere.
What Is Regex, and When Should You Actually Use It?
A regular expression is a tiny language for matching patterns in text. It is one of the most useful tools in programming — and one of the most overused. Here is what regex is, the four operators that cover 90% of real-world use, the four signs you should not use regex, and how to test one in your browser before you commit it to production.
Related tools
Last reviewed: 2026-09-18