YAML to JSON

Paste YAML and get clean JSON back, with nested maps, lists, quotes and comments supported.

Convert YAML to JSON

Paste YAML to begin.
Parsing runs locally in your browser; nothing is uploaded.

How to use the YAML to JSON

  1. Paste the YAML document into the input box.
  2. Choose the output indentation, or pick minified for one long line.
  3. Click Convert to JSON, then copy the result or download it as a file.

Features

Advertisement

Frequently Asked Questions

Common questions about the free online yaml to json.

Paste your YAML and click Convert to JSON. Nested maps, lists, quoted scalars and comments are all handled without any upload.
Block mappings, block sequences with nested entries, flow collections in square or curly brackets, single and double quoted strings, comments, and.
Anchors and aliases, multi line literal and folded block scalars, tags, and several documents in one file are not parsed.
A hash that starts a line or follows a space begins a comment and is ignored. A hash inside quotes stays part of the string.
Numbers, true, false, null and the tilde symbol become JSON numbers, booleans and null.
Tabs are not valid YAML indentation, so the tool reports the line number and asks you to replace them with spaces.
The tool stops and shows the line number of the first problem, such as an entry that is not a key and value pair or an unexpected indentation.
Yes, JSON objects keep the order in which the keys appear in the YAML document.
Yes, click Download .json to save the converted result as a file.
No. Parsing happens entirely in your browser, so nothing is uploaded to a server.

Last updated: October 10, 2026