Loading JSON workspace...
JSON to YAML Converter
Move a JSON payload into a YAML config, or turn a YAML file back into JSON. The converter quotes strings that YAML would otherwise read as booleans, numbers or folded text, so yes, a decimal such as 1.0, a colon inside a string, and multiline text come back unchanged. Switch direction without clearing either editor.
How to use
- For JSON to YAML, paste JSON on the left. For YAML to JSON, switch direction and paste YAML on the right.
- Press convert, or wait a moment after editing. The other editor updates in place.
- Copy or download the result. A syntax error shows the line and column from the parser.
FAQ
- Can I convert YAML to JSON as well as JSON to YAML?
- Yes. The direction control chooses which editor is the source. Switching it does not delete the text already in either pane.
- Why is the word yes kept as text?
- Some YAML versions treat yes as a boolean. This converter follows YAML 1.2 and quotes ambiguous strings so the value stays text.
- Will a multiline string be folded into one line?
- Multiline text is written as a block scalar and parsed back to the same line breaks.
- Where is the YAML kept?
- The YAML pane is saved in this browser under its own key, separate from the CSV and XML panes.