JSON ↔ YAML Converter
Convert JSON to YAML or YAML to JSON in your browser. Paste it in, switch direction, and copy it back — nothing is uploaded.
How to use
- Pick your direction — JSON → YAML, or YAML → JSON.
- Paste or type your text into the top box. The result updates as you type.
- Copy the result to your clipboard, or download it as a file.
FAQ
Is my data sent anywhere?
No. The whole conversion runs inside your browser using a small library loaded on demand. Your JSON and YAML are never uploaded to a server, so the tool works offline and stays private — safe even for config files with secrets.
Why am I getting an error message?
Both formats are strict. For JSON, watch for trailing commas, single quotes, or unquoted keys. For YAML, indentation matters — mix tabs and spaces and it breaks. We show the parser’s own message so you can spot exactly where it tripped.
Will my comments and key order survive?
Key order is kept. YAML comments are not — JSON has no concept of comments, so converting YAML to JSON drops them, and there is nothing to restore on the way back. Anchors and aliases are expanded into plain values.