ตัวแปลง XML ↔ JSON
แปลง XML เป็น JSON และ JSON กลับเป็น XML — สองทิศทาง ไม่มี dependency ทำงานในเบราว์เซอร์
XML to JSON Converter (Bidirectional)
Convert XML to JSON and JSON back to XML. Handles attributes, namespaces, CDATA sections, and deeply nested elements. Useful for working with SOAP APIs, RSS feeds, and legacy data formats.
FAQ
How do I convert XML to JSON online?
Paste your XML into the input panel and click Convert. Attributes are mapped to @ prefixed keys, text content to #text, and child elements to nested objects.
Why convert XML to JSON?
Modern REST APIs use JSON. Legacy systems, SOAP services, and RSS feeds use XML. Converting to JSON makes the data easier to work with in JavaScript, Python, and most modern languages.
Can JSON to XML conversion round-trip perfectly?
Not always. XML supports namespaces, mixed content, and ordered elements that don't have direct JSON equivalents. Simple conversions round-trip cleanly; complex XML may need manual adjustment.
สำรวจต่อ
ข้อมูลและสเปรดชีต อื่นๆ ที่คุณอาจชอบ...
ดูและแก้ไข CSV
ดู เรียง กรอง และตรวจสอบไฟล์ CSV เป็นตารางโต้ตอบ — ทั้งหมดในเบราว์เซอร์
ดูตาราง JSON
แสดง JSON arrays ของ objects เป็นตาราง HTML ที่เรียงลำดับ ค้นหาได้ พร้อมกรองคอลัมน์
แปลง Excel เป็น CSV
แปลงไฟล์ Excel XLSX และ XLS เป็น CSV — ไม่ต้องอัปโหลด ทำงานในเบราว์เซอร์ผ่าน SheetJS
ดึงคอลัมน์ CSV
เลือกคอลัมน์เฉพาะจากไฟล์ CSV แล้วดาวน์โหลด — เหมาะสำหรับทำความสะอาดชุดข้อมูลขนาดใหญ่
SQL บน CSV
รัน SQL SELECT queries บนไฟล์ CSV ที่อัปโหลดโดยตรง — ไม่ต้องใช้เซิร์ฟเวอร์
รวม CSV
รวมไฟล์ CSV หลายไฟล์เป็นหนึ่ง — จัดเรียงใหม่ ลบแถวซ้ำ และจัดการหัวตารางอัตโนมัติ
JSON เป็น Excel
แปลง JSON array ของ objects เป็น Excel (.xlsx) หรือ CSV — ขับเคลื่อนด้วย SheetJS ทำงานในเบราว์เซอร์
JSON Diff Viewer
เปรียบเทียบ JSON สองออบเจกต์เคียงข้างกันและไฮไลท์ฟิลด์ที่เพิ่ม ลบ และเปลี่ยนแปลง