YAML to JSON Converter
Paste YAML and get JSON. Handles multi-document YAML (separated by ---), anchors and aliases, complex nesting, and all YAML types including dates, null, booleans, and multi-line strings. If your YAML has a syntax error, the parser tells you exactly where.

What it does
- ▸Converts YAML to JSON with correct type inference (strings, numbers, booleans, null, dates)
- ▸Handles multi-document YAML files (--- separators) as a JSON array
- ▸Resolves YAML anchors (&anchor) and aliases (*alias)
- ▸Preserves multi-line strings (literal | and folded > block scalars)
- ▸Reports YAML syntax errors with line and column numbers
Use cases
- ▸Converting a Docker Compose or Kubernetes manifest to JSON for API use
- ▸Transforming YAML configuration files to JSON for JavaScript applications
- ▸Debugging YAML syntax errors that a linter can't catch
- ▸Converting YAML front matter from Markdown files to structured JSON
How it works
Paste your YAML into the input pane
The parser converts it to a JavaScript object, resolving anchors and aliases
The object is serialized as formatted JSON in the output pane
Copy the JSON for use in your application or another tool
Frequently asked questions
1Does it handle multi-document YAML?
Yes. If your YAML contains --- separators, each document is parsed separately and the result is a JSON array with one element per document. Single-document YAML produces a JSON object.
2How does it handle YAML anchors and aliases?
Anchors (&anchor) and aliases (*alias) are resolved during parsing. The aliased value is inlined at the alias location in the JSON output, so the result is a plain JSON structure with no references.
3What about YAML-specific types like dates?
YAML has native support for dates and timestamps. The parser converts these to ISO date strings in the JSON output. Binary data (!!binary) is converted to Base64 strings.
Related tools
Use YAML to JSON offline in Devinity
All 95 tools run locally on your Mac. No internet required, no data sent to servers.
Download Devinity →


