YAML to JSON converter
Paste YAML or flip the toggle to start from JSON. Conversion runs through js-yaml in the page. Use this to clean config, then send the JSON to the CSV converter if you need a spreadsheet.
YAML → JSON
Want a spreadsheet? Convert to JSON, then use the JSON to CSV converter.
Example
A small service config
name: checkout\nreplicas: 3\nports: [80, 443] becomes a JSON object with a ports array. Toggle reverse to get YAML back.
Related: JWT decoder, JSON to CSV converter, CSV to JSON converter
FAQ
- Is my YAML uploaded?
- No. js-yaml runs in this tab. YAML and JSON never leave the browser; there is no upload.
- Which YAML features are supported?
- js-yaml’s default schema: maps, lists, numbers, booleans, null, and most literals you see in app config. Custom tags and some multi-document tricks may fail; the error banner will say so.
- Does reverse mode keep comments?
- No. JSON has no comments, and dumping YAML from the parsed value cannot restore the original comment text or key order guarantees beyond what the parser kept.
- Can I convert a file from disk?
- Open it in an editor and paste the text. There is no file-upload API on purpose. Very large documents may be slow in the tab; this is meant for configs and snippets, not multi-megabyte dumps.
- How do I get CSV from YAML?
- Convert YAML to JSON here, confirm you have an array of objects, then use the JSON to CSV converter. Both tools stay on-device.
- How do I convert YAML and JSON the same way?
- YAML→JSON: js-yaml load(), then JSON.stringify(value, null, 2) plus a newline. JSON→YAML: JSON.parse, then js-yaml dump(value, { lineWidth: 80, noRefs: true }). Comments and original key order are not restored. Custom YAML tags may fail.