100% client-side — files never leave your device

YAML to JSON

Convert YAML configuration into JSON — anchors, block scalars and deep nesting included — entirely inside your browser.

How it works

  1. Paste or open your YAML. Kubernetes manifests, CI pipelines, Docker Compose files — anything valid parses.
  2. Read the JSON. Conversion is instant and re-runs on every keystroke.
  3. Copy or download. Take the result to the clipboard or save it as a .json file.

Two syntaxes for the same data model

YAML and JSON describe the same shapes — maps, lists, scalars — so conversion is mechanical rather than lossy. YAML is written by humans (comments, no braces, readable indentation); JSON is consumed by machines (unambiguous, universally parsed).

Where the edges are

YAML has features JSON lacks: comments, anchors and aliases for reuse, multiple documents in one file, and typed timestamps. Comments disappear in conversion, aliases are expanded into their full value, and only the first document is converted. Dates become strings, since JSON has no date type.

The Norway problem

YAML 1.1 famously parsed NO as the boolean false, breaking country-code lists. YAML 1.2 fixed this, and the parser here follows 1.2 — but if your file was written for an older tool, quote ambiguous scalars to be safe.

Going the other direction? Use JSON to YAML. For tabular data, see CSV to JSON.

Frequently asked questions

Does it support anchors, aliases and multi-line strings?

Yes. Parsing uses a full YAML 1.2 implementation, so anchors (&name), aliases (*name) and block scalars (| and >) all behave as expected. One exception: a multi-document file — several documents separated by --- in one stream — is rejected, because JSON has no way to represent a stream of documents. Convert each document separately.

Is my configuration file uploaded?

No. Parsing happens in your browser — which matters, because YAML files are exactly where API keys, database passwords and deployment secrets tend to live.

Why did my YAML fail to parse?

Almost always indentation: YAML forbids tabs for indentation, and mixed spacing breaks nesting silently. The error message reports the offending line.

What happens to comments?

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

What happens to YAML dates and aliases?

Aliases are expanded into ordinary JSON values rather than preserved as references. YAML timestamps become strings because JSON has no dedicated date type.

Related tools