YAML to JSON Converter
Convert YAML structures to standard JSON fields. Fast, free, and fully client-side.
How the YAML to JSON Converter Works
Parses a YAML document and re-emits it as JSON with two-space indentation. Mappings become objects and sequences become arrays. Malformed YAML is reported as an error instead of producing output. Conversion runs in your browser and the file is never uploaded.
Usage Example
Converting a Kubernetes manifest into JSON so it can be posted to an API that expects a JSON body.
Frequently Asked Questions
What formatting does the JSON output use?
The output is standard JSON printed with two-space indentation. YAML comments are dropped, because JSON has no comment syntax, so keep a copy of the original YAML if its notes matter.
Why does a YAML file fail to convert?
The parser stops and its error message is shown in place of the output. Inconsistent indentation and tab characters inside indentation are common causes of this error in hand-written files.
How are YAML scalars turned into JSON types?
Unquoted true and false become JSON booleans, and unquoted numbers become JSON numbers. Wrap a value in quotes in the YAML to keep it as a string in the output.
Browse more
See all JSON tools.
