A worked example, rendered from real sample data. Sign in to run the tool on your own input.
defaults: &defaults
timeout: 30
retries: 3
production:
<<: *defaults
host: prod.example.com
staging:
<<: *defaults
host: staging.example.com# Expanded 1 anchor, 2 alias references and 2 merge keys.
# &defaults (line 1) → used 2 times
defaults:
timeout: 30
retries: 3
production:
timeout: 30
retries: 3
host: prod.example.com
staging:
timeout: 30
retries: 3
host: staging.example.com

Expand YAML anchors and aliases into plain YAML. Part of the DevTools Surf developer suite. Browse more tools in the YAML collection.