JSON to YAML Converter — and back

Convert JSON to YAML and YAML to JSON in your browser — paste, switch direction, and copy. Nothing is uploaded.

🔒 Runs entirely in your browser. Your input and output are never sent to a server or stored — fully private.

Did this tool help? Tap to react

About this tool

Convert data between JSON and YAML in either direction, right in your browser. Paste JSON to get clean, indentation-based YAML for a config file, or paste YAML to get strict JSON for an API or app. It is built for the configuration and data files behind Docker, Kubernetes, CI pipelines and many web frameworks, where the two formats sit side by side. Because the conversion runs entirely on your device, nothing you paste — including private keys or internal settings — is ever uploaded.

Frequently asked questions

What is the difference between JSON and YAML?

Both store the same kind of structured data, but JSON uses braces, brackets and quotation marks and is strict, which suits APIs and machine-to-machine exchange. YAML leans on indentation instead of punctuation, allows comments and is easier to read and edit by hand, which is why it is popular for configuration files. This tool lets you move freely between the compact, strict form and the more human-friendly one.

Are comments kept when I convert?

Not in both directions. YAML supports comments that start with a hash, but JSON has no comment syntax at all, so any comments are dropped when you convert YAML to JSON. Going the other way, from JSON to YAML, there are no comments to lose in the first place. If your comments matter, keep the original YAML as your source of truth and treat the JSON as generated output.

Is my data uploaded anywhere?

No. The conversion happens entirely in your browser with JavaScript, so the JSON or YAML you paste never leaves your device. That is especially reassuring for these formats, because config files often hold secrets such as API keys, passwords and database connection strings.