YAML to JSON
Convert YAML documents into JSON for APIs and JavaScript applications.
Input
Result
How to use
Converting YAML to JSON
Press Convert to serialise the parsed YAML as JSON.
- Paste YAML into the input editor.
- Press Convert.
- Copy the JSON output.
Frequently asked questions
How many documents are converted?
The first document in a multi document stream is converted.
Are numeric keys supported?
Yes, keys are converted to strings because JSON requires string keys.
Related tools
JSON to YAML
Convert JSON to clean YAML for configuration files and Kubernetes manifests.
YAML Formatter
Parse and re-serialise YAML with consistent indentation and validation.
XML to JSON
Convert XML into JSON with attributes and repeated elements handled sensibly.
XML Formatter
Pretty print XML with consistent indentation and optional attribute wrapping.
YAML Validator
Validate YAML syntax and get a precise error when indentation or structure is wrong.
XML Validator
Check that an XML document is well formed and see a clear error description.