json ↔ yaml Converter

Run json ↔ yaml Converter using the supplied input and options.

CSV has header row. XML conversion uses root/item with attributes under @attributes; mixed content is rejected. Reverse conversion is not always lossless.

Your workbenchInputs are not stored

Result

Enter your values and run the tool to see your result.

What this tool does

Converts between JSON and YAML for the same data. YAML expresses structure through indentation.

How to use it

  1. Paste the data.
  2. Choose the direction.
  3. Run it and check the indentation and value types.

Worked example

Converting [{"name":"Ada","value":42}] to YAML yields a hyphen-led list item with name and value indented beneath.

Frequently asked questions

When is YAML better than JSON?
YAML reads better for config files people edit by hand. For machine-to-machine data, JSON has fewer parser differences and is safer.
A long string was wrapped across lines.
That is YAML line folding. Convert back and confirm it restores to a single line.

What this tool does not cover

Input is processed in your browser. YAML comments and anchors are not preserved.

References