Convertur

Convert YAML to JSON

Convert YAML into pretty-printed JSON — safely parsed in your browser with js-yaml, nothing uploaded.

Loading tool…

Why convert YAML to JSON?

Many APIs and programs only accept JSON. Converting a YAML config lets you feed it to tools that don't speak YAML, or validate it against a JSON schema.

How the conversion works

Convertur parses YAML with the safe loader (no arbitrary code execution) and pretty-prints the result as two-space-indented JSON.

Quality & compatibility notes

Anchors and aliases are resolved into plain values. If the YAML is malformed, you get a clear error pointing at the problem instead of a silent failure.

How to yaml to json

  1. Drop a .yaml/.yml file into the zone above, or paste YAML into the text tab.
  2. Press Convert to parse it locally in your browser.
  3. Preview the JSON, then download it.

Related converters

YAML to JSON — FAQ