What this tool does
Convert YAML to standard JSON, including common objects, arrays, scalars, multiline text, and anchors. If the input has a syntax error, use the message to check indentation, quotes, and other formatting.
- Supports common YAML 1.2 structures and block text.
- Parse settings depth, alias and merge key limits to reduce the risk of lags caused by malicious and complex input.
- The result is standard JSON, ready to copy or download.
How to use it
- Paste the YAML document.
- Click "Convert to JSON".
- If the syntax is invalid, correct the indentation or scalar according to the row and column prompts.
- Copy the results or download result.json.
Common uses
- Convert CI/CD or container configuration to JSON.
- Check the final resolved type of the YAML scalar.
- Migrate configuration when your app only accepts JSON.
YAML → JSON Features
Convert YAML objects, arrays, and scalar values to JSON, with error messages to help you fix invalid syntax. Review the result, then copy or download it.
FAQ
What should I check if YAML conversion fails?
Check indentation, quotes, colons, and multiline text formatting. The syntax error message can help you correct the input and try again.
Will yes be converted to a boolean?
Use true or false for boolean values to avoid differences in how YAML versions interpret words such as yes.
Can a file contain multiple YAML documents?
This page is converted as a single document; if you enter multiple --- separated documents, corresponding restrictions or parsing errors will be displayed.