YAML to JSON Converter — Round-Trip Supported

Convert YAML to JSON, or JSON to YAML. Useful for Kubernetes manifests, Docker Compose files, GitHub Actions workflows and CI/CD configs.

Runs in your browser via js-yaml.

Why YAML and JSON?

YAML and JSON encode the same kinds of data structures — objects, arrays, strings, numbers, booleans, null — but in very different syntaxes. YAML is human-readable and human-writable (indentation-based, comments allowed); JSON is strict, machine-friendly, and universally consumed by code. Modern infrastructure is full of both: Kubernetes uses YAML for manifests, GitHub Actions and GitLab CI use YAML for pipelines, Docker Compose uses YAML for service definitions, but most APIs and JavaScript code expect JSON.

This tool converts cleanly in both directions using js-yaml, the industry-standard JavaScript YAML parser.

Common scenarios

YAML gotchas

Tips

FAQs

Is anything uploaded?

No. Runs in your browser via js-yaml.

Does it support multi-document YAML (---)?

Only the first document is converted. For multi-document YAML, split first.

Are YAML anchors and references resolved?

Yes — js-yaml resolves &anchor and *anchor references during parsing.

Related