SafeToolkits

YAML to JSON

Convert YAML documents to JSON.

Runs in your browser: what you paste is never uploaded

Several documents (separated by ---) become a JSON array. JSON to YAML →

How to use YAML to JSON

  1. 1Paste or type your inputUse the box above, or click Sample to try it with an example.
  2. 2Choose your optionsChoose the JSON indent. Several YAML documents separated by --- become a JSON array.
  3. 3Copy the resultCopy it with one click. Nothing is sent anywhere.

About YAML to JSON

Convert YAML (config files, Kubernetes manifests, CI pipelines) to JSON, with errors shown at the exact line.

Frequently asked questions

Are anchors and aliases supported?

Yes. Aliases are expanded into their values in the JSON.

What happens to comments?

JSON has no comments, so YAML comments are dropped.

Is what I paste sent anywhere?

No. The tool runs entirely in your browser and never sends what you type or paste to a server.

Is it free?

Yes. It's free, with no sign-up and no limits.

Related tools