What is JSON to YAML?
JSON is a subset of YAML 1.2, so any valid JSON can be expressed as YAML. The converter parses your JSON and writes block-style YAML, which is easier to read and edit in configuration files.
How to use JSON to YAML
- Paste your input into the editor above, or select Sample to load an example.
- Select Convert to YAML. If the input cannot be processed, a message explains what to fix.
- Use Copy or Download to take the result with you, and Clear to start again.
Example
Input
{"service":"api","ports":[80,443]}Output
service: api
ports:
- 80
- 443Practical use cases
- Create configuration files
- Move data between formats
- Improve configuration readability
Common problems
- Starting with invalid JSON
- Assuming comments can survive conversion
- Ignoring YAML indentation after editing
Frequently asked questions
Is JSON to YAML free to use?
Yes. JSON to YAML is free and does not require an account.
Does my input leave the browser?
No. This tool performs its processing locally in your browser and does not need to upload your input.
