YAML

YAML Validator

Validate YAML syntax and convert it to JSON — all in your browser, nothing sent to a server.

  • lint
  • YAML→JSON
  • tree
  • indent
Waiting for input...
config.yaml
Input YAML
1
Output

                            
                        
—Size
—Lines
—Keys
—Depth
This tool runs entirely in your browser; the data you enter is never sent to a server. Note: YAML does not allow lines to be indented with a Tab character — use spaces.
ABOUT

Validate YAML and convert it to JSON

YAML underlies Kubernetes, Docker Compose, Ansible and most CI/CD configs, and one wrong indent can break the whole file. This tool checks the syntax, shows the exact location of an error, renders the structure as a tree and converts it to JSON in one click.

HOW TO

How to use it

  1. Paste the YAML or load a .yml file.
  2. You get a pass/fail result and, on failure, the line and column of the problem.
  3. Use the tree view to inspect the structure, or convert to JSON for use elsewhere.
FAQ

Frequently asked questions

Why is YAML so sensitive to indentation?
Nesting in YAML is expressed only by indentation. Tabs are not allowed — use spaces, usually two per level.
What happens to yes and no?
Some parsers (YAML 1.1) turn them into booleans. Quote them if you mean strings.