XML to JSON Converter

This online tool allows you to convert an XML file into a JSON file. This process is not 100% accurate in that XML uses different item types that do not have an equivalent JSON representation.

  • Attributes are treated as JSON properties and can be prefixed to differentiate them (@ is used by default)
  • Sequences of two or more 'similar' elements will be converted to JSON arrays
  • You can add an attribute _type to your elements to infer the json type (boolean, float, integer, number, string)
  • Terminal #text item types will be converted into a JSON property with the name #text. This can be changed in the options.