📄YAML/JSON Converter

Convert between YAML and JSON formats

Supports block maps and lists, quoted strings, comments and empty collection syntax. Anchors, block scalars (| and >) and explicit tags are not supported.

How to Use

The YAML Converter converts between YAML and JSON using a real YAML parser and serialiser: nested arrays, multi-line strings and anchors are handled correctly, and the output indentation is always legal — safe to paste straight into a config file.

FAQ

What is the difference between YAML and JSON?

YAML uses indentation for hierarchy and is more readable. JSON uses braces and brackets, better for machine parsing. Both can be converted.

What happens with YAML indentation errors?

YAML is very sensitive to indentation. Inconsistent spaces cause parsing failures. Always use spaces, not tabs.

Which YAML syntax is supported?

The common subset: key-value pairs, nested objects, and dash-style arrays — enough for mainstream config files. Anchors and multi-line block strings are outside its scope.

What if my YAML is invalid?

You'll get an error message. The usual culprit is inconsistent indentation — YAML expresses hierarchy through it, so keep each level's indentation identical (spaces, not tabs).