YAML to JSON Converter
Convert YAML to JSON or JSON to YAML in your browser. See parser errors, copy the output, or download the converted file.
Technical information
- Supported formats
- Paste source text in the input format shown on the tool.
- Limits
- Parsing depends on valid syntax. Rich formatting and format-specific features may have no equivalent in the destination.
- If something goes wrong
- Try a small sample first. Check delimiters, quotation marks and any reported parsing error before converting the full input.
How to convert YAML to JSON or JSON to YAML
Choose the format you’re starting with, paste your data, and select Convert. Use Copy output to paste the result into an editor, or download it as a file.
Worked example
In YAML, ports: [80, 443] becomes { "ports": [80, 443] } in JSON. Select Load example to try a configuration with a nested object and an array.
Fixing a conversion error
Start at the line and column shown in the error when available. Check YAML indentation, duplicate keys and quotes. If you’re converting JSON, check for trailing commas and make sure object keys use double quotes. YAML comments are removed and JSON keys must be text.
