Skip to main content

Text Diff

Compare two texts side by side and highlight differences

Original
Modified

Paste text in both panels and click Compare

Shortcut: press Ctrl+Enter (Windows/Linux) or Cmd+Enter (macOS) in either input to compare. All processing happens locally in your browser. No data is sent to any server.

About Text Diff

Compare two blocks of text side by side and see exactly what changed between them. This diff tool highlights added, removed, and unchanged lines using a clear colour-coded display. It is useful for reviewing configuration changes, comparing API responses, checking code edits, verifying migration output, and any scenario where you need to spot differences between two versions of text. Options to ignore whitespace and case let you focus on meaningful changes. All comparison runs locally in your browser — nothing is uploaded.

How to Use Text Diff

  1. Paste the original text in the left input area and the modified text in the right area.
  2. Click Compare to generate the diff.
  3. Review the highlighted output — green lines are additions, red lines are removals.
  4. Toggle options to ignore whitespace or case differences if needed.

Text Diff FAQ

How is the diff calculated?

The tool compares text line-by-line using a standard diff algorithm and marks each line as added, removed, or unchanged with colour coding.

Can I ignore whitespace or case?

Yes. Options are available to ignore whitespace, case, and leading/trailing differences so you can focus on meaningful content changes.

What types of text can I compare?

Any plain text — code, configuration files, API responses, CSV data, log output, documentation, and more. The tool works with any text content.

Is there a size limit?

The tool handles texts of several thousand lines comfortably. Very large inputs may slow down the browser since diffing runs client-side.

Is my text uploaded to a server?

No. The entire comparison runs in your browser. Neither the original nor modified text is transmitted anywhere.