Paste YAML and get clean, formatted JSON instantly.
🔒 100% client-side — a hand-written YAML subset parser. Supports mappings, sequences, inline flow, quotes, comments, and block scalars (| and >).
YAML(YAML Ain't Markup Language) is a human-friendly configuration format used by Docker Compose, Kubernetes, GitHub Actions, Ansible, and many CI tools. JSONis the data interchange format every API speaks. Converting YAML to JSON is a common need when feeding config into tooling that only accepts JSON — and YAML's indentation rules make it easy to get wrong by hand. This tool parses YAML locally and emits clean JSON.
[a, b] for arrays and {key: value} for objects.true/false), and null (also ~).# (outside quotes) is ignored.| (literal) and > (folded).Unlike JSON, YAML is indentation-sensitive — two spaces versus four changes the structure entirely. Tabs are forbidden for indentation (use spaces only). Plain scalars are also implicitly typed: yes, no, on, and offbecome booleans in older YAML 1.1 parsers, which is a famous source of bugs (the "Norway problem" where NO became false). Quote such values if you need them as strings.
The most common cause is inconsistent indentation — mixing 2-space and 4-space steps, or tabs sneaking in from a copy-paste. The error message points to the offending line. Also watch for duplicate keys in the same mapping: while some YAML libraries silently overwrite, this parser reports them as errors because they almost always indicate a real mistake.
The YAML to JSON Converter converts yaml to jsonfrom one unit to another using the exact internationally defined conversion factors. Type a value, choose your source and target units, and the converted result is shown instantly — no waiting, no page reload.
Manual conversion is error-prone because it means memorizing ratios (how many feet in a meter, how many pints in a liter). This tool removes that friction: the conversion factor is built in, and the math is done to full precision with no rounding until the final displayed number.
Common uses: people reach for this tool when they need to look up a yaml to json converter online, convert yaml config to json, yaml parser to json pretty print, or frontmatter yaml to json.
Browser-based tools like this one have a few real advantages over installed software or manual methods:
More tools you might find useful