JSON to YAML Converter
Turn JSON into YAML for configuration files, CI pipelines and manifests that are easier to read and edit.
Output
Your result will appear here.
YAML cannot be indented with tabs, so the tab setting writes two spaces.
Nothing to check yet
1 line · UTF-8
Processed locallyFiles and text are processed in your browser and are not uploaded to our servers.Learn more
Need the opposite? YAML to JSON
How to convert JSON to YAML
- 01
Paste your JSON
Any valid JSON document.
- 02
Choose indentation
2 or 4 spaces. YAML forbids tabs, so the tab setting writes two spaces.
- 03
Convert and download
Copy the YAML or save it as converted.yaml.
Good to know
- Keys keep their JSON order.
- Long strings stay on one line instead of being folded.
- Strings that YAML would otherwise read as another type, such as "true" or "123", are quoted so they remain strings.
- The JSON is validated first; invalid JSON is reported with its line and column.
Related tools
Frequently asked questions
Why can I not indent YAML with tabs?
The YAML specification does not allow tab characters for indentation. Choosing Tab therefore produces two-space indentation.
Can I add comments to the YAML?
JSON has no comments to convert, but you can add them to the YAML output afterwards.
Is the conversion reversible?
Yes. Converting the YAML back with YAML to JSON gives the same data.