YAML to JSON Converter
Convert YAML format data to JSON format, supporting basic YAML syntax
Format JSON
Auto-convert numeric types
📝
YAML Input
📋
JSON Output
⇄
Convert YAML to JSON
Load Sample YAML
Clear All
Copy JSON
Download JSON
📁
Click or drag YAML file here to upload
Supports .yaml, .yml and .txt file formats
Remove
YAML Syntax Example
# This is a comment
name
:
Product Name
price
:
99.99
in_stock
:
true
tags
:
-
New
-
Sale
metadata
:
created_at
:
2023-01-01
updated_at
:
null
← Back to Tool List
Usage Tips
This tool supports basic YAML syntax including key-value pairs, lists, and nested structures
Use 2 spaces for indentation (Tab indentation is not supported)
Supports comments (lines starting with #)
Automatically recognizes booleans (true/false), null values (null/~), and numbers
You can choose whether to auto-convert numeric types
You can input YAML content via text box or upload YAML files directly
Click the swap button to fill JSON results back into the YAML input box