Text Diff

Compare text, code or configuration with line and character differences.

Text & Regex
Preparing your workspace…
Input
Output
Your result will appear here.

How to use

  1. Paste your data or open a UTF-8 text file; try the sample to see the expected input.
  2. Compare
  3. Review the result, then copy the selection, copy everything or download a file.

Text Diff

Compare text, code or configuration with line and character differences.

Comparison, parsing and formatting run in your browser. Your input is not sent to DevToolsy.

How it works

See added, removed and changed lines side by side, with character highlights inside changed lines. Swap the inputs, navigate between differences and copy or download a text report.

Before and after
Original
APP_ENV=development
APP_PORT=3020
Modified
APP_ENV=production
APP_PORT=8080

Compare text, code or configuration with line and character differences.

Options and data fidelity

Ignoring leading and trailing whitespace or letter case is optional. LF and CRLF are treated as equivalent by default, but a missing final newline still counts as a change.

Working with the result

Files are read as UTF-8 text. The editors provide search, selection copying and keyboard shortcuts. Results can be copied or downloaded; changing the input invalidates the previous result.

Processing limits

UTF-8 input up to 1 MiB per document; output up to 8 MiB. Tasks run in a local worker with a 30-second time limit.

Further readingjsdiff
?

Frequently asked questions

How are line and character changes shown?

See added, removed and changed lines side by side, with character highlights inside changed lines. Swap the inputs, navigate between differences and copy or download a text report.

Can I ignore whitespace and line ending differences?

Ignoring leading and trailing whitespace or letter case is optional. LF and CRLF are treated as equivalent by default, but a missing final newline still counts as a change.

Is my input uploaded?

No. Comparison, parsing and formatting run in your browser. Your input is not sent to DevToolsy.

Can I open a local file?

Yes. Open a UTF-8 text file of up to 1 MiB. Each comparison input has its own file picker.

Can I copy only part of the result?

Yes. Select text in an editor and use Copy selection, or use the standard keyboard shortcut.

Find your next tool

Language

Switch language? Your current work will be cleared. Copy or download it first.