Text Diff
Compare two blocks of text and highlight added and removed lines.
About Text Diff
Text Diff compares two blocks of text line by line and highlights what was added and what was removed. It is the quick answer to "what actually changed?" — between two versions of a config file, two log excerpts, two SQL results or two email templates — without setting up a repo or reaching for a desktop diff tool.
Everything runs in the browser: paste side A and side B, press Compare, and read the highlighted result. For QA work it is especially handy for comparing expected vs. actual output pasted straight out of a test run.
How to use
- Paste the first version into "Original (A)" and the second into "Changed (B)".
- Click "Compare" to run the line diff.
- Read the result: removed lines and added lines are highlighted differently so changes stand out.
- Use "Load sample" to see an example, or "Clear" to start a new comparison.
Frequently asked questions
Is the comparison line-based or character-based?
Line-based: each line is treated as a unit, like a classic unified diff. It is ideal for configs, logs and structured text; for JSON payloads, the JSON Compare tool gives a smarter structural diff.
Does whitespace count as a change?
Yes — lines must match exactly, so trailing spaces or tab/space differences show up as changes. That is often exactly the invisible bug you are hunting.
Is there a size limit?
No hard limit — it comfortably handles typical config files and log excerpts. Extremely large files are better served by a desktop diff tool.
