YAML to JSON Converter
Convert YAML to JSON for APIs, config files, and pipelines. Supports indented mappings, sequences, scalars, and nested objects.
How to use the yaml to json converter
Paste YAML on the left. JSON appears live on the right. Supports indented mappings, sequences, strings, numbers, booleans, and null.
Formula & explanation
We parse a safe subset of YAML — no anchors/aliases, no flow style, no multiline scalars. Suitable for Compose files, Kubernetes manifests, GitHub Actions, and most config files.
Examples
name: example\ncount: 3 becomes {"name":"example","count":3}
Frequently asked questions
- Why not full YAML?
- Full YAML supports features (anchors, type tags, flow style) that are rarely used and famously footgun-prone. We handle the parts every config file actually uses.
- Are my type annotations preserved?
- Standard scalar types (numbers, booleans, null, strings) are detected automatically. Explicit !!str / !!int tags aren't supported — quote the value if you need it preserved as a string.
Related developer tools tools
- JSON to YAML ConverterConvert JSON to clean indented YAML for Kubernetes manifests, Docker Compose, CI configs, and Helm charts. Preserves nested structures.
- JSON DiffCompare two JSON values semantically. Ignores key order; shows added, removed, and changed fields with their JSONPath — great for diffing API responses and config files.
- XML to JSON ConverterConvert XML to JSON for legacy API integration, SOAP responses, and config migration. Handles attributes, namespaces, and text content.
- JSON FormatterPretty-print, minify, and validate JSON. Detects syntax errors with line numbers and supports nested structures of any depth.
- JSON to XML ConverterConvert JSON objects and arrays to well-formed XML. Maps object keys to elements, array items to repeated elements, with optional root wrapper.
- JSON to CSV ConverterConvert JSON arrays to CSV with automatic header detection from object keys. Handles nested values and arbitrary delimiters.