Why does YAML "yes" become true in JSON?
YAML 1.1 treats unquoted yes, no, on, off, y, and n as booleans, so they convert to true or false in JSON. This is the famous Norway problem — the country code "NO" parsed as false. To keep them as strings in your JSON output, quote the YAML values: "yes", "no", "NO". YAML 1.2 only recognizes true and false as booleans, but many tools still default to 1.1 semantics.
How are YAML anchors and aliases handled?
YAML anchors (&name) and aliases (*name) are resolved before serialization. The referenced value is inlined into the JSON output everywhere the alias appears, because JSON has no native reference syntax. If you need to preserve sharing semantics in the JSON consumer, you must implement that at the application layer.
What about YAML date and timestamp types?
YAML 1.1 supports a native !!timestamp tag (ISO 8601 dates). JSON has no date type, so timestamps are emitted as ISO 8601 strings. Code consuming the JSON must parse the string back into a Date if needed.
Are YAML comments preserved in JSON?
No. JSON has no comment syntax, so YAML comments (lines beginning with #) are stripped during conversion. Only data values and structure are emitted. If you need annotations in the JSON, embed them as data fields like "_comment": "..." instead.
Will multi-line YAML strings convert correctly?
Yes. YAML block scalars using the | (literal) and > (folded) operators are converted to JSON strings with the appropriate newline behaviour: literal blocks keep all line breaks, folded blocks join lines with spaces. The result is a single quoted JSON string with embedded \n where required.
Can it convert multi-document YAML files separated by ---?
Multi-document YAML (separated by ---) is converted to a JSON array, one element per YAML document, in source order. Most JSON consumers prefer a single root object, so for Kubernetes manifests it is common to either pick a single document or wrap the array in a parent key.
Is my YAML uploaded to your servers?
No. Conversion runs entirely in your browser using JavaScript. Files containing Kubernetes secrets, database URLs, OAuth client IDs, or proprietary infrastructure configuration never leave your device. You can verify in DevTools → Network: no request fires when you click Convert.
How are numbers preserved when converting YAML to JSON?
Unquoted numeric YAML scalars (1, 1.5, 1e10, 0xFF, 0o77) are parsed as JSON numbers. Quoted versions ("1", "1.5") stay strings. Be careful with leading zeros in YAML 1.1 — "012" parses as octal 10, while in YAML 1.2 it stays the integer 12. Quote anything where the literal text matters (phone numbers, ZIP codes, version strings).