YAML to JSON Converter

Your text never leaves your browser — everything runs on your device.

Heads up: YAML comments and anchors are lost in conversion — JSON has no way to represent them.

Paste YAML and get valid, pretty-printed JSON instantly — configs, CI files, and API fixtures included. Nested maps, lists, quoted strings, numbers, booleans and nulls are all converted correctly. One thing to know: YAML comments and anchors do not survive the trip, because JSON has no equivalent for them. Free, no signup, and your text never leaves your browser.

Frequently asked questions

How do I convert YAML to JSON?

Paste your YAML into the box and click Convert to JSON. The result is pretty-printed JSON with 2-space indentation, ready to copy or download as a .json file.

Why are my YAML comments missing from the JSON?

JSON has no comment syntax and no anchors, so comments (# like this) and anchors (&name / *name) cannot be represented in JSON output. The values themselves convert exactly; only the comments and anchor shortcuts are dropped.

What YAML features are supported?

Block mappings and sequences, nested indentation, quoted and plain scalars, numbers, booleans, null, inline flow lists [a, b] and maps {a: b}. Multi-document files are not supported — convert one document at a time.

Is my YAML uploaded anywhere?

No. The conversion runs entirely in your browser using the js-yaml library. Your pasted text is never sent to a server, stored, or shared.