Privacy All tools run entirely in your browser.

JSON to YAML Converter

Convert JSON to YAML for Readable Configuration

Input + outputConvert JSON objects into YAML output
Convert JSON to YAML

Convert JSON objects or arrays into YAML for configuration files, manifests, or documentation. YAML is often easier to read and edit by hand than raw JSON.

JSON Input Requirements

The input must be valid JSON. If conversion fails, confirm that:

  1. Make sure all JSON keys are surrounded with double quotes.
  2. Make sure all opening brackets have matching closing brackets.
  3. Make sure there are no trailing commas at the end of arrays.
JSON Object Example

JSON objects convert to YAML mappings. Example input:

{
    "name": "John Doe",
    "pets": [
        "fish",
        "cat"
    ]
}
JSON Array Example

JSON arrays convert to YAML lists. Example input:

[
    {
        "name": "John Doe",
        "pets": [
            "fish",
            "cat"
        ]
    },
    {
        "name": "Jane Doe",
        "pets": [
            "dog"
        ]
    }
]
After Conversion

Use the YAML output in configuration files or documentation. If the file must be verified, run the YAML Lint / Validate tool to confirm structure and indentation.