Creative Workflow Helpers

DOM Diff Viewer

Paste a before and after HTML fragment and get a structural diff: what was added, removed, or changed at the element, attribute and text level. Runs entirely in your browser — your markup never leaves the page.

Runs in your browser v1.0.0

Before

HTML fragment

The original markup.

After

HTML fragment

The updated markup.

Structural diff

live

How it works

Both fragments are parsed into a lightweight node tree in memory and compared node by node, so moving whitespace or reordering attributes does not show up as noise. Matching siblings are aligned with a longest-common-subsequence pass, which keeps additions and removals from cascading into false changes. Switch to Raw text when you want an ordinary line-by-line diff instead. Nothing is ever inserted into this page, so pasted scripts and event handlers cannot run.