Kubernetes secretly converts
Most kubectl YAML you write is turned into JSON before it hits the API server—your manifests are JSON on the inside.
Tip: Drag & drop a .yml/.yaml file onto the box. Press Ctrl/Cmd + Enter to convert.
This converter parses your YAML text entirely in your browser using a local JavaScript parser and outputs equivalent JSON. No files or data ever leave your device—ideal for sensitive configs or credentials you don’t want to upload.
0 to minify.null values from objects after conversion.[a, b]) or multi‑line with dashes (- a).100% client‑side. This page performs all parsing locally with no network requests (aside from the initial page load).
[a, b]) or multi-line with dashes (- a).Most kubectl YAML you write is turned into JSON before it hits the API server—your manifests are JSON on the inside.
YAML allows # comments, but JSON doesn’t. When you convert, the data survives but the commentary disappears.
YAML anchors/aliases (&ref / *ref) flatten into duplicated values in JSON because JSON has no references.
YAML 1.2 treats pure JSON as valid YAML, so you can paste JSON straight into the left box and still convert or prettify it.
JSON objects are unordered by spec. Sorting keys before conversion keeps Git diffs calmer when order doesn’t matter.