Convert YAML to JSON
JSON is the common format for APIs and apps. Paste YAML and get clean JSON in a moment. The tool reads one file or many documents. Nothing is uploaded.
Paste YAML from a config file. The JSON appears on the right.
This runs in your browser. Your file is not sent to us.
How to use yaml to json
- Paste your YAML. Add a config file, a compose file or a list of records.
- Set the options. Choose the indent and allow multiple documents if needed.
- Copy the JSON. Copy the result or download it as a .json file.
What you get
- Reads nested maps and lists
- Handles multiple YAML documents
- Choose the JSON indent
- Clear error for a bad indent
Why this runs in your browser
Most free PDF sites ask you to upload your file. Then you wait. Then you hope they delete their copy. That is a bad deal for a payslip, a contract or a passport scan.
YAML to JSON reads the file on your device and saves the result to your downloads folder. There is no upload and no copy on a server. For the details, see how it works.
YAML to JSON questions
Why does the tool report a bad indent?
YAML uses spaces, not tabs. Line up each child key with the same number of spaces.
Can I convert many documents?
Yes. Turn on multiple documents to get one JSON array.
Are dates kept as dates?
No. JSON has no date type. Dates become plain strings in the output.
Does the order of keys change?
No. The tool keeps the order it reads, unless you turn on sort keys.
Is my YAML uploaded?
No. The converter runs on your device and nothing leaves the browser.