JSON ↔ YAML Converter
Convert JSON to YAML or YAML back to JSON. Paste, convert, copy or download. Everything runs locally — configs never leave the tab.
Runs locally in your browser
Input
Output
How to use JSON ↔ YAML
- Paste JSON or YAML into the input box.
- Pick the direction: JSON → YAML or YAML → JSON.
- Copy the pretty-printed result or download it as a file.
Common use cases
- Turn a Kubernetes manifest into JSON for programmatic edits.
- Convert a JSON config into readable YAML for a repo.
- Check YAML indentation by round-tripping through JSON.
- Prepare fixtures in whichever format a tool expects.
Good to know
- YAML anchors and comments are not preserved in JSON output.
- Ambiguous scalars follow standard YAML parsing rules.
- Invalid input raises an error — fix the syntax and retry.
What you can do next
FAQ
Is my JSON or YAML uploaded?
No. Conversion uses js-yaml in your browser. API payloads and config files stay on your device.
Which YAML version is supported?
js-yaml 4 parses YAML 1.2. Anchors, aliases and most mappings work. Exotic custom tags may fail — that's a parser limit, not a server error.
Will key order be preserved?
Modern browsers keep object key order, so round-trips usually look stable. Don't treat that as a formal YAML spec guarantee.