YAML to JSON Converter

Convert YAML into JSON in the browser. Useful for config files, automation definitions, and quick data inspection.

Private browser-side processing
Input YAMLYAML
Syntax errors are translated into short human-readable messages.
7 lines · 62 bytes
Output JSONJSON
No action has been run yet.
0 lines · 0 bytes

About the YAML to JSON converter

How to use this converter

Paste YAML into the input pane and press Run (⌘+Enter or Ctrl+Enter also works). The converted JSON appears in the output pane; copy it and you are done. For a single document, `name: example` is enough to get JSON such as `{"name": "example"}`. If your file holds several documents separated by `---`, convert them one at a time — the beta handles single-document input.

Where it helps

Use it to inspect Kubernetes manifests, CI files, and other YAML-based configs as JSON structures.

Error handling

Indentation problems and malformed YAML are converted into short messages with a likely line reference instead of raw parser output.

Related converters

Related articles