ToolPick

YAML and JSON converter

Convert JSON to YAML and a safe YAML subset back to JSON.

YAML to JSON reads a subset: block mappings and sequences with consistent space indentation, plain, 'single' and "double" quoted scalars, numbers, booleans, null, # comments, and one-line flow values such as [a, b] and {key: value}. Not supported: anchors, aliases, tags, block scalars (| and >), multi-line scalars, tabs for indentation, and multi-document files.

How it works

JSON to YAML walks objects and arrays without external packages. YAML to JSON reads a subset: block mappings and sequences with consistent space indentation, plain, single- and double-quoted scalars, numbers, booleans, null, # comments and one-line flow values such as [a, b] and {key: value}. Anchors, aliases, tags, block scalars (| and >), multi-line scalars and multiple documents are rejected with an error.

Runs in your browser; nothing is uploaded.

FAQ

What YAML features are not supported?

Anchors (&), aliases (*), explicit tags, multi-document streams and custom types are rejected. Use full YAML only when you stay inside plain scalars and nested maps or lists.

Will key order be preserved?

JSON export preserves insertion order of parsed mappings. YAML output lists keys in object enumeration order.

Can I convert arbitrary Kubernetes manifests?

Many manifests work if they avoid anchors and tags. Complex manifests should be checked against the supported subset message after conversion.

Related developer tools

Bookmark this page for next time, or copy its link. Shared links contain no working input.

Link to this tool: https://www.toolpick.dev/free-tools/yaml-json