4629 · Developer Tools · v1.0.0

Diff Lab

Two versions. One clear explanation.

Compare text by line, word or character. Read unified patches or accessible side-by-side originals with explicitly marked additions and deletions.

Processed locally in your browser

Text-only workspace. Never executes input. General limit: 200,000 UTF-16 units per editor; some operations have tighter limits.

Private session · history disabled

Opt in to store up to five recent text transformations on this device. Never stored on an account or synchronized. Files are never included. Disable history stops new saves; Clear history deletes saved items.

How to use Diff Lab

Paste input, select a command and its options, then run the transformation. Review diagnostics before copying or downloading the result. Input is not executed.

Comparison preserves whitespace and is textual, not proof that two programs are equivalent. Inputs are limited to 20,000 UTF-16 code units each, and computation is terminated if it exceeds the worker time limit. A plus or minus label identifies every change without relying on color alone.

Privacy and boundaries

Editor contents stay in your browser. Transformations run in a disposable worker and are never sent to a formatting or AI service. History starts disabled; enabling it writes text to local browser storage only. Clearing that history removes this tool’s saved entries, not data saved by other applications. The surrounding website may load its normal navigation and analytics, but the utility workspace is excluded from content-interaction capture.

Use the labeled operation selector for the available capabilities. Keyboard users can reach every control with Tab; Ctrl or Command plus K opens the command palette. Copy requires clipboard permission. Download creates a local text file. Clear removes the current workspace; it does not automatically delete an opted-in history. Inputs and outputs are always rendered as text, never as a runnable preview.

What is a unified diff?

A unified diff is a textual patch with context and signed addition/deletion lines, making changes portable and reviewable.