# Text Diff Viewer

URL: https://phishdestroy.io/developer-tools/text-diff
Category: General dev
Where it runs: Runs locally (nothing you enter is uploaded)

Paste two versions of a text and see which lines differ, marked - for the original line and + for the changed one. Works best on texts with the same structure, such as two WHOIS records, two header blocks or two kit config files.

## Example input

WHOIS snapshot (Text A)

```
Domain Name: login.example.com
Registrar: Example Registrar
Domain Status: ok
Name Server: ns1.example.net
```

Text B is the same record after a registrar hold: only the Domain Status line is marked as changed (ok removed, clientHold added).

## FAQ

### How are the texts compared?

Line by line by position: line 1 of A against line 1 of B, line 2 against line 2, and so on. Equal lines are shown in grey, different ones as a - line from A and a + line from B, and extra lines at the end as removed or added.

### Why is everything marked as changed after I inserted one line?

Lines are not re-aligned the way diff or git diff do it, so one inserted or deleted line shifts every following line and they all show as changed. Keep both texts in the same order, or sort both first.

### Is the text sent to a server?

No. The comparison runs in your browser and nothing is uploaded.

## Related tools

- [JSON Diff](https://phishdestroy.io/developer-tools/json-diff)
- [JSON Key Sorter](https://phishdestroy.io/developer-tools/json-key-sorter)
- [Sort & Deduplicate Lines](https://phishdestroy.io/developer-tools/sort-deduplicate-lines)
- [Find & Replace](https://phishdestroy.io/developer-tools/find-and-replace)
- [WHOIS Fields Guide](https://phishdestroy.io/developer-tools/whois-fields-guide)

All tools: https://phishdestroy.io/developer-tools
