Developer tools
YAML to JSON converter
Paste YAML on the left to get JSON, or switch direction to turn JSON back into YAML. The output updates as you type and bad input is flagged with a clear message. Everything runs in your browser - nothing is uploaded.
How it works
Paste YAML on one side and get JSON on the other, or paste JSON and get YAML back. The two formats describe the same kind of data - objects, arrays, strings, numbers, and booleans - but YAML is written for humans with indentation and no braces, while JSON is the compact, quote-heavy form that APIs and config loaders expect. This converter moves between them so you can author in whichever is more comfortable and ship the other.
The conversion uses a full YAML parser, so anchors, multi-line strings, and nested structures are handled, and a clear error message points to the problem when the input is not valid. Everything runs in your browser, so your configuration is never uploaded, and you can copy the converted result with one click.
Example. Paste the YAML name: Ada followed by an indented skills list with math and code, and the JSON side shows {"name":"Ada","skills":["math","code"]}. Edit the JSON and the YAML updates to the indented form, ready to drop into a config file.
FAQ
Why convert between YAML and JSON?
They represent the same data, but they suit different jobs. YAML is easier to read and write by hand, which is why it is popular for configuration and CI pipelines. JSON is stricter and universally supported by programming languages and APIs. Converting lets you write a config in readable YAML and hand a tool the JSON it expects, or pretty-print an opaque JSON blob as YAML to understand it.
Does it support comments and advanced YAML features?
The parser understands the full YAML syntax, including nested mappings and sequences, multi-line and quoted strings, anchors, and aliases. JSON has no concept of comments, though, so any YAML comments are dropped when converting to JSON - there is nowhere in JSON to put them.
What happens if my input is invalid?
The converter validates as you type and, when the input cannot be parsed, shows an error message describing what went wrong and roughly where, instead of producing a broken result. Fix the indentation or the stray character it points to and the conversion runs again automatically.
Is my configuration sent anywhere?
No. Parsing and converting happen entirely in your browser. Nothing you paste is uploaded, logged, or stored, so it is safe to convert configuration that contains hostnames, tokens, or other sensitive values.