YAML to JSON converter
Paste YAML and get JSON back, indented the way you want it. Errors point to the line that broke, and nothing you paste is uploaded.
Valid YAML
Free, with no sign-in. It runs in your browser, and what you paste is never sent to our servers.
How to use it
- 1Paste your YAML in the first box.
- 2Pick the indent. Two spaces is the usual choice, and Minified puts everything on one line.
- 3Copy the JSON, or download it as a file.
What carries over, and what does not
Mappings become objects, sequences become arrays, and strings, numbers, true, false and null keep their types. Anchors and aliases are resolved, so a block you reused with an alias appears in full each time.
Comments are dropped, because JSON has nowhere to put them. A file with several documents, separated by three dashes, comes back as one JSON array with an entry for each document.
When the YAML does not parse
The message under the boxes names the line the parser stopped at. The usual causes are a tab used for indentation, a missing space after a colon, or a list item indented differently from its neighbours.
Run it from any page
YAML to JSON is also a command in UtilEngine, our launcher extension for Chrome. Press your shortcut on any page and it opens right there, with no tab to switch to. It is one of the 29 developer tools in the launcher. This page stays free either way.
YAML to JSON questions
Is my file uploaded anywhere?
No. The conversion runs in your browser. Your YAML is never sent to our servers.
Are comments kept?
No. JSON has no comments, so they are dropped.
Does it support anchors and aliases?
Yes. An alias is replaced by the value its anchor points to, so the JSON holds the full value in each place.
Which YAML version does it follow?
YAML 1.2. That means yes and no are read as plain strings, and only true and false are booleans.
Can it convert JSON back to YAML?
Not on this page. JSON to YAML is one of the developer tools in the UtilEngine extension.
Every tool, one shortcut
Developer tools, sessions, snippets, AI, and 60+ commands.
Get it for $49One-time payment. 14-day refund, no questions asked.

