JSON to YAML Converter
Convert JSON to indented YAML for configuration files and tools that expect YAML input. Paste an object, an array or an individual value, then copy the result or download a YAML file.
If the input fails to convert, check the original JSON for syntax errors before trying again.
- Use it when
- A configuration file expects YAML. Convert the settings you already have in JSON.
- Keep in mind
- The input needs to be valid JSON. Check the converted settings against what your app accepts.
{"debug":false}"debug": falseYour input stays in this browser. We don’t upload it. How we handle your data .
How to convert JSON to YAML
Paste valid JSON or open a file, then select Convert to YAML. Review the result before copying it into your configuration.
Frequently asked questions
Is valid JSON also valid YAML?
YAML 1.2 was designed to read JSON. Converting it here writes mappings and lists as indented YAML, which is often easier to edit in a configuration file. Check the parser version your app uses.
Will dates or Boolean-looking strings change type?
The converter quotes strings, including dates and strings such as “true” or “123”. An actual JSON Boolean stays a Boolean and an actual number stays a number.
How are nested objects and arrays written in YAML?
Nested objects are written as indented mappings. Non-empty arrays are written as lists with a hyphen for each item. Empty objects and arrays keep their compact forms, {} and [].
Will the generated YAML work in my configuration file?
The converter carries over the structure and values from your JSON. Check the resulting YAML against the keys and value types your application expects before replacing an existing configuration.