What the YAML Viewer does
The YAML Viewer parses YAML and shows it as a collapsible tree, so you can explore deeply nested configuration such as Kubernetes manifests.
Using the YAML Viewer
- Click the name of an object or array to collapse or expand it. The number next to it is its count of keys or items.
YAML Viewer example
A deployment manifest
Input
apiVersion: apps/v1
kind: Deployment
spec:
replicas: 3
template:
spec:
containers:
- name: web
image: nginx:1.27
ports: [{containerPort: 80}]Tree
{3}
apiVersion: "apps/v1"
kind: "Deployment"
spec {2}
replicas: 3
template {1}
spec {1}
containers [1]
0 {3}
name: "web"
image: "nginx:1.27"
ports [1]
0 {1}
containerPort: 80The nesting that is hard to follow by indentation alone becomes explicit: containers [1] holds one object with three keys, and the inline ports list is shown the same way as a block list. replicas is a number, so it has no quotes.
Each output was produced by running this tool on the input above it.
How it works
js-yaml parses the input and reports errors with a line and column. The parsed data is drawn as a collapsible tree, with every key and value inserted as escaped text.
Details and limits
- The tree shows parsed values: numbers and booleans without quotes, strings with quotes,
nullfor empty values, and unquoted dates as ISO timestamps. - Aliases are expanded, so a mapping that is anchored once and referenced three times appears three times.
- Copy and Download give you the parsed data as JSON.
- Input that is not valid YAML stops the tool, and the status line shows where the problem is. The YAML Validator page lists the usual causes.
Questions
Is my data uploaded when I use YAML Viewer?
No. The tool runs in your browser, so what you paste or open is processed on your own device and is not sent to a server.
What does YAML Viewer do?
The YAML Viewer parses YAML and shows it as a collapsible tree, so you can explore deeply nested configuration such as Kubernetes manifests.
How does YAML Viewer work?
js-yaml parses the input and reports errors with a line and column. The parsed data is drawn as a collapsible tree, with every key and value inserted as escaped text.
Are there any limits I should know about?
The tree shows parsed values: numbers and booleans without quotes, strings with quotes, null for empty values, and unquoted dates as ISO timestamps. Aliases are expanded, so a mapping that is anchored once and referenced three times appears three times.
Is there a size limit?
There is no fixed size limit. Everything happens on your device, so very large inputs depend on its memory and can take longer on a phone than on a computer.
Does it work on phones, and is it free?
Yes. It works in any current browser on Android phones, iPhones, tablets and computers. It is free and needs no account or sign-up.