JSON to YAML Converter
Convert between JSON and YAML formats instantly. Bidirectional conversion with real-time preview.
Convert JSON to YAML 1.2-compatible flow syntax, or read a bounded YAML subset.
No tags, anchors, aliases, block scalars or multiple documents. Unsupported syntax fails; this is not a complete YAML parser. Text cap: 1,000,000 characters; 64 levels and 50,000 entries.
Method and limits
Method and limits
Output uses quoted JSON keys and strings, also valid YAML flow syntax. Reverse mode reads JSON flow values and indented mappings/sequences, including doubled single quotes.
Decimal JSON uses JavaScript numbers; precision-changing tokens and unsafe integers are rejected. Quote exact identifiers.
Decimal JSON uses JavaScript numbers; precision-changing tokens and unsafe integers are rejected. Quote exact identifiers.
Processing happens in this browser; these converters do not upload your draft. Other site features can make requests.
Working…
Copied
Copy failed. Select the result and copy it manually.
About JSON to YAML Converter
Convert JSON to YAML 1.2-compatible flow syntax, or read a bounded YAML subset. Output uses quoted JSON keys and strings, also valid YAML flow syntax. Reverse mode reads JSON flow values and indented mappings/sequences, including doubled single quotes.
{"a":1,"b":[true,false]} ⇄ ---\n{"a":1,"b":[true,false]}
No tags, anchors, aliases, block scalars or multiple documents. Unsupported syntax fails; this is not a complete YAML parser. Text cap: 1,000,000 characters; 64 levels and 50,000 entries.
Use Cases
How to use
Choose the mode and enter a draft; inspect the result before copying or downloading.
Output uses quoted JSON keys and strings, also valid YAML flow syntax. Reverse mode reads JSON flow values and indented mappings/sequences, including doubled single quotes.
Pro Tips
- No tags, anchors, aliases, block scalars or multiple documents. Unsupported syntax fails; this is not a complete YAML parser. Text cap: 1,000,000 characters; 64 levels and 50,000 entries.
Frequently Asked Questions
Output uses quoted JSON keys and strings, also valid YAML flow syntax. Reverse mode reads JSON flow values and indented mappings/sequences, including doubled single quotes.
No tags, anchors, aliases, block scalars or multiple documents. Unsupported syntax fails; this is not a complete YAML parser. Text cap: 1,000,000 characters; 64 levels and 50,000 entries.