Add your input
A YAML or JSON document.
Move between readable configuration and strict structured data privately.
Your work stays private in your browser while you use this tool.
Parse YAML into two-space JSON or serialize a JSON value as YAML with two-space indentation and lines targeted to 100 characters. The output can be copied or downloaded in the selected format.
A YAML or JSON document.
Move between readable configuration and strict structured data privately.
Equivalent JSON or YAML text.
Review anchors, aliases, custom tags, and date-like values when moving between formats.
Turn a small YAML configuration into JSON for a tool that accepts only JSON.
Produce readable YAML from a JSON object before editing deployment settings.
Check how scalar values and nested collections survive a format change.
YAML input is parsed with js-yaml and then passed to JSON.stringify(); empty YAML becomes JSON null. In the reverse direction, strict JSON.parse() creates a JavaScript value and js-yaml emits YAML with two-space indentation, a 100-character target width, and reference aliases disabled.
Yes. YAML ↔ JSON converter is free to use.
Yes. Your work stays private while you use the tool — nothing you enter is uploaded.
No. Comments are not part of the parsed data value, so they are discarded during YAML-to-JSON conversion.
The serializer emits a fresh representation from parsed data. It does not retain the original spacing, quote choices, flow style, anchors, or line wrapping.