Subformer
Free · No signup · Runs in your browser
YAML
JSON

YAML to JSON Converter

Convert YAML config to JSON for tools, APIs, and scripts that prefer JSON syntax.

Why convert YAML to JSON?

YAML to JSON is what you want when a tool that only speaks JSON needs to consume a config that was authored in YAML. Most CI systems, JavaScript scripts, and REST APIs prefer JSON. The conversion is lossless in structure - only the syntax changes.

We parse YAML with the yaml library (full YAML 1.2 support), then stringify to indented JSON. Multi-document YAML files (separated by --- markers) emit only the first document; use a downstream split for multi-doc workflows. Comments are dropped (JSON doesn't support them). Everything runs locally.

YAML

About YAML

YAML is a human-friendly data serialization format - indentation-based, less noisy than JSON, ideal for config files. Used by Kubernetes, CI pipelines, and most modern DevOps tooling.

JSON

About JSON

JSON (JavaScript Object Notation) is the lingua franca of structured data on the web. Arrays, objects, strings, numbers, booleans. Read by every modern programming language.

How to convert YAML to JSON

  1. 01

    Drop your YAML file

    Drag a YAML onto the converter above, or click the box to pick one from your device.

  2. 02

    JSON is already selected

    We've preselected JSON as the output format. Change it from the dropdown if you want a different target.

  3. 03

    Convert and download

    Click Convert and wait for the progress bar to finish. Download the JSON when it's ready.

YAML to JSON FAQ

See all formats →