Data & Formatting

YAML ⇆ JSON Converter

Convert between YAML and JSON formats

Convert YAML to JSON or JSON to YAML instantly. Because YAML is the format of choice for CI pipelines, Kubernetes manifests, and app config (while APIs and tooling often expect JSON) this two-way converter saves you from error-prone manual reformatting.

Runs 100% in your browser · no upload, no tracking, no ads

How to use YAML ⇆ JSON Converter

  1. Paste your YAML or JSON content.
  2. Select the direction to convert.
  3. See the equivalent document in the other format.
  4. Copy it into your pipeline, manifest, or API call.

Frequently asked questions

Are comments preserved when converting YAML to JSON?

No. JSON has no concept of comments, so YAML comments are dropped during conversion. Values and structure are fully preserved.

Does indentation matter in my YAML input?

Yes. YAML uses indentation to express structure, so consistent spacing is required for it to parse. The converter reports errors if the YAML is malformed.

Can it handle multi-document YAML?

It focuses on converting a document's data structure between formats; provide one document at a time for predictable results.

Related Data & Formatting tools