TOOLTIKI Lovable tool, really free
Developer Data

JSON to YAML

What to do
Indent

Processed in your browser · nothing is uploaded

Local · always lossless in this direction
Advertisement
320 × 100

Serialises JSON as YAML, quoting any string that would otherwise be read back as a different type — which is the part hand-conversion gets wrong.

How to use the json to yaml

1 Paste your input. The result appears immediately.
2 Pick the operation you want.
3 Copy the result, or save it as a file.

The quoting rules are the whole job. A JSON string `"1.0"` written to YAML unquoted comes back as the number 1, losing the trailing zero and changing the type — which matters enormously for a version number. The same applies to `"true"`, `"no"`, `"null"` and anything starting with a digit. This quotes all of them. Going in this direction is always safe, unlike parsing, because serialising has no ambiguity to resolve: there is exactly one correct YAML representation of any JSON value, and the only question is how much of it needs quotes.

Questions

Because they would be read back as a number, boolean or null otherwise. "1.0" unquoted becomes the number 1.

YAML 1.2 specification
Advertisement
300 × 250
Was this tool any good?
INTERNAL SIGNAL ONLY · WE USE IT TO FIND TOOLS WORTH REBUILDING