Converting a Kubernetes-style manifest
Pasting a short manifest starting with "apiVersion: v1\nkind: Pod" converts to {"apiVersion":"v1","kind":"Pod"}.
Convert YAML to JSON online for configs and Kubernetes files — free and instant.
About
Paste a YAML file — a Kubernetes manifest, a GitHub Actions workflow, a config file — and get valid JSON back instantly, parsed with js-yaml so anchors, aliases and merge keys are resolved and unquoted numbers, booleans and dates get their proper types, the way a real YAML 1.2 parser reads them.
A few YAML details carry over in ways worth knowing: comments are dropped, because JSON has no comments, and anchors and aliases are expanded so every reference becomes a full copy. Unquoted dates like 2024-05-01 are read as timestamps and come out as "2024-05-01T00:00:00.000Z" — quote them in the YAML if you want the plain date string.
Examples
4 worked examples
Pasting a short manifest starting with "apiVersion: v1\nkind: Pod" converts to {"apiVersion":"v1","kind":"Pod"}.
"enabled: true" converts to "enabled": true, while "enabled: yes" stays the string "yes" — YAML 1.2 only treats true and false as booleans.
"base: &b {x: 1, y: 2}" followed by a child that uses "<<: *b" and sets y: 3 converts to a child of {"x": 1, "y": 3} — the merged values are written out in full.
"version: 1.10" converts to the number 1.1, while "version: '1.10'" stays the string "1.10".
FAQ
Quick answers to common questions about the YAML to JSON Converter.
Paste your YAML above and click "YAML → JSON". The converted JSON appears in the output box — everything runs in your browser, using the js-yaml library.
Anchors, aliases and << merge keys are fully supported — js-yaml resolves them, so the JSON contains the real values. Multi-document files are not: a single leading --- is fine, but two documents separated by --- give an error, so paste one document at a time.
js-yaml follows YAML 1.2, so only true and false (in any capitalisation) become JSON booleans — unquoted yes, no, on and off stay as strings. Unquoted numbers become JSON numbers, and ~ or null become null.
Yes. It's free, with no sign-up and no limit on how much you convert.
Yes — the same tool handles both directions. Click "JSON → YAML" instead, or use the dedicated JSON to YAML converter page.
No. The conversion runs directly in your browser — nothing is uploaded to a server.
YAML 1.2 reads an unquoted 0755 as the decimal number 755 and 007 as 7. Put the value in quotes — mode: "0755" — to keep it as text. A real octal number needs the 0o prefix, so 0o755 is read as 493.
An unquoted 1.10 is a number in YAML, and as a number it equals 1.1. Quote version strings, as in version: "1.10", so they stay exactly as written.
Unquoted dates like 2024-05-01 are read as timestamps and come out in full ISO format, such as "2024-05-01T00:00:00.000Z". Quote the date if you want to keep it exactly as typed.
Did YAML to JSON Converter work for you?