YAML Diff
Data diff, not text diff: how the comparison engine works
The diff engine works on data, not text. Both YAML documents are parsed into their data representations first, then compared path-by-path. That means formatting changes, comment additions, and indentation differences are invisible to the diff — only actual data changes show up.
YAML A
→
parse
→diff engine
path-aware
←
parse
←YAML B
Note: If two YAML files are identical in data but different in layout, this diff will report zero changes. Use a text diff tool if you want line-by-line text comparison.
What each diff type means
| Symbol | Type | Meaning |
|---|---|---|
| + green | Added | Key exists in the right document but not in the left |
| - red | Removed | Key exists in the left document but not in the right |
| ~ amber | Changed | Key exists in both documents but with different values |
Try a two-document diff
Interactive — edit the input to see the output update
Two YAML docs separated by ---
Diff Summary
Common questions
Your files stay on your computer. Dad promised.