YAML
YAML diff
Compare two YAML documents by value, ignoring comments and formatting.
Private Everything on these pages runs in your browser. What you type is never sent to a server and nothing is stored.
Documents are compared as data, so comments, key order inside maps and formatting do not count.
How to use it
- Paste the first YAML on the left and the second on the right.
- Press Compare (it also updates as you type).
- Review the changed, added and removed values by path.
Example
Input
Left: replicas: 2
Right: replicas: 3Result
replicas changed from 2 to 3Frequently asked questions
Why compare by value instead of by text?
Two YAML files can look different and mean the same thing, for example different indentation or quoting. Comparing parsed values shows only differences that change behaviour.
Does it work for Kubernetes or Compose files?
It compares any YAML mapping, so yes for a single document. Files with several documents separated by --- should be compared one at a time.