// YAML utility

YAML Diff.

Side-by-side YAML comparison. Parses both documents, then shows added, removed, and changed keys with paths.

Client-sideSorted pathsNo upload

Document A

Document B

Diff

How the diff works

Both documents are parsed in your browser. The diff is computed recursively: scalar changes are reported aschanged, keys present on only one side are added or removed, and structural changes (e.g. map → string) are surfaced at the closest common parent path.

FAQ

Does it work for arrays too?

Yes. Arrays are compared element-by-element, and changes inside arrays are reported at the indexed path (e.g. feature_flags.1).

What counts as a change?

A key whose scalar value differs is "changed", a key present only on one side is "added" or "removed", and structurally different nodes are reported at the parent path.

Is diff output deterministic?

Yes. Paths are sorted and the diff is computed in key-sorted order, so the same two inputs always produce the same output.