Free Tool

Convert YAML to JSON

Paste YAML and get validated JSON. Runs entirely in your browser.

What this converter supports

  • Mappings (key-value pairs), nested to any depth
  • Sequences (lists with -)
  • Scalar types: strings, integers, floats, booleans (true / false), null
  • Single and double-quoted strings
  • Inline comments (lines starting with #)

Known limitations

  • Anchors and aliases (&foo / *foo) — surface as an error message; inline the value
  • Block scalars (| and >) — use inline quoted strings instead
  • Tags (!!str) — surface as parse errors

For Kubernetes manifests with refs or complex YAML configs, use a full parser like js-yaml in your build pipeline. This tool handles the 90% case for config files and feature flags.

Need the reverse? JSON to YAML converter.