YAML ⇔ JSON Converter
Convert between YAML and JSON. Ideal for converting configuration file formats and editing Kubernetes manifests, Docker Compose, GitHub Actions, and OpenAPI specs.
✅ 100% free, no signup, runs entirely in your browser (powered by js-yaml)
Supported Formats
- YAML 1.2 compliant (uses the js-yaml library)
- JSON output is formatted and validated
- Multi-document(
---separated): only the first document is converted - YAML anchors(
&/*) are also supported
Copied
If something is broken or not displaying correctly, let us know via the contact form.
📖 How to Use
-
1
Paste inputPaste YAML or JSON on the left; the right side updates automatically.
-
2
Toggle directionSwitch YAML → JSON or JSON → YAML. Tab/space and indent width configurable.
-
3
Check validation errorsSyntax errors show line and reason — great for K8s manifests and GitHub Actions.
❓ FAQ
Are YAML anchors (&) and aliases (*) supported?
Yes, via js-yaml. Anchors, aliases, and tags are parsed. They get expanded when converted to JSON.
Are multi-document YAML (---) files handled?
Multi-doc YAML becomes a JSON array — works with multi-resource Kubernetes manifests.
Works with Docker Compose / K8s manifests?
Yes. Converts losslessly for CI pipelines that post to APIs as JSON.
Is the YAML Norway bug handled?
We use YAML 1.2, so NO/Yes stay strings — no Norway bug.