JSON ↓ YAML ↓ TOML Converter
Convert between JSON, YAML, and TOML formats.
ตัวแปลง JSON ↔ YAML ↔ TOML — การแปลงรูปแบบทันทีสำหรับนักพัฒนา
การพัฒนาซอฟต์แวร์สมัยใหม่สัมผัสกับรูปแบบข้อมูลทั้งสามนี้เป็นประจำ APIs ใช้ JSON Infrastructure-as-code, Kubernetes manifests, GitHub Actions workflows และ Docker Compose ใช้ YAML โปรเจกต์ Rust ใช้ Cargo.toml, Python packaging ใช้ pyproject.toml เมื่อต้องแปลงระหว่างรูปแบบเหล่านี้ converter นี้จัดการทุกทิศทางทันทีในเบราว์เซอร์
เลือกรูปแบบ input จาก dropdown ซ้าย (JSON, YAML หรือ TOML) แล้วเลือกรูปแบบ output ที่ต้องการจาก dropdown ขวา วาง data ในแผง input แล้วคลิก Convert ผลลัพธ์ปรากฏทันที ใช้ปุ่ม Swap เพื่อกลับทิศทางอย่างรวดเร็ว มีประโยชน์สำหรับการทดสอบ round-trip
JSON เคร่งครัด: strings ทั้งหมดต้องมี double quote ไม่มี trailing commas ไม่มี comments YAML เป็นมิตรกับมนุษย์แต่ sensitive ต่อ whitespace — indentation กำหนดโครงสร้าง TOML ออกแบบมาสำหรับไฟล์ configuration โดยเฉพาะ ใช้ sections แบบ INI รองรับ comments และมีไวยากรณ์ที่สะอาดกว่าสำหรับ arrays
วิศวกร DevOps ใช้แปลงระหว่าง Kubernetes YAML manifests และรูปแบบ JSON นักพัฒนา Rust ใช้แปลงการตอบสนอง JSON API เป็นรูปแบบ TOML นักพัฒนา backend ใช้ตรวจสอบว่า YAML config ที่เขียนถูกต้องไวยากรณ์โดยแปลงเป็น JSON
การแปลงทั้งหมดทำงาน 100% ในเบราว์เซอร์ของคุณโดยใช้ JavaScript — ข้อมูล configuration, API keys, secrets และนิยาม infrastructure ของคุณไม่เคยออกจากอุปกรณ์และไม่เคยถูกส่งไปยัง server ใดๆ
คำถามที่พบบ่อย
- What is the difference between JSON, YAML, and TOML?
- JSON (JavaScript Object Notation) is a compact, strictly structured format widely used in APIs and web apps. YAML (YAML Ain't Markup Language) is a human-readable superset of JSON used in config files (Docker, Kubernetes, GitHub Actions). TOML (Tom's Obvious, Minimal Language) is an INI-like config format used in Rust (Cargo.toml), Python (pyproject.toml), and Hugo.
- Does my data get sent to a server?
- No. All conversion happens 100% in your browser using JavaScript. Your configuration data, API keys, and secrets never leave your device.
- What YAML features are supported?
- The converter supports nested maps, sequences (lists), scalar types (string, number, boolean, null), and quoted strings. Advanced YAML features like anchors, aliases, multi-document streams, and block scalars are not supported.
- What TOML features are supported?
- Supported: key-value pairs, nested tables ([section]), arrays of tables ([[array]]), inline arrays, and all scalar types. Not supported: datetime types, multi-line strings, dotted inline tables, and comments (lost on round-trip).
- Can I convert YAML back to JSON?
- Yes. Select YAML as the input format and JSON as the output format, paste your YAML, and click Convert. Use the ⇄ Swap button to quickly reverse the direction.
เครื่องมือที่เกี่ยวข้อง
- JSON Formatter, Validator & Repair Tool
Format, minify, validate, and repair JSON instantly in your browser. Sort keys alphabetically, auto-format on paste, download as file, escape/unescape strings — free, no sign-up, 100% client-side.
- ตัวสร้าง QR Code
สร้าง QR code สำหรับ URL ข้อความ Wi-Fi และอื่นๆ ดาวน์โหลดเป็น PNG
- ตัวสร้างรหัสผ่าน
สร้างรหัสผ่านสุ่มที่แข็งแกร่งด้วยความยาวและชุดอักขระที่กำหนดเอง
- Base64 เข้ารหัส / ถอดรหัส
เข้ารหัสข้อความเป็น Base64 หรือถอดรหัสกลับเป็นข้อความธรรมดา
- URL เข้ารหัส / ถอดรหัส
เข้ารหัสหรือถอดรหัส URL และ query strings ด้วย percent-encoding