Compare two YAML documents and find all structural differences.
See exactly what was added,
removed, or
changed — with full YAML paths.
Also: JSON ↔ YAML | JSON Compare | XML Compare.
All processing happens locally in your browser — your data is never uploaded to any server.
Paste two YAML documents below and click Compare to find differences.
YAML A (Original)
YAML B (Modified)
Differences
Enter two YAML documents above and click Compare to see the differences.
How to use: Paste your original YAML in the left textarea (YAML A) and the modified version in the right textarea (YAML B). Click Compare to see all differences.
Result colors:Green = added in B, Red = removed from A, Yellow = value changed.
Set compare: When checked, arrays are compared as unordered sets (item order is ignored). By default, arrays are compared position-by-position.
Tip: YAML comments (#) are stripped during parsing and are not compared. Only the data structure is compared, making this ideal for config file diffs.
Structural YAML diff — comments don’t count
YAML compares as a data structure, not as text: comments are stripped, indentation is normalized, and quoted vs unquoted scalars that parse to the same value are equal. One YAML-specific trap: anchors and aliases mean two documents can differ textually while representing identical data — or look similar while resolving differently. Comparing the parsed structure handles both.
Ideal for config file diffs — whitespace and comment churn never shows up.
🔷 Diff Summary
Paste two YAML documents and click Compare to see statistics.