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
name: Ada skills: - math - code
{
"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
Why use this tool
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