📘

YAML to JSON

Convert YAML documents into JSON

🔄 ConvertersFreeRuns in your browser

JSON output

—

Supports nested maps, lists, quoted strings, numbers, booleans, and inline arrays. Comments and blank lines are ignored.

About the YAML to JSON

The YAML to JSON Converter reads a YAML document and returns equivalent JSON. It handles nested maps, lists, quoted strings, numbers, booleans, and inline arrays, which covers most configuration files.

Kubernetes manifests, CI pipelines, and static site configs are all YAML. Converting once to JSON makes the structure easy to inspect and to reuse in JavaScript tooling.

  • ✓Nested maps and lists
  • ✓Comments and blank lines ignored
  • ✓Clear indentation error messages

How to use the YAML to JSON

  1. 1

    Paste the YAML document.

  2. 2

    Choose pretty or minified JSON.

  3. 3

    Convert and copy the output.

Frequently asked questions

Why does my YAML fail to parse?+

The usual causes are tabs used for indentation, a missing colon after a key, or inconsistent spacing between levels. Replace tabs with spaces and align siblings.

Are anchors and aliases supported?+

No. YAML merge keys and anchors are not resolved, so expand them before converting if your file relies on them.

Save YAML to JSON to your favorites, or keep browsing converters.

Browse all 45 converters →