ToolBuddy
In Browser

JSON ↔ YAML

Convert JSON to YAML and YAML back to JSON in the browser. Paste a config, Kubernetes snippet, or API fixture and copy the other format. Parsing uses js-yaml locally. Documents are never posted to a converter.

Runs in your browser. Nothing is uploaded.

Loading tool…

About this tool

Convert JSON to YAML and YAML to JSON with js-yaml in the browser. Maps, lists, and scalars round-trip for typical config: Docker Compose-ish files, GitHub Actions fragments, and API fixtures. Anchors and custom tags are not a goal. This is dump/load, not a Kubernetes admission controller.

How to use: paste JSON, pick JSON → YAML, copy. Reverse for a .yml you want as a JSON blob. Parse errors from either side show in the alert line. Indent and quoting follow js-yaml defaults so output is readable, not bit-identical to every YAML 1.1 dialect.

Example: {"replicas":3} becomes replicas: 3. A YAML list of services becomes a JSON array. Duplicate keys and tabs-as-indent can fail the YAML parser. That is expected.

Documents never go to a YAML SaaS. Related: JSON formatter to tidy the JSON side, JSON ↔ XML if the next hop is a SOAP stack. After the page loads you can keep converting offline.

FAQ

Related Convert tools