YAML ⇄ JSON Converter
Convert YAML to JSON and back.
How to use
- 1Choose YAML → JSON or JSON → YAML.
- 2Paste your YAML or JSON.
- 3Pick 2 or 4 spaces of indentation.
- 4Copy the converted result.
Frequently asked questions
Does it validate YAML?
Yes. If the YAML is invalid (for example wrong indentation), you'll see the error and where it is.
Are YAML comments kept?
No. JSON has no comments, so they're dropped when converting YAML to JSON.
Is my config file uploaded?
No. Conversion happens in your browser, so secrets in config files stay on your device.
Does it support multi-document YAML (---)?
It converts a single document. Split multi-document files at each --- and convert them one by one.
You may also need
JSON to TypeScript
Generate TypeScript interfaces from JSON.
HTML Entity Encoder
Escape and unescape HTML entities.
Number Base Converter
Binary, octal, decimal, hex and any base.
Cron Expression Explainer
Cron schedules in plain English with next runs.
IP Subnet Calculator
Network, mask, broadcast and host range.
Chmod Calculator
Linux file permissions as numbers and rwx.