A short companion for YAML to JSON: when it is useful, what it expects, and what to check before using the result.
What it does
Convert YAML to JSON, preserving nesting, arrays and types. Anchors and aliases are resolved, so the output is the effective document rather than the shorthand used to write it.
Use the tool
Open YAML to JSON, add the input the tool asks for, run it, and check the output before using it elsewhere.
Input and output
- Input: text.
- Output: text.
- Category: Formats.
Privacy and processing
Processing happens locally in your browser. This tool does not upload the input to ilham.dev.
Questions
What happens to a non-string key?
JSON requires string keys, so numeric and boolean keys are converted to their string form. That is a real difference between the two formats, not a bug.
Are duplicate keys allowed?
No. YAML permits them but almost every parser takes the last one silently, which hides mistakes. This tool reports them instead.
Related guide
For broader background, see Working With Structured Data.