YAML to JSON Converter
Convert YAML to JSON or JSON to YAML, live as you type. Runs entirely in your browser, nothing you paste is uploaded.
Config files, made portable
YAML is common in Docker Compose, Kubernetes, and CI configs.
YAML is easier for humans to read and edit, but JSON is what most APIs and programming languages expect. This tool converts between the two entirely in your browser, both directions.
What's supported
Block and flow mappings and sequences, quoted and plain scalars, numbers,
booleans, null, and comments. Anchors/aliases, multi-document files, and
multiline block scalars (| / >) aren't supported.
Common questions
Does this handle every YAML feature?
It covers the common subset used in most config files: mappings, sequences, scalars, quoted strings, flow syntax like [1, 2, 3], and comments. Advanced features like anchors/aliases, multi-document files, and multiline block scalars aren't supported.
Is my data uploaded anywhere?
No. Parsing and conversion happen entirely in your browser with JavaScript. Nothing you paste is sent to a server.
Can I convert JSON back to YAML?
Yes, use the JSON → YAML tab, or hit Swap after converting to flip direction with your current output as the new input.