YAML to JSON Converter
Paste YAML and get valid JSON instantly — works with Kubernetes manifests, Helm values, and Docker Compose files.
Convert one YAML document into JSON
The converter reads YAML using a JSON-compatible schema. Quoted values remain strings; unquoted true, false and null become their JSON equivalents. Custom tags and multi-document streams are not accepted.
Paste one YAML document, not several documents separated by ---.
Inspect the converted values and types.
Download JSON or explore it with the tree viewer.
Before
name: Alice active: true postcode: "00123" label: "true"
After
{
"name": "Alice",
"active": true,
"postcode": "00123",
"label": "true"
}- Comments, anchor names and original formatting are not part of the resulting JSON document. Plain date-like scalars remain strings under this schema.
- Non-finite numeric values cannot be represented in strict JSON and are reported as errors.
- Conversion checks syntax and value compatibility, not whether a Kubernetes or application configuration is semantically correct.
Frequently Asked Questions
Can I convert a Kubernetes YAML manifest to JSON?
Yes. Kubernetes accepts both formats internally, so converting a Deployment or Service YAML manifest to JSON produces something kubectl can apply directly with kubectl apply -f file.json.
Does it handle YAML anchors and aliases?
Standard YAML anchors (&) and aliases (*) are resolved during parsing, so the resulting JSON contains the fully expanded values rather than references.
What if my YAML has a syntax error?
The converter reports the exact parse error, including line number where possible — usually caused by mixed tabs/spaces or inconsistent indentation.
Are multi-document YAML files (separated by ---) supported?
This converter parses a single YAML document. For multi-document files, convert each document separated by --- individually.
Is my YAML uploaded anywhere?
No. Parsing happens entirely client-side in your browser — nothing is sent to a server, which is safe for private config files and secrets-adjacent manifests.