YAML to JSON Converter
Paste YAML from a config file, CI pipeline or Kubernetes manifest and get the same data as JSON.
Output
Your result will appear here.
Nothing to check yet
1 line · UTF-8
Processed locallyFiles and text are processed in your browser and are not uploaded to our servers.Learn more
Need the opposite? JSON to YAML
How to convert YAML to JSON
- 01
Paste your YAML
A single YAML document.
- 02
Validate or convert
Choose indentation for the JSON output. Validate checks the YAML without converting.
- 03
Copy or download
Save the result as converted.json.
YAML 1.2, parsed safely
- The YAML 1.2 core schema is used. Values like yes, no, on and off stay strings; only true and false are booleans.
- Custom tags cannot create objects or run code; YAML is treated purely as data.
- Duplicate keys in one mapping are reported as an error instead of one value silently winning.
- Anchors and aliases are resolved, with a guard against alias explosions.
What does not survive in JSON
JSON has no comments, so YAML comments are dropped. Multi-document files separated by --- need to be converted one document at a time.
Related tools
Frequently asked questions
Why is “yes” a string instead of true?
YAML 1.1 treated yes and no as booleans, but YAML 1.2 does not. This converter follows YAML 1.2, so write true or false for booleans.
Why do I get an indentation error?
YAML does not allow tabs for indentation, and items at the same level must line up exactly. The error shows the line and column to check.
Can I convert JSON back to YAML?
Yes, with the JSON to YAML converter.