YAML Viewer
FV-58Paste YAML to see it as a tree you can fold open and shut, with the type of each value. Click any key to get its path. Anchors and aliases are filled in, and errors name the line and column.
Runs in your browser. Nothing is uploaded.
YAML
Tree
How to use it
- Paste your YAML, or open a .yaml or .yml file.
- Choose how many levels start open.
- Pick a path style: JSONPath, JavaScript or JSON Pointer.
- Click a key to see its path, then press Copy path.
How values are read
The tree uses the js-yaml library with YAML 1.2 style rules: null, true, false, integers and floats are recognized, and everything else is text. So a date such as 2026-11-21, and words like yes and no, stay strings. Numbers are shown exactly as written, so a long build number is not rounded and 1.10 keeps its zero. Merge keys (<<) are applied.
Anchors, aliases and several documents
Aliases are filled in with the value of their anchor, so you see the data an application would load. An alias that points back to its own parent is shown once and marked instead of repeating forever. A file with several documents separated by --- shows one tree per document. Custom tags such as !Ref, and the binary, set and timestamp tags, are not supported and give an error.
Error messages and what to do
| Message | What it means | Fix |
|---|---|---|
duplicated mapping key | The same key appears twice in one mapping. | Rename or remove one of the two keys. |
The YAML expands to more than 200,000 values once aliases are filled in, which is too many to show. | Aliases repeat so much data that the tree would be too large. | View a smaller part of the file, or one with fewer repeated aliases. |
Questions people ask
Does the YAML viewer validate my YAML?
It parses the YAML, so a syntax error, a bad indent or a duplicate key is reported with its line and column. It does not check the data against a schema, and it is not a linter: it says nothing about style, such as quoting or line length.
Why does my date show as text?
The viewer follows YAML 1.2 rules, which have no date type. A value such as 2026-11-21 is a string here, just as yes and no are strings. Older YAML 1.1 parsers would read them as a date and as booleans.
What happens with anchors and aliases?
Each alias is replaced by a copy of the anchored value, and merge keys are applied. If the aliases expand to more than 200,000 values, the viewer stops with an error rather than freeze your tab.
Can I open a file with several YAML documents?
Yes. Documents separated by --- each get their own tree, labeled document 1, document 2 and so on. An empty document, or one with only comments, shows as null.
Is my YAML uploaded?
No. Parsing runs in your browser with a copy of the js-yaml library served as part of this site. Your YAML is not sent to a server and stays on your device.
About this tool
Uses the js-yaml library with a schema that recognizes only null, true and false, integers, floats and << merge keys, so dates, times, yes and no stay text (YAML 1.2 rules) and numbers are shown exactly as written, never rounded. Anchors and aliases are filled in; an alias that points back to its own parent is shown once and marked. Several documents separated by --- are shown one after another. Custom tags such as !Ref and the !!binary, !!set and !!timestamp tags are not supported and give an error. Duplicate keys are reported as errors, with line and column.