Home › Converters › YAML to JSON Converter

YAML to JSON Converter

Convert YAML into JSON. The converter covers the YAML most config files actually use: nested mappings, lists, strings, numbers, booleans and nulls.

YAML to JSON Converter

How to use the YAML to JSON Converter

  1. Paste your YAML into the input box.
  2. Choose an indent style for the JSON output.
  3. Press Convert.
  4. Copy or download the JSON.

About this tool

Full YAML is a huge specification with anchors, tags and multi-line documents. This converter honestly covers the common subset — indentation-based mappings, dash lists (including lists of mappings), flow lists like [1, 2] and flow mappings like {a: 1}, quoted strings, numbers, booleans and null — which is what the overwhelming majority of config files use. Anything outside that subset is reported as a parse error with the line number, rather than converted wrongly in silence.