JSON to YAML converter
Convert JSON into readable YAML with quoted strings, no anchors and unchanged number tokens.
Enter data
One JSON document and two or four-space indentation. Fields marked with an asterisk are required.
About this tool
Readable nesting helps review configuration changes. This converter writes objects and arrays in YAML block style. Every string and key is quoted so codes such as "001", the string "true" or a date do not change type through destination inference. It does not validate GitHub Actions, Kubernetes or another application’s configuration.
How to use the calculator
- Paste one valid JSON document without comments or trailing commas.
- Choose indentation and select “Process”.
- Copy output and verify it in the receiving application.
Calculation details
Formula and calculation method
Objects become maps with quoted keys; arrays become dash-prefixed sequences. Empty containers use {} and []. Strings use escape sequences; numbers, booleans and null retain their JSON tokens.
Worked example
For {"code":"001","active":true}, output has two lines: "code": "001" and "active": true. Quotes around 001 retain its string type. For {"amount":1.00}, the token 1.00 stays unchanged rather than being rounded.
Limitations
- JSON: up to 50,000 UTF-16 units and 10,000 values. These tools cap nesting at 32 container levels and output at 500,000 units. Duplicate names and unpaired Unicode surrogates are rejected. These are project limits.
- No file import, comments, anchors, tags, map merging or application validation. Multiline strings use escape sequences, not a | block.
- Number spelling is preserved, not destination-parser precision. YAML 1.1 may apply different rules from YAML 1.2. Keep the original JSON.
Sources
Engine version: 1.0.0 · Last reviewed: 2 October 2026
Frequently asked questions
Why is every string quoted?
To retain types explicitly, including 001, true, on and dates. Minimal quoting is not attempted.
Can nested JSON be converted?
Yes, up to 32 container levels. Unlike CSV, nested arrays and objects are retained.
Is output valid application configuration?
This is not established. Format conversion checks neither allowed fields, permissions nor application rules.
Is content uploaded or saved?
Input and output are not submitted to a server or analytics or saved in form history or the URL. Copying is a separate action. Reset cannot remove earlier copies, printouts or extension data. Do not paste secrets.