🔄 YAML ↔ JSON Converter

Convert YAML to JSON or JSON to YAML instantly. Handles nested objects, arrays, multiline strings, and inline syntax — all in your browser.

YAML → JSON JSON → YAML Nested & Multiline
Indent:
YAML Input
JSON Output

FAQ

What YAML features are supported?

The converter handles mapping (key: value), sequences (- item), nested structures, quoted strings, block scalars (| literal, > folded), inline arrays and objects, booleans (true/false/yes/no), null values, and numeric types including floats.

Why might my YAML fail to parse?

Common issues: inconsistent indentation (mix of tabs and spaces), missing space after colon in key:value, unquoted strings that look like YAML reserved values (like yes which is parsed as boolean), or multi-document YAML (--- separators).

Can I convert JSON arrays?

Yes. JSON arrays convert to YAML sequences with - prefix. Nested arrays and objects are fully supported in both directions.

Does YAML preserve key order?

YAML mappings are theoretically unordered, but this converter preserves insertion order as encountered in the source text. JSON object key order follows the same convention.