YAML Viewer

Paste YAML to validate it and explore the structure as a collapsible tree or JSON.

YAML → structure
YAML
Parsed
name: compilebytes
version: 2.4.0
active: true
name: Ada Lovelace
role: admin
name: Alan Turing
role: dev
host: localhost
port: 8080
0: web
1: api
2: edge
url: postgres://localhost/db
pool: 10
replicas: null
Valid YAML · 6 keys · runs locally

What this tool does

Paste a YAML document and this viewer parses it into a data structure you can explore — expand and collapse the tree to inspect nested maps and lists, or switch to JSON to see the equivalent shape. It validates as you type and names the line where parsing fails, which is usually all you need to fix an indentation slip in a CI config or Kubernetes manifest. Everything runs in your browser.

How to use it

  1. Paste your YAML into the left pane — or hit Upload to open a .yaml or .yml file from your machine.
  2. Watch it parse live. The status bar turns green when the document is valid, or names the failing line when it isn't.
  3. Explore the Tree — click any node to collapse it — or switch to JSON for the equivalent structure.
  4. Copy JSON, or open the Download menu to save the structure as .json or the source as .yaml.

Frequently asked questions

Is my YAML uploaded anywhere?
No. Parsing runs entirely in your browser. Nothing is sent to a server, logged, or stored.
Which YAML features are supported?
The full YAML 1.2 core schema: nested maps and sequences, inline flow collections like [a, b], block and folded scalars (| and >), anchors and aliases, comments, and typed scalars — strings, numbers, booleans, dates, and null.
Why must I use spaces, not tabs?
YAML forbids tabs for indentation — they make nesting depth ambiguous. Use spaces, two per level by convention, and the parser will accept the document.
What happens when the YAML is invalid?
The status bar turns red and names the failing line along with the reason — bad indentation, a duplicated key, an unclosed quote — so you can jump straight to it in the editor.
Can I get JSON out?
Yes. Switch the parsed pane to JSON to see the equivalent structure, then Copy JSON or pick JSON (.json) from the Download menu.