YAML ↔ JSON Converter
Convert YAML → JSON and JSON → YAML both ways. The YAML parser is simplified and hand-written (no external libraries) — see below exactly what is supported.
Convert YAML → JSON and JSON → YAML both ways. The YAML parser is simplified and hand-written (no external libraries) — see below exactly what is supported.
YAML is a data serialization format widely used in configuration files (Docker Compose, Kubernetes, CI/CD, etc.). The full spec is large and full of advanced features. To keep this site 100% static and dependency-free, the parser here is a custom implementation that covers the most common subset of YAML — enough for most everyday config files.
key: value) and lists (- item).true/false) and null (null or ~).\n, \t, \", \\).# (including at the end of a line).- key: value for lists of objects.[] and {}.&, *).!!str, !!int, etc.).--- separator is ignored; use one document at a time).| and >).[1, 2, 3] or {a: 1}) — use the indented block form instead.If the input uses an unsupported feature, the tool shows a readable error message instead of silently producing an incorrect result.
The site is static, with no build step or external dependencies (beyond what's required for ads). A lean, custom parser keeps that promise and runs entirely in your browser.
Yes. When generating YAML from JSON, text values that would look like numbers, booleans
or null are automatically wrapped in quotes, so that reading them back
still treats them as text.
Check that you're using spaces (not tabs) and that the levels are consistently aligned. The error message indicates the problematic line.