● online

YAML to JSON Converter

Convert Kubernetes manifests, Docker Compose files, OpenAPI specs and CI configs between YAML and JSON in either direction — with validation built in.

Advertisement

How to use the YAML to JSON Converter

  1. Paste YAML (or JSON) into the box.
  2. Choose the JSON indentation.
  3. Press YAML → JSON or JSON → YAML and copy the result.

About the YAML to JSON Converter

YAML and JSON describe the same kinds of data — maps, lists, strings and numbers — but YAML is designed for people to write and JSON for programs to exchange. Converting between them is a daily task: many APIs accept only JSON, while Kubernetes, GitHub Actions and Ansible are written in YAML. Indentation errors are the most common YAML problem, and this converter reports the line and column so you can fix them quickly. It uses js-yaml, a widely used open-source parser, and supports multi-document YAML separated by ---.

Advertisement

Frequently asked questions

Why does my YAML fail to convert?

Usually inconsistent indentation, tabs instead of spaces, or a colon inside an unquoted value. The error message gives the line and column.

Does it support multiple documents with ---?

Yes. Multi-document YAML becomes a JSON array with one item per document.

Are comments kept?

JSON has no comments, so YAML comments are dropped when converting to JSON.

Is my config uploaded?

No. Conversion runs entirely in your browser.

Related free tools

← Back to all 150 free online tools

Runs in your browser — what you enter stays on your device. Published .

The Tools Guru Editorial Team

Three front-end engineers and technical writers in Punjab, Pakistan, shipping browser software since 2011. Every formula on this site is implemented from a primary source and checked against an independent reference implementation before release — see our editorial policy. Spotted a wrong number? Tell us and we will reproduce it, usually the same working day.

Advertisement

Explore all 150 free tools

Results filter as you type. Press Control plus K to jump here. Ctrl K
150tools0uploads to servers100%free forever

Trending now

All tools