Automation & APIs · Free Tool

YAML to JSON Converter

Convert YAML to JSON or JSON back to YAML instantly, with clear parse-error messages.

About this tool

This two-way converter parses YAML into JSON, or serializes JSON back into YAML. Switch direction with the mode buttons and the conversion updates live as you type. If your YAML has a syntax problem, the error message includes the line and column where parsing failed, so you can fix it without guessing.

YAML is the configuration language behind n8n and GitHub Actions workflow exports, Kubernetes manifests, Docker Compose files, and countless CI/CD pipelines — but it is also whitespace-sensitive and easy to mistype. This tool lets you inspect a YAML file as JSON to debug structure, or generate YAML from JSON when a tool only accepts one format.

Common uses

  • Inspect a GitHub Actions workflow or Kubernetes manifest as JSON to debug its structure
  • Convert an n8n workflow export or API JSON response into YAML for a config file
  • Catch YAML indentation and syntax errors before committing a config file

Frequently asked questions

Why does my YAML fail to parse when it looks correct?

YAML is whitespace-sensitive — mixing tabs and spaces, or inconsistent indentation between sibling keys, is the most common cause. The error message reports the line and column of the problem to help you find it quickly.

Does the converter support YAML anchors and references?

Yes — the underlying parser resolves standard YAML anchors (&) and aliases (*), so repeated blocks defined once and reused elsewhere convert correctly to their expanded JSON form.

Will converting JSON to YAML preserve comments?

No — JSON has no concept of comments, so round-tripping YAML through JSON and back will strip any comments from the original file. Keep a copy of the original if comments matter.

Is my data uploaded to a server?

No. This tool runs entirely in your browser using JavaScript — nothing you type is transmitted, logged, or stored anywhere. You can even use it offline once the page has loaded.