YAML to JSON
Indentation to brackets. For when you need to be explicit.
Input
Output
What this does
DEVS: js-yaml load() with safe schema. No custom types, no code execution. Outputs formatted JSON. Client-side only.
Paste YAML, get JSON. Comments are dropped (JSON doesn't support them). Anchors and aliases are resolved into actual values.
Common use cases
Validating YAML structure by converting to strict JSON. Feeding YAML configs into JSON-based tools. Debugging Kubernetes manifests by making nesting explicit with brackets.
Things to know
YAML allows things JSON doesn't: comments, anchors, multi-line strings, unquoted keys. All of these are handled during conversion. YAML's indentation sensitivity is its biggest gotcha. If the output looks wrong, check your indentation. Uses the safe schema, so no custom types.
Privacy
Parsed and converted in your browser. Your YAML files stay local.