Diff Checker

Compare two versions of text or code online. Inspect highlighted additions, deletions and edits with a side-by-side diff in PSDevTool.

The interactive workspace opens with JavaScript.

Read the tool guide ↓
TOOL GUIDE

Free Diff Checker & Text Comparison

Find what changed between an original document and a revised version. Diff Checker provides editable comparison panes, highlighted changes and formatting controls for code and structured text.

What you can do

  • Compare original and modified text side by side.
  • Inspect added, removed and changed content with syntax highlighting.
  • Adjust whitespace, wrapping and comparison settings for your task.

How to use Diff Checker

  1. Paste the original text into the left pane and the modified text into the right.
  2. Choose formatting or comparison settings when needed, then select Compare.
  3. Review highlighted differences and navigate between changes.

PRACTICAL WALKTHROUGH

Compare a configuration change

Use a diff before promoting a configuration file. A small value change can be more important than a large block of reformatting. Start with the raw comparison, then use formatting or whitespace options only if those differences are irrelevant to your review.

Example input or setup

Original: {"retries":2,"timeout":1000}
Modified: {"retries":3,"timeout":1000}

Expected result

The retries value changes from 2 to 3. The timeout value remains 1000.

When both inputs contain structured text, formatting them consistently makes the changed value easier to locate. Read the surrounding lines before copying a replacement; a diff identifies textual changes and does not decide whether a new setting is safe.

Before you rely on the result

  • Whitespace-insensitive comparisons can hide changes that matter in indentation-sensitive languages.
  • Array order and repeated text can affect alignment. A highlighted deletion/addition is not necessarily a semantic move.
  • Large inputs consume browser memory. Split unusually large logs into relevant sections before comparing them.

Common questions

What can I compare?

Use plain text, source code, JSON, XML or YAML. For local files and directory contents, use File & Folder Diff.

Does formatting change a comparison?

Yes. Whitespace and formatting can create differences. Review the formatting and whitespace options before deciding whether a change is meaningful.

← All developer tools