Developer Trending

YAML ↔ JSON Converter

Paste YAML (Kubernetes manifests, CI configs, docker-compose files) and get equivalent JSON — or go the other way. Powered by a real YAML parser running locally, so config files with secrets never leave your device.

Examples

Input
name: Ada
skills:
  - math
  - code
Output
{
  "name": "Ada",
  "skills": ["math", "code"]
}

How it works

Conversion is done by the js-yaml parser running in your browser. YAML to JSON prints the result with a two-space indent. JSON to YAML also indents by two spaces and wraps long lines at 100 characters.

  • Comments are lost, because JSON has no way to hold them.
  • Anchors and aliases are expanded, so a shared block appears in full at every place it was referenced.
  • A file holding several documents separated by --- is rejected; convert one document at a time.

Most parse errors come from indentation. YAML structure is defined by spaces, tabs are not allowed for indenting, and a list item that is one space out belongs to a different parent. The error message gives the line and column to look at.

How to use YAML ↔ JSON Converter

Paste your config
Drop in YAML (or JSON) — Kubernetes manifests, docker-compose, GitHub Actions, anything.
Pick a direction
YAML → JSON or JSON → YAML with one toggle.
Fix any errors
If the input is invalid, we show the parser’s error message so you can correct it.
Copy the result
Copy or download the converted file.

Why use this tool

Real YAML 1.2 parser (js-yaml) — not a regex approximation
Both directions: YAML → JSON and JSON → YAML
Clear error messages with the failing line
Config files with secrets stay on your device — nothing is uploaded

Frequently asked questions

Conversion happens entirely in your browser — nothing is transmitted or stored. Still, rotate any secret you believe may have been exposed elsewhere.

Standard YAML 1.2: nested maps and lists, multi-line strings, anchors and aliases, and multiple documents (the first document is converted).

YAML is indentation-sensitive. The error message shows the line and reason — the most common causes are mixed tabs/spaces and misaligned nesting.

Found a bug or have an idea?

ToolOrbit is actively developed — feedback directly shapes what gets built next.

Send feedback