DataToolsLab
JSON Tools

YAML to JSON Converter

Convert YAML documents into JSON.

Loading tool…

What is YAML → JSON?

The YAML to JSON converter transforms YAML documents into JSON for use in tools and workflows that require JSON input.

How it works

We use js-yaml to parse the YAML input, then serialize the result as formatted JSON.

  1. Paste YAML. Drop a .yaml file or paste YAML text.
  2. Convert. Conversion happens automatically as you type.
  3. Copy or download. Copy the JSON or download as .json.

Examples

Simple mapping

name: Alice age: 30 becomes {"name":"Alice","age":30}.

Common mistakes

Tab indentation

YAML uses spaces, not tabs. js-yaml returns an error for tabs.

Alternatives

JSON to YAML

The reverse direction.

Frequently asked questions

What YAML version is supported?

YAML 1.2 via js-yaml. Anchors, aliases, and multi-doc YAML are supported.

Online