βš™
useprecisoDevTools

JSON ↔ XML Converter

Convert between JSON and XML. When converting XML→JSON you can specify which paths should become arrays.

Indent

Attribute prefix

Root element

JSON Input
XML Output

Output appears here…

Conversion notes

JSON β†’ XML

  • JSON arrays become repeated XML elements
  • Keys starting with @ become XML attributes
  • #text key becomes element text content
  • null β†’ xsi:nil="true"

XML β†’ JSON

  • Repeated tags auto-detected as arrays
  • Use "Force array paths" for single-item arrays
  • XML attributes prefixed with @
  • Numbers, booleans, null auto-typed