YAML to JSON Converter

Convert YAML to JSON, and JSON to YAML.

Convert
JSON

Runs on your device. Nothing to upload.

Questions

Which YAML version is used?

YAML 1.2, the current version. When converting JSON to YAML, strings that older YAML 1.1 readers would mistake for something else (like no, on or 12:30) are quoted, so they stay text in every program.

What happens to a file with several YAML documents?

Documents separated by --- become one JSON array, one item per document, in order.

Are anchors and aliases supported?

Yes: aliases are expanded into full copies in the JSON. Files that expand aliases over and over (a “billion laughs” file) are stopped instead of freezing the page.

Why do my comments disappear?

JSON has no comments, so YAML comments can’t be carried over. Keep the YAML as your source if comments matter.

Is it free? Do I need an account?

It is free to use and there is nothing to sign up for. There are no watermarks and no daily limits.

Missing something, or not working as it should? Tell us