{ }
YAML β JSON Converter
Convert YAML to JSON and JSON to YAML bidirectionally.
About this tool
Processing happens directly in your browser. No files are uploaded to the server.
YAML β JSON Converter transforms configuration files between the two most common data formats. YAML β JSON is useful for APIs; JSON β YAML makes configs more readable.
How to use
- 1 Choose the direction: YAML β JSON or JSON β YAML.
- 2 Paste your data into the input box.
- 3 Click Convert.
- 4 Copy the pretty-printed result.
Frequently asked questions
Are comments preserved?
YAML comments are stripped during conversion since JSON has no comment syntax.
What YAML features are supported?
Standard YAML 1.2 including anchors, aliases and multi-line strings.
Is my data uploaded?
No. The js-yaml library runs entirely in your browser.
Can I use this for Kubernetes / Docker configs?
Yes. It handles the same YAML used by those tools.