Skip to content

Developer tool

YAML to JSON

Paste YAML keys and lists and turn them into pretty JSON.

Stays in your browser Processed in your browser. The text is not sent to our servers.

Tip: press Ctrl+Enter (or ⌘+Enter) to run from a text box.

Result will show here after you run the tool.

How to convert YAML to JSON

  1. Paste YAML made of keys, nested keys, and lists.
  2. Click Convert to JSON.
  3. Copy the pretty-printed JSON.

Use spaces for indentation, "key: value" lines, and "- item" lists. Quoted strings, numbers, true, false, and null are recognized.

Back to Developer tools

Frequently asked questions

Which YAML features are supported?

Maps, nested maps, lists, and simple scalars. Anchors, multiline blocks, and flow collections such as {a: 1} are not converted.

Is the YAML uploaded?

No. Conversion runs in your browser.

More questions on the FAQ page · Browse guides

Keep working without leaving the site.