Skip to content
toolbelt

YAML to JSON

Convert YAML configuration into JSON, or JSON back into clean YAML. Parse errors report the line and column so you can fix the file quickly.

read guide
yaml0 ln / 0 ch
json
readyruns locally
local / nothing uploaded

About this tool

YAML is pleasant for humans to edit; JSON is what most programs parse. Converting lets you inspect a Kubernetes manifest or CI config as plain data. Because both formats are parsed rather than transformed textually, comments cannot corrupt the result.

How to use it

  1. Paste your YAML into the input pane.
  2. The JSON appears as you type.
  3. If there is a syntax problem, the error names the line to look at.
  4. Copy the JSON for use in code or tests.

Examples

A small manifest

service:
  name: api
  ports:
    - 8080
{
  "service": {
    "name": "api",
    "ports": [8080]
  }
}

Limits and notes

  • YAML comments are dropped in the JSON output, since JSON has no comment syntax.
  • Duplicate keys resolve to the last value, which the parser reports.

Frequently asked questions

Are anchors and aliases resolved?
Yes. The parser expands them into the resulting data rather than leaving references behind.
Why does my YAML fail to parse?
The usual culprits are inconsistent indentation and tabs. YAML requires spaces and consistent nesting.
Is the data uploaded?
No, parsing happens in the browser.

Want the details? Read the full guide: Reading a Kubernetes Manifest as Plain Data.