Converters
JSON to YAML Converter
Convert JSON to YAML and YAML back to JSON.
Free foreverRuns in your browserNo sign-up
YAML
About the JSON to YAML Converter
Convert JSON into clean, readable YAML, or YAML back into JSON, in one tool.
Great for config files, CI pipelines and Kubernetes manifests that use YAML.
Indentation, nesting and data types are preserved in both directions.
Key features
- JSON to YAML and YAML to JSON
- Preserves nesting and data types
- Open a file or paste your data
- Copy the result instantly
How to use
- 1Choose the direction you want to convert.
- 2Paste your data or open a file.
- 3Copy the converted result.
Examples
JSON to YAML
Input:
{"name":"Ada","roles":["admin"]}Output:
name: Ada
roles:
- adminObjects become indented keys and arrays become dashed lists.
YAML to JSON
Input:
name: Ada
age: 36Output:
{ "name": "Ada", "age": 36 }Indented YAML keys become JSON object properties.
Frequently asked questions
- Does it keep comments?
- No. JSON has no comments, so converting to JSON and back will drop any YAML comments.
- Which YAML version is used?
- Standard YAML 1.1 as produced by the widely used js-yaml library.
- Is my data uploaded?
- No. The conversion runs entirely in your browser.
