JSON ↔ YAML Converter

LOCAL · IN-BROWSER

Convert between JSON and YAML formats with proper indentation and types.

Advertisement728 × 90
JSON78 chars · 78 B
YAML
58 B
Advertisement728 × 90

About JSON ↔ YAML Converter

Convert JSON to YAML or YAML to JSON with a single click. YAML output is properly indented with correct scalar types (numbers remain numbers, booleans as true/false). Essential for working with Kubernetes manifests, GitHub Actions workflows, Helm charts, Docker Compose files, and other DevOps config formats that use YAML.

All processing happens entirely in your browser using modern web APIs. Nothing is uploaded to our servers — your data stays local and private. Free to use forever.

Common use cases

  • Converting JSON API schemas to YAML for OpenAPI/Swagger specs
  • Transforming Kubernetes JSON manifests to YAML for version control
  • Converting JSON config to YAML for GitHub Actions workflow files
  • Migrating application config from JSON to YAML or vice versa
  • Reading YAML config files by converting to JSON for easier inspection

How it works

JSON to YAML uses the js-yaml library's dump() function which correctly handles all JSON types: strings are quoted only when necessary, numbers and booleans are represented natively, null becomes null, and arrays/objects use YAML block style. YAML to JSON uses js-yaml's load() which safely parses YAML (without executing arbitrary code) and converts to a JavaScript object serialized with JSON.stringify.

LearnJSON explained: format, validate, and fix common errors