Convert JSON to YAML and back — privately
Paste JSON and get clean YAML, or paste YAML and get JSON. It converts in your browser (0 uploads, works offline), so config with secrets in it never touches a server.
How to use it
- Paste your input into the left pane.
- Choose any options shown above the panes.
- The result updates live on the right — Copy or Download it.
FAQ
How do I convert JSON to YAML for free?
Paste your JSON and choose JSON → YAML — the conversion happens instantly in your browser with no upload or sign-up, producing 2-space-indented YAML. Switch the direction to go the other way.
Is the conversion lossless?
For data that both formats can represent — objects, arrays, strings, numbers, booleans and null — yes; a round trip returns the same structure. YAML features with no JSON equivalent (anchors, custom tags) are resolved during parsing.
Is my config uploaded?
No. Parsing and conversion run locally and nothing is stored — it works with your Wi-Fi off, which matters when the file holds credentials.
Which YAML version does it use?
YAML 1.2, via a standards-compliant parser, so the output is compatible with Kubernetes, GitHub Actions and other modern YAML consumers.
Limits
Handles the data both formats share. YAML-only constructs like anchors and custom tags are expanded rather than preserved. Comments in YAML are not carried into JSON, since JSON has no comments.
Related
The YAML formatter tidies existing YAML; JSON formatter validates and pretty-prints JSON.
Bookmark this page (Ctrl+D, or ⌘D on Mac) or install the app — it works offline the next time you need it.