YAML to JSON Converter

Convert YAML to JSON and JSON to YAML — free, handling multi-document YAML, anchors and aliases. 100% in your browser; config files never uploaded.

100% private — runs entirely in your browser. Nothing you enter is uploaded or logged.

100% private — runs in your browser
YAML → JSON JSON → YAML

Handles multi-document YAML, anchors/aliases and standard type coercion. Converted entirely in your browser — config files never leave your device. Powered by the open-source js-yaml library.

How to use the YAML to JSON Converter

  1. Choose YAML to JSON or JSON to YAML.
  2. Paste your document.
  3. Read the converted output.
  4. Copy it into your config or code.

What you can use it for

  • Convert Docker/Kubernetes/CI YAML to JSON
  • Turn JSON into readable YAML config
  • Resolve anchors and multi-document YAML
  • Convert config files privately in the browser

More free tools

Wrangling code or data?

Format, encode, hash and minify with our free developer tools — 100% in your browser.

Browse all free developer tools →

Frequently asked questions

How do I convert a YAML config to JSON?

Paste the YAML and it outputs formatted JSON; switch modes to go the other way.

Does it support multi-document YAML?

Yes — documents separated by — are parsed into an array of objects.

How are YAML anchors and aliases handled?

They're resolved during parsing, so the JSON output contains the expanded values.

Why did yes/no become true/false?

YAML coerces yes, no, on and off to booleans by default — quote them ("yes") if you need the literal string.

Is my config uploaded to convert it?

No — conversion is entirely in-browser, so Docker, Kubernetes and CI configs stay on your machine.