YAML Formatter and YAML to JSON Converter
Validate and format YAML, convert YAML ⇄ JSON.
About this tool
Format YAML with consistent indentation, or convert between YAML and JSON in either direction. Documents with several YAML sections separated by --- are handled, and errors point to the line and column.
How to use it
- Paste YAML, or JSON if you want YAML back.
- Choose to format, convert to JSON or convert to YAML.
- Copy the result. A syntax error names the line and column to fix.
Example
Input:
name: Ada
langs:
- en
- frAs JSON:
{
"name": "Ada",
"langs": [
"en",
"fr"
]
}