YAML to JSON

Parse YAML configs into JSON for tools that only accept JSON. Output is pretty-printed with 2-space indentation.

Result

Paste YAML, then Convert.

How to convert YAML to JSON

  1. Paste a single YAML document.
  2. Click Convert.
  3. If parsing fails, check indentation (spaces only, consistent width).
  4. Copy or download the pretty-printed JSON.

FAQ

Single-document YAML is supported. Files with multiple --- documents should be split before converting.
Mappings, lists, strings, numbers, booleans, and null. Anchors and aliases may not round-trip to identical JSON.
Yes. Paste a manifest snippet. Very large files should stay under the 5 MB limit.
No. Parsing and formatting run locally.
YAML is indentation-sensitive. Tabs mixed with spaces or misaligned list items break the parser — align nested keys with spaces only and match the source file's indent width.

Related tools