Document

YAML to JSON Converter Online Free

Upload a YAML file or paste YAML text and download it as a formatted JSON file.

YAML to JSON
Upload a file or paste YAML below
Upload File
Paste YAML
Click to upload or drag & drop a .yaml / .yml file
Supports YAML 1.2. Anchors, aliases, and multi-document streams are handled. The output is a formatted JSON file.
0%
Download JSON

How to convert YAML to JSON

Convert YAML into JSON — for inspecting a Kubernetes manifest, a CI pipeline or a configuration file with tooling that speaks JSON, or to check what your YAML actually parses to.

  1. Paste your YAML, or upload the file.
  2. Check it parses; indentation errors are reported with a line number.
  3. Convert to JSON.
  4. Copy or download the result.

Accepts standard YAML. Nothing is retained after the conversion, and uploads are deleted automatically within 24 hours.

Frequently asked questions

Why does my YAML fail to parse?

Almost always indentation — a tab character where spaces are required, or an inconsistent level. YAML forbids tabs for indentation, and editors that insert them are the usual cause.

Are YAML comments kept?

No. JSON has no comment syntax, so they are dropped. Keep the YAML as your source of truth if the comments matter.

Does it handle multi-document YAML?

Files separated by --- contain several documents. JSON holds one value, so convert the document you need, or expect them as an array.

Why did my version number become a number?

YAML types unquoted scalars, so 1.10 parses as a number and loses the trailing zero. Quote values like version numbers and leading-zero codes to keep them strings.