YAML to JSON converter
Paste YAML or open a .yaml file to get formatted JSON. Errors show the line and column, anchors and merge keys (<<) are resolved, and files with several documents become a JSON array.
- ๐ Runs on your device
- โค 0 bytes uploaded
- โ Free, no sign-up, no watermark
How to use YAML to JSON
- Paste YAML or open a .yaml or .yml file.
- Choose 2 spaces, 4 spaces or minified JSON.
- If there is an error, fix the line it points to.
- Copy or download the JSON.
Is it private?
Yes. YAML to JSON runs entirely in your web browser: what you type into it is never sent to Nolo or anyone else, and the page's security policy only allows it to talk to nolotools.com. The site sends only two small things: the words typed in the optional search box, to find a tool, and, the first time you use a tool on a page, that tool's name for an anonymous daily count of tool use (nothing about you, your files or what you typed). Nothing is stored either: close the page and it is gone. How Nolo works.
Questions and answers
Is my YAML sent to a server?
No. Everything runs in your browser and your YAML never leaves your device. The page is not allowed to talk to any other site, so it is safe to use with real data and secrets.
Is it safe to paste untrusted YAML?
Yes. The js-yaml library runs in safe mode with the YAML 1.2 core schema: custom tags such as !!js/function or !!python/object are rejected, nothing is executed, and the number of aliases is limited to stop "billion laughs" style files.
How are yes, no, on and off handled?
As text. YAML 1.2 only treats true and false as booleans, so "country: NO" stays the string "NO". Older YAML 1.1 tools turned these into booleans, which caused many bugs.
What about dates?
Dates such as 2026-01-31 stay strings, exactly as written, because JSON has no date type.
What happens with several documents separated by ---?
Each document becomes one item of a JSON array, in order.
Are comments kept?
No. JSON has no comments, so YAML comments are dropped.