YAML ↔ JSON Converter
Use this converter to move configuration or API data between YAML and JSON while validating the source and avoiding executable custom YAML tags.
One document only. Maximum input size: 1 MiB.
Converted output
Your result will appear here.A focused browser utility
Use this converter to move configuration or API data between YAML and JSON while validating the source and avoiding executable custom YAML tags.
Local by default
This tool runs entirely in your browser. There is no account, server-side processing, or input history.
Three quick steps
- Paste one YAML or JSON document, or load the included example.
- Choose YAML to JSON or JSON to YAML and select the desired formatting.
- Review any validation error, then copy the converted document.
Input and output
Input
service: orders
ports:
- 8080
- 8081
enabled: trueOutput
{
"service": "orders",
"ports": [
8080,
8081
],
"enabled": true
}Frequently asked questions
Can YAML custom tags execute code?
No. This converter uses a restricted YAML 1.2 schema and rejects custom tags instead of constructing executable application objects.
Are YAML comments preserved?
No. Comments are not represented in JSON, so a round trip through JSON does not preserve YAML comments or original formatting.
Can I convert multiple YAML documents at once?
No. The tool accepts one document at a time so the JSON output has one clear root value.