Encode text to Base64, with correct Unicode handling.
Open toolYAML to JSON
Convert YAML config files into JSON, with precise error line/column reporting.
JSON output will appear hereWhat is a yaml to json?
This tool converts YAML into JSON - useful since YAML is common in config files (Docker Compose, Kubernetes, CI pipelines) but JSON is what most code actually consumes. It correctly handles nested structures, lists, comments (which are simply ignored, as in YAML itself), and YAML's various null representations.
How to use this tool
- 1Paste your YAML, or upload a .yaml or .yml file.
- 2Click Convert.
- 3If the YAML has a syntax error, the exact line and column are shown.
- 4Copy the JSON or download it as a .json file.
Common use cases
Frequently asked questions
What happens to comments in the YAML?
They're ignored during parsing, exactly as YAML itself treats them - comments don't appear in the resulting JSON since JSON has no concept of comments.
Does it handle YAML's different ways of writing null?
Yes - both `~` and the word `null` are recognized as YAML null and converted to JSON null.
Can it parse lists and nested objects?
Yes - YAML's indentation-based lists and nested mappings are converted into JSON arrays and objects respectively, at any depth.
Is my YAML uploaded anywhere?
No - parsing happens entirely in your browser, whether you paste the YAML or upload a file.
{
"runs_in_browser": true,
"data_sent_to_server": false,
"signup_required": false,
"price": "free",
"category": "Encoding"
}