ShadTools

JSON to YAML

Convert valid JSON objects, arrays, and scalar values into deterministic YAML 1.2 with safe quoted strings and keys.

JSON input
YAML output

Deterministic YAML output

The converter emits two-space indentation, JSON-compatible quoted strings, and stable object order. It converts JSON data rather than supporting YAML-only features such as anchors or comments.

Frequently Asked Questions

Why are strings quoted?+

Quoting strings preserves their exact JSON type and avoids YAML words such as yes, no, or null being interpreted as other scalar types.

Are arrays and nested objects supported?+

Yes. Arrays become YAML sequences and nested objects become indented mappings.

Does the conversion add YAML anchors, aliases, or comments?+

No. JSON has no equivalent metadata, so the output contains only the values and structure present in the input.

Related Tools