Data Converters

YAML to JSON Converter

Convert YAML config files, Kubernetes manifests, Docker Compose files, or GitHub Actions workflows to JSON in one click. Anchors, aliases, and multi-document streams are all supported.

Runs entirely in your browser No account needed Copy or download result
YAML JSON
Paste YAML below, or drop a file

Converted entirely in your browser; your data never leaves your device

Features

  • Supports YAML 1.2 including anchors and aliases
  • Converts multi-document YAML streams to a JSON array
  • Handles all scalar types: strings, numbers, booleans, nulls
  • Shows exact parse error with line number on invalid input
  • Copy or download result as .json

How to use it

  1. Paste your YAML into the left panel.
  2. JSON appears immediately in the right panel.
  3. Fix any parse errors highlighted in the error bar.
  4. Copy or download the converted JSON.

Use cases

  • Debugging Kubernetes YAML by reading it as JSON
  • Converting Ansible playbooks for tooling that requires JSON
  • Transforming OpenAPI YAML specs to JSON
  • Reading GitHub Actions workflow files in JSON editors

Limitations

  • The parser focuses on common YAML used in configs, simple arrays, and nested objects.
  • Very large files depend on browser memory and device performance.
  • Malformed or highly specialized data may need manual cleanup before or after conversion.
Questions & answers

Frequently asked

Does it support YAML anchors and aliases?

Yes. Anchors (&anchor) and aliases (*anchor) are resolved and the referenced values are inlined in the output JSON.

What happens with YAML dates?

YAML bare dates like 2024-01-15 are converted to ISO 8601 strings in JSON output.