JSON-YAML conversion

Format conversion

Frequently asked questions

Are JSON-YAML conversion tools safe? Will the data be uploaded to the server?

Totally safe. The conversion between JSON and YAML runs completely locally in the browser, and your data will not be uploaded to any server, nor will it be recorded or cached.

How does the tool automatically detect whether the input is JSON or YAML?

The tool will check whether the input starts with { or [ and can be parsed by JSON.parse. If it matches, it will be judged as JSON; otherwise, it will be processed as YAML. If you need to ensure the correct direction, you can manually click the "JSON → YAML" or "YAML → JSON" button.

Why does the type of number or Boolean value change when converting YAML to JSON?

The true/false/null/number type in YAML will be automatically inferred, and its true type will be reflected after being converted to JSON (for example, the string "true" becomes a Boolean true). To keep the original string, surround it in YAML with quotes.

Can conversion content be shared via a link?

Yes. Click the "Share Link" button, and the tool will encode the input content into a URL Hash. Copy the link and send it to others. The other party will see the same input content when they open it.

Can this conversion tool be used offline?

Yes. This tool is a single file HTML. After saving the page locally, it can be used normally even if the Internet is disconnected. No installation or registration is required. The js-yaml library is loaded through CDN and needs to be cached in advance when offline.