YAML ↔ JSON Converter

Convert between YAML and JSON in either direction. Backed by js-yaml — handles anchors, multi-line strings, and the full YAML 1.2 spec. Useful for moving between Kubernetes manifests, GitHub Actions, OpenAPI specs, and JSON.

Features

  • Bidirectional: YAML → JSON and JSON → YAML
  • Full YAML 1.2 support via js-yaml
  • Configurable JSON indent (2/4/8 spaces)
  • Validates and shows parse errors with line/column
  • Live conversion

How to yaml ↔ json converter

  1. Pick direction — YAML → JSON or JSON → YAML.
  2. Paste your input — Output updates as you type.
  3. Copy result — Click Copy on the output box.

Frequently asked questions

Is it safe to use the YAML ↔ JSON online?
Yes — and ours is safer than most. Many free online tools quietly upload your files to their servers to do the work. We don't. Everything happens inside your browser on your own device, so your files never reach the internet. There's no upload step, no server copy, and no way for us (or anyone else) to see what you're working on.
Are my files uploaded to a server?
No. There's no server-side processing here. The whole tool is a tiny app that runs in your browser — we don't even have a server that could receive your files. You can confirm this by opening your browser's network tab while you use the tool: nothing leaves your device.
Do I need to sign up or pay?
No. There's no account, no email collection, no credit card. The tool is free to use as much as you want, on as many files as you want. We're supported by a few unobtrusive ads on the page — not by your data.
Will it preserve YAML comments?
No — comments are stripped during conversion (JSON has no comment syntax). Round-tripping isn't lossless.
Does it handle Kubernetes multi-document YAML?
Yes — multiple `---`-separated documents are emitted as a JSON array.