About YAML to JSON

YAML to JSON Converter handles the YAML that real config files use: block mappings and sequences, plain and quoted scalars, comments, the document marker, | and > block scalars, and inline [a, b] / {a: 1} collections. It converts in both directions as you type.

Everything runs in the page. Nothing is uploaded.

How to use it

  1. Pick a direction: YAML to JSON, or JSON to YAML.
  2. Paste your data on the left; the result appears on the right.
  3. Copy or download the output.

Common questions

Which YAML features are not supported?

Anchors and aliases, explicit tags, complex keys, and multiple documents in one file. Everything else common to config files works.

Does JSON to YAML quote strings safely?

Yes. Any string that would otherwise read as a number, boolean, or null is quoted.

Are comments kept?

No. Comments are stripped during parsing; JSON has no place to put them.

Is my data uploaded?

No. Both directions run in JavaScript in the open tab.