Text Diff

Compare two texts line by line and see additions and deletions in diff format, without uploading either text.

Options

Input

Ctrl + Enter to run

Result

Compare two texts line by line, marking added lines with “+” and removed lines with “−”, like a diff. Useful to review changes in configs, API responses or code snippets without uploading them anywhere.

CRLF line endings are normalized and whitespace differences can be ignored.

How to use it

  1. Paste the original text on the left and the changed one on the right.
  2. Tick “Ignore whitespace” if you only care about content changes.
  3. Press Run.

Example

Example input
host: localhost
port: 8080
debug: true
workers: 2

host: localhost
port: 9090
debug: true
workers: 4
timeout: 30
Result
  host: localhost
- port: 8080
+ port: 9090
  debug: true
- workers: 2
+ workers: 4
+ timeout: 30

Limitations

  • It compares lines, not words or characters.
  • Up to 1 MiB per text; very different long texts may exceed the 5 s limit.

FAQ

Can I compare JSON?
Yes, as text. Format both JSON documents with the same indentation first so the diff is meaningful.
Is the output an applicable patch?
It is not a unified patch with headers; it is a diff view meant for reading.

Related tools

References