YAML ↔ JSON Converter
Paste YAML or JSON on the left and the other format updates live. Perfect for Kubernetes, Docker, and CI configs.
How to Use
Choose YAML → JSON or JSON → YAML. Syntax errors highlight in red as you type.
Type into the left pane and the right pane updates live. You can also tweak the indent width.
Copy the result with one click, or swap the panes to chain conversions.
FAQ
Is anything lost going from YAML to JSON?
Core YAML 1.2 data (string, number, bool, null, array, map) round-trips perfectly to JSON. YAML-only features like comments, anchors, tags, and date types can't exist in JSON and are dropped or stringified.
What indent does JSON → YAML use?
Default is 2 spaces; you can pick 2 or 4. Most Kubernetes and Ansible projects use 2.
Are multi-document YAMLs (--- separators) supported?
Yes — YAML with `---` separators converts to a JSON array of documents. Single documents become a single object.
Can I paste large files?
Up to ~1MB processes comfortably in the browser. Larger inputs may briefly stall the page.
Is anything sent to a server?
No. All conversion happens in your browser via js-yaml.