YAML to JSON
Convert a YAML file into JSON.
Free, with no account needed. It runs in your browser, so your file never leaves your device.
Select YAML file
or drop it here · up to 25 MB
About YAML to JSON
YAML to JSON converts a YAML file into JSON. It is handy when a tool or API needs JSON but your configuration is written in YAML.
Last reviewed
How to use it
- Select a .yaml or .yml file.
- Press Convert to JSON.
- Download the .json file.
When to use it
- Sending YAML configuration to an API or a tool that accepts only JSON.
- Checking how a YAML file is actually read, since the JSON shows the exact structure.
- Converting OpenAPI or other specifications between formats.
Good to know
- Comments in the YAML are lost, because JSON cannot hold comments.
- The file is read in safe mode, which does not run any code that a YAML file might try to include.
- If the YAML is invalid, the message says what is wrong.
Tips for a better result
- Watch values such as yes, no and on in YAML. Depending on the YAML version they may be read as true or false. Quote them if you mean text.
- Use spaces, not tabs, for indentation in YAML.
- Keep the original YAML if it has comments, because the JSON will not.
Questions about YAML to JSON
- Why did my comments disappear?
- JSON has no comment syntax, so comments cannot be carried across. Keep your YAML as the source and generate the JSON from it.
- Is it safe to convert a YAML file from someone else?
- Yes. The file is read in safe mode, so it cannot run code.
- How much does YAML to JSON cost?
- YAML to JSON is free, and you don't need an account. It runs inside your browser, so it costs us nothing to run and there are no credits to spend.
- Is my file kept after I use YAML to JSON?
- Your file never leaves your device. YAML to JSON works inside your browser, so nothing is uploaded and there is nothing for us to keep.
- Do I need an account to use YAML to JSON?
- No. YAML to JSON works without an account or sign-up. Open the page, choose your file and download the result.
- Does YAML to JSON work on a phone?
- Yes. YAML to JSON runs in the browser on phones, tablets and computers, with nothing to install. A very large file can be slow on an older phone, because your own device does the work.
- Is there a file size limit for YAML to JSON?
- We set no upload limit, because nothing is uploaded: the limit is your device's memory. If your browser can't process a file, the page offers to process it on our servers instead. That uses credits and accepts files up to 25 MB.