Developer Tools

Diff Checker

Live

Diff with transparent inputs and reviewable results.

About Diff Checker

Diff with transparent inputs and reviewable results. Enter original text, revised text, comparison mode in a purpose-built diff checker interface designed for this subject. A local longest-common-subsequence comparison identifies additions, removals, and unchanged units. The result includes change summary, changes, added units, removed units, supporting detail, and clear units or diagnostics. Results depend on the entered assumptions, supported input range, units, and rounding. Verify important decisions against authoritative requirements. Processing stays in your browser, and UtilityPages does not store the values you enter.

Set up Diff Checker

Workspace

Source workbench

Edit the source fields below and inspect the rendered output alongside your work.

This workspace updates as you edit.

Enter original text.

Enter revised text.

Enter comparison mode.

Diff Checker result

Enter the values above, then process to see a detailed result.

How Diff Checker works

A local longest-common-subsequence comparison identifies additions, removals, and unchanged units.

How it works

A local longest-common-subsequence comparison identifies additions, removals, and unchanged units. Results depend on the entered assumptions, supported input range, units, and rounding. Verify important decisions against authoritative requirements.

Examples

Diff Checker worked example

Example input
{
    "original": "const total = price * quantity;",
    "revised": "const total = price * Math.max(quantity, 0);",
    "mode": "lines"
}
Expected result
{
    "summary": "1 added, 1 removed",
    "changes": [
        {
            "type": "removed",
            "original": 1,
            "revised": "—",
            "value": "const total = price * quantity;"
        },
        {
            "type": "added",
            "original": "—",
            "revised": 1,
            "value": "const total = price * Math.max(quantity, 0);"
        }
    ],
    "added": 1,
    "removed": 1
}

Privacy

This tool does not store your inputs or results on UtilityPages.org.

Citations & sources

  1. Web APIs

Frequently asked questions

How does the Diff Checker work?

A local longest-common-subsequence comparison identifies additions, removals, and unchanged units.

What information should I enter?

Enter original text, revised text, comparison mode. Use values and units from the same scenario so the result is internally consistent.

What results does this tool provide?

It reports change summary, changes, added units, removed units, including intermediate context where it helps you review the answer.

What limitations should I know about?

Results depend on the entered assumptions, supported input range, units, and rounding. Verify important decisions against authoritative requirements.