YAML to JSON Converter
{
"name": "rangdom",
"version": "1.0.0",
"private": true,
"scripts": {
"build": "next build",
"test": "vitest"
},
"keywords": [
"random",
"generator",
"tools"
]
}Converted locally in your browser. Your YAML stays only on this page.
Turn YAML into JSON
Paste a block-style YAML snippet — a GitHub Actions step, a Kubernetes manifest, or a docker-compose fragment — and get the equivalent pretty-printed JSON with 2-space indentation. This is the reverse of the JSON to YAML tool, so formatting JSON to YAML and back recovers the original value.
Supported: block mappings (key: value) and sequences (- item) nested by consistent indentation; plain, single-quoted, and double-quoted strings; integers, floats, true/false, and null/~; empty flow collections {} and []; and # comments.
Not supported (rejected with an inline error): anchors and aliases (&, *), tags (!!type), multi-document streams (--- / ...), block scalars (|, >), and non-empty flow collections such as {a: 1} or [1, 2].