XML ↔ JSON Converter

Convert between XML and JSON formats instantly. Perfect for API integration and data transformation.

XML Input

JSON Output

About XML ↔ JSON Conversion

Convert between XML (Extensible Markup Language) and JSON (JavaScript Object Notation) formats for data interchange and API integration.

XML to JSON:

  • Attributes stored in @attributes object
  • Text content stored in #text property
  • Repeated elements become arrays

JSON to XML:

  • @attributes converted to XML attributes
  • #text converted to element text content
  • Arrays create repeated elements