Skip to content

YAML to JSON Converter

Paste YAML content to convert it to JSON. Supports multi-document YAML (separated by ---), anchors, aliases, and nested structures. Great for converting Kubernetes manifests, CI/CD configs, and other YAML files.

Required
Advanced options
Optional
Get an API key to automate this

Result


                    

Code snippets


                                                

                                                

                                                

                                            

What this tool checks

  • Multi-document YAML support (--- separator)
  • YAML anchors and aliases
  • Pretty-printed or compact JSON output
  • Key count and document count
  • Detailed error messages with line numbers

Automate this with the API

Run this tool programmatically from your code. Get a free temporary API key with 20 requests/day — or register for 75 requests/day.

curl https://apixies.io/api/v1/yaml-to-json?yaml=... \ -H "X-API-Key: YOUR_API_KEY"

Frequently asked questions

Does this handle multi-document YAML?
Yes. If your YAML contains --- separators, each document is parsed separately and returned as a JSON array. Single documents return a JSON object.
How does YAML type coercion work?
YAML converts "true", "false", "yes", "no" to booleans and "null" to null. If you need these as strings, wrap them in quotes in your YAML input.

We use cookies for analytics to understand how our site is used. Privacy Policy