Skip to content

YAML to JSON Converter

Convert YAML to JSON and back, with syntax checking.

JSON output

Paste a document on the left.

About YAML to JSON Converter

YAML is the configuration language of Kubernetes, GitHub Actions, Docker Compose and much of modern infrastructure tooling. Its indentation-sensitive syntax is friendly to write and unforgiving to get wrong.

This converter parses YAML into JSON so you can see exactly how a tool will interpret your file, and converts JSON back into readable YAML when you need to move in the other direction.

Frequently asked questions

Which YAML features are supported?

The common configuration subset: nested mappings, sequences, scalars, quoted strings, comments, multi-line block scalars and inline flow collections.

Are anchors and aliases supported?

Anchors, aliases and custom tags are not resolved. They are rare in hand-written configuration and are reported rather than silently mangled.

Why does indentation matter so much?

YAML uses indentation for structure, and tab characters are not valid indentation. The converter flags tabs explicitly because they are a very common cause of errors.

Related tools