Skip to main content
${format:vault}

JSON → YAML Converter

JSON Input
Tab inserts an indent. Press Escape, then Tab, to move focus out of the editor.
YAML Output

Why use a private JSON to YAML converter?

YAML and JSON represent the same data structures — objects, arrays, strings, numbers. This converter handles the translation entirely in your browser. No data is uploaded or transmitted.

How it works

The converter parses your JSON with JSON.parse() then serializes the resulting object to YAML using js-yaml. All types — strings, numbers, booleans, null, arrays, and nested objects — are preserved correctly.

Common use cases

  • Converting package.json or tsconfig.json to YAML for tools that prefer it
  • Translating JSON API responses to YAML for use in Kubernetes or Helm values
  • Converting JSON config files to YAML for Ansible, GitHub Actions, or Docker Compose
  • Making JSON data more human-readable for documentation or review

Frequently asked questions

Is my data safe to convert here?
Yes. All conversion happens in your browser using js-yaml. No data is transmitted to any server.
Are all JSON types preserved?
Yes. Strings, numbers, booleans, null, arrays, and nested objects all convert correctly to their YAML equivalents.
Does it handle JSON with deeply nested structures?
Yes. js-yaml handles arbitrary nesting depth. The output uses YAML block style for readability.

Related tools