YAML to JSON
Convert YAML to formatted JSON instantly, with clear error messages that point to the failing line. Runs locally in your browser.
Processed locally in your browser — nothing is uploaded.
0 characters
JSON
Output appears here…About YAML to JSON
Convert YAML documents — configs, manifests, front matter — into JSON. Parse errors show the offending line so indentation mistakes are quick to find.
Common uses
- Feed a YAML config to a tool that only accepts JSON
- Inspect what a YAML file actually parses to (anchors, types, quoting)
- Chain into JSON to TypeScript to type a YAML config
Example
Input
server: port: 8080
Output
{
"server": {
"port": 8080
}
}Limitations
- Multi-document YAML streams convert to an array of documents
- Custom YAML tags are not supported