YAML Diff
Compare left and right YAML. Semantic diff uses canonical JSON; if parsing fails we fall back to text diff.
All processing on this page runs locally in your browser unless noted otherwise.
Left (original)
Right (compare)
Diff result
===================================================================
--- left.yaml
+++ right.yaml
@@ -2,7 +2,8 @@
"apiVersion": "v1",
"data": {
"ENV": "prod",
- "KEY": "value-a"
+ "KEY": "value-b",
+ "NEW": "added"
},
"kind": "ConfigMap",
"metadata": {
How to use
- Paste or import left and right YAML.
- Review the unified diff (semantic when possible).
- Copy or download the patch; share both sides via link.
FAQ
What is semantic diff?
We normalize both sides to sorted JSON so key order alone does not create noise. Enable “Ignore array order” to sort array items before comparing.
When does it fall back to text?
If either side fails to parse as YAML, you get a line-oriented text diff and a notice.
Can I open from Format?
Yes. “Open in Diff” stashes the current text into the left pane.