YAML and JSON Converter
Convert YAML to JSON or JSON to YAML, with the direction detected automatically. Multi-document YAML, anchors and comments are understood.
Free · No upload · 100% on your device
How to use YAML and JSON Converter
- Type or paste your code or data, or open a file.
- Choose the settings in the side panel. The result updates as you type.
- Copy the result or download it as a file.
Private by design. Everything you type, open or record is processed in this browser tab and is never uploaded to KittySuite.
About YAML and JSON Converter
Paste either format and the other comes out. Several YAML documents separated by --- become a JSON array. YAML comments cannot be represented in JSON, so they are dropped when converting to JSON.
Everything runs in this browser tab: your text is never uploaded or stored, and the result updates as you type. It keeps working offline once the page has loaded.
YAML and JSON Converter: frequently asked questions
How do I convert YAML to JSON?
Paste the YAML or open a .yaml file. The direction is detected automatically, so pasting JSON gives YAML.
What happens to YAML comments?
JSON cannot store comments, so they are dropped when converting to JSON.
Are anchors and multiple documents supported?
Yes. Anchors are understood, and several documents separated by --- become a JSON array.
Can I choose the indentation?
Yes. Choose 2 or 4 spaces for the YAML or JSON output.