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. JSON is 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 ~).# preceded by a space (outside quotes) starts a comment; the rest of the line 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 off become 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.
More tools you might find useful
Format and validate JSON with proper indentation.
Decode JWT tokens and inspect header, payload, and signature locally.
Every ASCII character with dec/hex/oct/bin codes, searchable.
Any base 2-36, fractions included, all common bases at once.