Is YAML really just JSON with cleaner syntax?▾
YAML is a superset of JSON — every valid JSON document is also valid YAML. However, YAML adds features like comments, anchors, aliases, multi-document streams, and bare unquoted strings, which have no equivalent in JSON. These extras are why YAML is preferred for human-edited config files.
Why does YAML choke on a value like NO or yes?▾
YAML 1.1 (used by many older parsers) treats bare NO, yes, on, off, true, and false as booleans. YAML 1.2 changed this so only true and false are boolean. This tool emits YAML 1.2, but if your target parser is older, quote values like 'NO' to force string interpretation.
How are JSON null values represented in YAML output?▾
JSON null becomes the bare YAML value null (or ~ in some serialisers). Both are equivalent in YAML 1.2. On the return trip, YAML null converts back to JSON null correctly.
Will my comments survive the YAML → JSON → YAML round trip?▾
No. Comments are a YAML-only concept and are discarded when converting to JSON because JSON has no comment syntax. They cannot be reconstructed on the way back. Keep the original YAML file in version control if comments matter.
Does it support Kubernetes-style multi-document YAML files?▾
Yes. A YAML file containing multiple documents separated by --- is parsed into a JSON array where each element corresponds to one document. Converting a JSON array back to YAML produces the multi-document form with --- separators.
What happens to YAML anchors and aliases when converting to JSON?▾
Anchors (&name) and aliases (*name) are resolved during parsing — each alias is replaced with a deep copy of the anchored value. The resulting JSON contains plain objects with no anchor references, which is correct for downstream tools.
Why is my converted YAML using flow style ({a: 1}) instead of block style?▾
Flow style is compact inline notation; block style uses indented newlines. The tool defaults to block style for readability, but small objects may be emitted inline based on depth heuristics. Toggle the block-style option to force all objects and arrays onto separate lines.
Can I trust this with secrets from a Helm values.yaml file?▾
Yes. The js-yaml library runs entirely in your browser — no data is sent to any server, and no request is made. Your API keys, database passwords, and Vault tokens stay in your browser tab memory and are cleared when you close the page.