๐Ÿ“‘ YAML โ‡„ JSON Converter

YAML Input
JSON Output

This is a lightweight converter supporting a common YAML subset โ€” advanced YAML features are not supported.

Convert between YAML and JSON. Useful when you need to change a config file's format, or just want to see the same data written both ways โ€” including checking a Kubernetes manifest, docker-compose.yml, or CI config.

How to use

  1. Choose the "YAML โ†’ JSON" or "JSON โ†’ YAML" mode.
  2. Paste the YAML or JSON you want to convert into the input box.
  3. Click "Convert" to see the result in the other format.
  4. Click "Copy" to copy the result to your clipboard.

FAQ

Can it convert YAML with comments?

When converting YAML to JSON, comments aren't included in the result since JSON itself has no comment syntax.

Can I convert in either direction?

Yes โ€” both YAML โ†’ JSON and JSON โ†’ YAML are supported.

Is this useful for checking a Kubernetes manifest?

Yes โ€” converting a YAML manifest to JSON can make its structure clearer in some cases, though advanced YAML features like anchors aren't supported.

Why does conversion fail?

It fails if the input isn't valid YAML or JSON syntax โ€” check your indentation and quoting.

Is my input sent to a server?

No, conversion happens entirely in your browser and nothing is sent externally.