YAML Diff
Compare two YAML documents and show key-path differences with old and new values.
Related Tools
{}JSON Diff
Compare two JSON objects and highlight added, removed, and changed keys.
</>XML Diff
Compare two XML documents and highlight structural and value differences.
YMLYAML Formatter
Format and beautify YAML with consistent indentation (2 or 4 spaces).
YML↓YAML Minifier
Strip comments and blank lines from YAML to produce compact output.
FAQ
- How does YAML Diff work?
- Both YAML inputs are parsed into JavaScript objects using a built-in YAML parser. The objects are then flattened into dot-notation key paths and compared. Added, removed, and changed keys are shown with their old and new values.
- Does it handle YAML anchors and aliases?
- Basic anchors and aliases are resolved during parsing. Complex YAML features like merge keys (<<) are also supported. If a feature is not recognized, the parser will surface an error.
- What if my YAML is invalid?
- Each panel independently validates its YAML. If either input has a syntax error, a parse error is shown next to that panel and the comparison is paused until both inputs are valid.
YAML Diff converts both inputs to JSON internally, then performs a deep recursive comparison. Differences are shown as dot-notation key paths alongside the old value and new value. Useful for comparing Kubernetes manifests, Helm values files, CI configuration, or any YAML-based configuration drift. All processing happens in your browser.