YAML Diff
Semantically compare two YAML documents and highlight every added, removed, and changed key with full paths. Handles nested maps, arrays, and anchors. Free, private, and browser-based.
Loading tool...
What is YAML Diff?
YAML Diff is a free browser tool that compares two YAML documents and reports every difference. It parses both documents into structured data first, then recurses into nested maps and arrays, classifies each change as added, removed, or changed, and shows the exact path so you can locate and understand every edit. Because the comparison is semantic, formatting, key order, and comments never produce false positives.
Key Benefits
- Semantic comparison ignores formatting, key order, and comments
- Catch every change including deeply nested values
- Understand diffs visually with color-coded old and new values
- Copy machine-readable paths instantly for pipelines and audits
- Keep sensitive configuration private with local-only processing
Common Use Cases
- •Compare Kubernetes manifests between releases or environments
- •Review Helm values or Ansible playbook edits across environments
- •Audit CI/CD pipeline configuration changes
- •Track application config drift between deployments
- •Verify merge results in YAML-based databases or content files
How to Compare Two YAML Documents
- Paste the original YAML: Enter the first YAML document in the Original YAML panel.
- Paste the new YAML: Enter the second YAML document in the New YAML panel.
- Review the diff: The tool parses both YAML documents into data and compares them recursively, listing every added, removed, and changed key with its full path.
- Copy the results: Copy an individual change or all differences as formatted JSON.
Key Features
- Semantic comparison parses YAML into data first, so formatting and key order do not affect the diff.
- Classify every change as added, removed, or changed for instant clarity.
- Full dot-style paths for every change, even in deeply nested maps and arrays.
- Color-coded visual diff with old and new values shown side by side.
- Copy individual changes or the entire diff as JSON for pipelines and audits.
- Runs entirely in your browser with no data uploaded.