YAML to JSON Tool

Convert YAML format data to JSON format data, supporting basic YAML syntax

📝 YAML Input

📋 JSON Output

📁
Click or drag a YAML file here to upload
Supports .yaml, .yml and .txt file formats

YAML Syntax Example

# This is a comment
name: Product Name
price: 99.99
in_stock: true
tags:
  - New
  - Promotion
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 automatically convert numeric types
  • You can input YAML content via the text box or upload a YAML file directly
  • Click the swap button to reverse-fill the JSON result into the YAML input box