Text Diff

Compare two text blocks line by line

Use the interactive tool with JavaScript enabled.

About this tool

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 — Diff two JSON documents side by side
  • Line Tools — Sort, deduplicate, number, shuffle, and filter lines
  • JSON Formatter — Format, validate, minify and sort JSON with tree view

Tool processing runs in your browser. Privacy policy and cookie preferences.

Read this guide as Markdown