JSON to YAML Converter

JSON Input
1
YAML Output

Last updated:

Jsonic's JSON to YAML converter transforms JSON into YAML format with 2-space indentation. It handles all JSON types: strings, numbers, booleans, null, arrays, and nested objects. String values that could be misread as other types are automatically quoted. Paste your JSON and click Convert — the conversion runs entirely in your browser.

How to convert JSON to YAML

  1. Paste your JSON into the left panel.
  2. Click Convert.
  3. YAML output appears with 2-space indentation.
  4. Click Copy or Download to save.

FAQ

Is the YAML output standards-compliant?

Yes. The output follows YAML 1.2 conventions — strings are quoted when necessary, booleans use true/false, and nulls use ~.

How are nested objects converted?

Nested JSON objects become indented YAML mappings. Arrays of objects become YAML sequences with block mapping entries.

Is my data sent to a server?

No. Conversion runs entirely in your browser.

Can I use the YAML output in Kubernetes or Docker configs?

Yes. The output is standard YAML and works in any YAML-consuming tool including Kubernetes manifests, Docker Compose files, and GitHub Actions workflows.

What happens to JSON null values?

JSON null values are represented as ~ in YAML.

How are numbers and booleans handled?

JSON numbers and booleans are preserved as-is in YAML without quotes.

Can I convert YAML back to JSON?

Not in this tool. For the reverse direction, you can manually convert or use a separate YAML-to-JSON tool.