JSON to YAML Converter: Both Ways, Private
Convert JSON to YAML and back.
Paste JSON to get YAML, or YAML to get JSON. If the input is broken, the line and column of the problem are shown. Configuration files often hold passwords and keys, so the conversion is done on your device and nothing is uploaded. YAML features that JSON cannot hold, such as comments, are dropped when you convert.
How to use JSON ↔ YAML
- Choose JSON to YAML or YAML to JSON.
- Paste the JSON or YAML, and pick an Indent of 2 or 4 spaces.
- Press Copy result, or Download the converted text.
JSON ↔ YAML: common questions
Is it safe to convert a config file with passwords to YAML online?
With this JSON to YAML converter it is: the conversion runs in your browser, on your device, and nothing is uploaded, so passwords and keys in a configuration file stay with you. It works offline too.
Which YAML features does the YAML to JSON converter support?
YAML is read with the core schema, plain data only, so a tag that would build code or objects is an error. Merge keys (<<: *defaults) work, anchors and aliases are written out in full, comments are dropped, and several documents separated by --- become a list.
Why are some strings quoted when converting JSON to YAML?
A string that YAML would read as something else, such as "no", "true" or "1e3", is quoted in the YAML, so it is read back as a string and not as a boolean or a number. Long lines are not wrapped.
Everything stays on your device. Nothing is uploaded. Works offline once your first visit has stored the app.