When to use it
YAML is the most common format for config files (Docker Compose, Kubernetes, GitHub Actions, Ansible), while JSON is the universal format for APIs and most programming languages. This tool converts both ways.
How it works
Uses the open-source js-yaml library, widely used, instead of a homemade parser. Nothing is sent to a server.
Conversion example
YAML with a service: key and the indented items port: 8080 and enabled: true becomes the JSON {"service":{"port":8080,"enabled":true}}. YAML lists introduced by a dash become arrays, and numbers and booleans are recognized as such.
YAML gotchas
Indentation defines the structure and must use spaces, never tabs. Unquoted values get interpreted: in some versions of the format yes and no become booleans, and 1.10 turns into the number 1.1, losing the trailing zero. When a value must stay text, such as a version string or a zip code with a leading zero, wrap it in quotes.
Anchors expand
Anchors and references (&base and *base) are expanded in the JSON, which has no such feature, so the output can end up larger than the input.
Frequently asked questions
Are YAML comments preserved when converting to JSON?
No — JSON doesn't support comments, so they're dropped when converting YAML → JSON.
Is my data sent to any server?
No — the entire conversion happens locally in your browser.
Can I convert several YAML documents separated by ---?
Multi-document files, such as Kubernetes manifests, use --- separators. Convert each document on its own, since JSON represents a single value at a time.
What is the most common YAML conversion error?
Almost always inconsistent indentation or a colon inside an unquoted value, as in time: 10:30. When the parser complains about a line, check the line before it: the real mistake is often there.