YAML to JSON Converter

Convert a YAML document into JSON.

Runs in your browser Developer Tools Free · No account

Input

Processed locally

This tool runs entirely in your browser. The data you paste or load is never uploaded.

Result

Enter your input, then run the tool.

About this tool

Parses YAML, including anchors, multi-line strings and nested sequences, and emits equivalent JSON. Comments disappear by design because JSON has no comment syntax; the tool says so instead of pretending otherwise.

How to use it

  1. Paste YAML such as a Kubernetes manifest or CI file.
  2. Choose the JSON indentation.
  3. Convert, then copy or download the JSON.

Frequently asked questions

Why are my comments gone?
JSON does not support comments, so they cannot be represented. Keep the YAML source as the annotated version.
Are anchors and merges resolved?
Yes. YAML anchors are expanded into their values, which is what a JSON consumer expects.

Keep going

More in this category