Convert config both ways, safely.
How to use YAML ⇄ JSON Converter
Choose a direction. The tool starts in YAML to JSON mode. Press the swap button (Swap direction) to switch to JSON to YAML.
Paste your input. Paste into the YAML input or JSON input box. A sample YAML config is pre-filled.
Read the output. The converted result appears in the output box as you type, or an error message explains what could not be parsed.
Copy the result. Press Copy output to copy the converted text.
Limits and privacy
- The YAML parser is a custom one covering a practical subset: block mappings and sequences, inline flow lists and maps, quoted and plain scalars, comments, and basic | and > block scalars.
- Not supported: anchors and aliases, tags and multi-document streams. Document markers (--- and ...) are simply skipped.
- Scalars are typed as null, booleans (true/false in common casings), integers, floats or strings. Values like yes, no, on and off stay strings.
- JSON to YAML writes block-style YAML with two-space indentation, and quotes strings that could be mistaken for other types.
- Swapping direction moves the current output into the input box.
- Conversion runs in your browser. Nothing is uploaded.
Frequently asked questions
How do I convert YAML to JSON?
Leave the tool on YAML to JSON, paste your YAML, and copy the JSON output.
Does it support anchors, aliases and multiple documents?
No. It supports a practical subset of YAML, so files using anchors, tags or several documents may not convert correctly.
Why did my 'yes' value stay a string?
The parser only treats true and false as booleans. Other YAML 1.1 boolean spellings such as yes, no, on and off are kept as strings.
Is my config sent anywhere?
No. Conversion happens locally in your browser.