YAML to JSON Converter

Convert simple YAML (maps, lists, scalars) to JSON in your browser.

About this tool

Supports nested maps, lists, quoted strings, numbers, booleans, null and inline [a, b] / {a: 1} values. Anchors, multi-line block scalars (| and >) and multiple documents are not supported. Runs locally.

Related: JSON Formatter & Validator · Base64 Encode & Decode · URL Encoder & Decoder · SHA-256 / SHA-1 Hash Generator · Unix Timestamp Converter

Frequently asked questions

Why convert YAML to JSON?

Many APIs and tools accept only JSON while configs are often written in YAML.

Are comments preserved?

No, JSON has no comments so they are dropped.

What breaks YAML parsing?

Tabs used for indentation and inconsistent indent levels are the common causes.