แปลง YAML เป็น JSON
แปลง YAML เป็น JSON และ JSON เป็น YAML
Click "Convert" to see outputYAML to JSON Converter (and JSON to YAML)
Convert YAML to JSON or JSON back to YAML instantly. Supports multi-document YAML, anchors, aliases, and complex nested structures. Useful for Kubernetes configs, GitHub Actions, and Docker Compose files.
FAQ
What is the difference between YAML and JSON?
Both represent structured data. YAML uses indentation and is more human-readable; JSON uses braces/brackets and is more compact for machines. YAML is a superset of JSON — all valid JSON is valid YAML.
When should I use YAML over JSON?
Use YAML for config files (Docker, Kubernetes, GitHub Actions) because it supports comments and is easier to read. Use JSON for APIs and data exchange because parsers are faster and more universally available.
Why does YAML conversion sometimes fail?
YAML is whitespace-sensitive. Inconsistent indentation, tabs instead of spaces, or invalid anchors will cause parse errors. The converter shows line-specific error messages to help you fix them.
สำรวจต่อ
เครื่องมือนักพัฒนา อื่นๆ ที่คุณอาจชอบ...
จัดรูปแบบ JSON
จัดรูปแบบ ตรวจสอบ และย่อข้อมูล JSON พร้อม syntax highlighting
เข้ารหัส/ถอดรหัส Base64
เข้ารหัสข้อความเป็น Base64 และถอดรหัสสตริง Base64
เข้ารหัส/ถอดรหัส URL
เข้ารหัสและถอดรหัสส่วนประกอบ URL และ query strings
สร้าง UUID
สร้างตัวระบุ UUID v4 แบบสุ่ม
สร้าง Hash
สร้างแฮช MD5, SHA-1, SHA-256 และ SHA-512 จากข้อความ
ทดสอบ Regex
ทดสอบและดีบัก regular expressions พร้อมไฮไลท์การจับคู่
ถอดรหัส JWT
ถอดรหัสและตรวจสอบ header และ payload ของ JWT token
จัดรูปแบบ HTML
จัดรูปแบบโค้ด HTML พร้อมการเยื้องที่เหมาะสม