YAML ↔ JSON Converter
Convert YAML config to JSON or JSON to YAML, either direction.
Input
Output
Supports one YAML document with nested maps, lists, quoted strings and block scalars. Dates remain strings. Circular aliases and non-JSON tags are rejected; comments and formatting are not retained.
About YAML ↔ JSON Converter
Paste YAML (the format most CI configs, Kubernetes manifests, and docker-compose files use) and convert it to JSON, or the other way around.
JSON-compatible YAML
Uses a locally hosted YAML parser with the JSON schema, preserving nested maps, lists, quoted strings, block scalars, numbers, booleans and null. Dates remain strings rather than being silently converted.
What isn't supported
YAML anchors and aliases (&anchor / *alias references) aren't supported, multi-document files (separated by ---) are treated as a single document rather than parsed separately, and block scalars (the | and > multi-line string styles) aren't handled.
How to use it
Paste YAML and convert to JSON, or paste JSON and convert to YAML — either direction works from the same input box.
Use cases
Convert a Kubernetes manifest or docker-compose file to JSON for use in a script. Turn a JSON config into YAML for a CI pipeline. Quickly check what a YAML file looks like as JSON, or vice versa.
Limitations
Accepts one document with JSON-compatible values. Circular aliases, non-JSON tags and duplicate mapping keys are rejected. Comments and formatting are not retained.
Does this support the full YAML specification?
It supports JSON-compatible YAML including block scalars and non-circular aliases. Multiple documents and YAML-specific tags are rejected because they cannot be represented faithfully as one JSON document.
Does this upload my file anywhere?
No — conversion happens entirely in your browser.
Is this free to use?
Yes — it's completely free, with no sign-in required.