# Text Diff

Canonical: https://herebetools.com/text-diff

Compare two text blocks line by line

Paste two blocks of text to see a line-by-line comparison with additions highlighted in green and deletions in red. Useful for comparing configuration files, API response changes, documentation edits, database migration scripts, and code snippets — all without leaving the browser. The diff is computed instantly in your browser without uploading your text to any server.

## Questions and answers

### Does text diff support character-level diffing?

The tool performs line-by-line diffing, highlighting entire lines that differ between the two inputs.

### Can I compare JSON files with this tool?

Yes, paste any plain text including JSON, YAML, SQL, or code. For structured JSON comparison with key-by-key analysis, try the JSON Compare tool.

## Related tools

- [JSON Compare](https://herebetools.com/json-compare): Diff two JSON documents side by side
- [Line Tools](https://herebetools.com/line-tools): Sort, deduplicate, number, shuffle, and filter lines
- [JSON Formatter](https://herebetools.com/json-formatter): Format, validate, minify and sort JSON with tree view

Tool processing runs in your browser.

[Privacy policy](https://herebetools.com/privacy-policy) · [About](https://herebetools.com/facts) · [Topics](https://herebetools.com/topics)
