YAML ↔ JSON

Convert YAML to JSON or JSON to YAML. The tool detects the direction itself: if the input starts with { or [, it is JSON.

The tool could not be loaded. It needs JavaScript: please enable it or reload the page.

Frequently asked questions

Are dates and «yes» preserved?

Yes. Reading follows YAML 1.2: 2024-01-01 stays text, «yes» and «no» stay text and do not become true and false.

What happens with several documents (---)?

They become a JSON list with one entry per document.

Are comments lost?

Yes. JSON has no comments, so they are dropped during conversion.

More tools in this category