sangsen

JSON to YAML

Convert valid JSON into YAML, formatted and ready to paste into config files.

YAML output

Paste JSON into the input to convert it to YAML.

How it works

Paste JSON into the input box. It is parsed and re-serialized as YAML entirely in your browser via js-yaml — nothing is sent to a server — producing readable YAML, or a plain explanation of the problem, with the parser’s own message underneath, if the input is invalid JSON.

Example

Object with mixed types
{"name":"Alice","role":"admin","active":true}name: Alice role: admin active: true

FAQ

Is my JSON uploaded anywhere?
No. Conversion happens in your browser via js-yaml — nothing you paste ever leaves your machine.
What happens if my JSON is invalid?
You get a plain description of what is wrong, and the line and column to look at, instead of an incorrect or partial YAML result.
Does it accept JavaScript object literals (unquoted keys, trailing commas)?
No — input must be valid JSON, parsed with the same rules as JSON.parse.