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
- Paste the original text into the left input field
- Paste the modified text into the right input field
- View the diff below. Additions appear in green, removals in red
- Switch views between Side by Side and Inline using the toggle
- 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
- Comparing two versions of a configuration file
- Reviewing code changes before committing
- Finding differences between API responses (format both with the JSON Formatter first so the diff is per line, not one giant line)
- Checking document revisions
- Debugging by comparing expected vs actual output
- Comparing two versions of a prompt to see how edits affect token count