Diff Checker

Compare two blocks of text side by side or inline with character-level highlighting. Find additions, removals, and changes instantly in your browser.

100% client-side. Your data never leaves your browser.

Converters & Examples

Related Tools

Diff Checker: Compare Text Online

A diff (short for “difference”) compares two texts and highlights what was added, removed, or changed. Paste the original text on the left and the modified text on the right to see a line by line comparison with character level highlighting, in either side by side or unified inline view.

How to Use

  1. Paste the original text into the left input field
  2. Paste the modified text into the right input field
  3. View the diff below. Additions appear in green, removals in red
  4. Switch views between Side by Side and Inline using the toggle
  5. Use the Sample button to see an example comparison

Features

Side by Side View

The original and modified text are shown in two columns. Changed lines are aligned together, with empty placeholders when lines were added or removed. This view is ideal for reviewing code changes or document revisions.

Inline View

All changes appear in a single column. Removed lines are shown before added lines, similar to a unified diff format. Each line is prefixed with - for removals, + for additions, or a space for unchanged lines.

Character Level Highlighting

When a line is modified rather than fully removed and replaced, the tool highlights the specific characters that changed. Removed characters have a red background, added characters have a green background. This makes it easy to spot small changes like typos, renames, or single value edits.

Diff Statistics

The toolbar shows a summary of changes: number of additions, removals, and unchanged lines. This gives you a quick overview of how much has changed.

Common Use Cases