YAML Anchors and Aliases Explainer
Parse anchors (&name) and aliases (*name) in YAML, count definitions and references, expand everything into complete YAML, and compare original, expanded and side-by-side views.
Rate this tool
Your rating helps others decide whether this tool is worth using
How to Use
Paste YAML that uses anchors (&name) and aliases (*name) into the box and it is parsed automatically, showing the number of anchor definitions and alias references. A table below lists each anchor's definition line, reference lines and a value preview; undefined references are highlighted in red. Switch between the 'Original YAML', 'Expanded YAML' and 'Side-by-side' tabs to see the highlighted source, the fully expanded document, or both together. Load the 'Docker Compose Sample' or 'CI/CD Pipeline Sample' to try it instantly.
Features
- Counts anchor definitions and alias references automatically
- Table view of each anchor with definition line, usage lines and value preview
- Flags undefined alias references to catch typos
- Highlighted original view plus a fully expanded YAML view
- Three viewing modes: original, expanded and side-by-side