Strings and booleans
Under YAML 1.2 Core, true and false are booleans, while values such as yes normally remain strings. YAML 1.1 compatibility can interpret a broader set.
Searchable tree · Typed scalars · Aliases stay references
Explore mappings, sequences, scalar values, anchors, aliases, tags, and separate stream documents as a bounded text tree. The source is parsed locally and aliases are never expanded in the viewer.
− document 1
− products sequence
− [0] mapping
name Trail Bottle
stock 18
Structural outlineSearch labels and scalar values
Inspect structure without flattening references
The local worker parses YAML with yaml version 2.9.0, returns a bounded display model, and keeps alias nodes as references. YAML 1.2 Core Schema is the default, YAML 1.1 is optional, and merge-key expansion remains disabled.
Loading the private YAML tree viewer…
Enable JavaScript to explore YAML locally. The tree model, alias boundary, type, and size guidance below remains readable.
Move from indentation to structure
The tree is an inspection aid. It does not edit the source, execute configuration, or replace the schema-aware tools used by the target platform.
Include one document or several documents separated by ---. Choose YAML 1.2 Core unless the actual consumer requires YAML 1.1 scalar resolution.
Mappings, sequences, scalars, alias references, and document boundaries receive rows; anchors and tags are shown on their owning rows. Block scalar values are shown as text rather than executable content.
Filter displayed keys, indices, types, and values or collapse a mapping or sequence to focus on nearby structure. Display state never changes the YAML input.
YAML is a graph-shaped data model
A YAML document is not merely an indented JSON object. Mappings associate keys with values, sequences retain item order, and scalars resolve under a selected schema. Anchors name nodes and aliases refer back to those nodes, which means the representation can be a graph rather than a pure tree. Tags can also participate in type resolution.
The viewer presents a bounded tree-shaped outline while keeping each alias as a reference row. It does not copy or recursively expand the anchored node under every alias. This avoids disguising shared identity as repeated source and prevents an alias-heavy document from creating a disproportionately large display. Merge-key expansion is likewise disabled.
Comments and presentation details belong to the YAML source model, while the tree focuses on document structure and resolved scalar information useful for inspection. Use the YAML Formatter when the goal is a new serialization, and compare that serialization with the original because formatting can change presentation.
The selected schema changes interpretation
Under YAML 1.2 Core, true and false are booleans, while values such as yes normally remain strings. YAML 1.1 compatibility can interpret a broader set.
Plain scalar spelling affects numeric resolution. A tree type label helps reveal when an unquoted token did not remain the string the author expected.
Literal and folded block styles have distinct newline semantics plus chomping controls. Inspect the value and keep the original source nearby when exact text matters.
A visible tag is metadata, not permission to construct a class or execute code. This page is an inspector; downstream loaders define their own tag behavior and risk.
Inspection remains bounded
Input is limited to 200,000 UTF-16 code units and parsed in a browser worker. The returned display is also bounded so a very deep or broad document cannot create unlimited rows in the page. If the interface reports truncation, the outline is incomplete; absence from the displayed tree is not evidence that a node is absent from the source.
Aliases remain reference rows even when the anchored node is small. This is a semantic and availability boundary, not a defect: expanding aliases could multiply repeated content and blur the difference between written nodes and references. Use a controlled application loader if you specifically need a resolved object graph, with its own limits and trust policy.
The document is not uploaded or placed in the URL. Browser extensions, clipboard history, screen capture, backups, and other local software remain outside that promise. Redact secrets from production configuration whenever a synthetic example can reproduce the issue.
The YAML-to-JSON converter applies a different, explicit rule set: aliases may expand up to a limit, multiple documents become an array, and unsupported keys or tags stop conversion.
Open YAML to JSON →Viewer behavior
No. Anchors and aliases are represented in the tree, but alias references are not recursively expanded. The viewer does not duplicate an anchored subtree beneath each alias.
Yes. A YAML stream separated by document markers is represented as distinct documents rather than merged into one object.
No. The viewer parses supported YAML syntax for display. It does not validate Kubernetes, Docker Compose, CI, OpenAPI, or application-specific schemas.
No. Those controls affect only visible rows. The source remains untouched, and the viewer does not produce an edited download.