JSON ↔ XML Converter

Convert between JSON and XML instantly. Swap direction in one click.

100% client-side Instant Private
InputJSON
0 charsWaiting for JSON
OutputXML
Converted XML appears here
Ready when you areWaiting for XML
How JSON ↔ XML mapping works
JSONXMLMapping
{"name":"TEO ToolKit"}<name>TEO ToolKit</name>Object key
{"@id":1}<x id="1"/>Attribute prefix
{"items":[1,2]}<items>1</items> × 2Repeated elements
{"#text":"hello"}<x>hello</x>Text content key

📋 Sample JSON

Load a sample object to test the conversion.

📚 When to use XML

  • • SOAP APIs and legacy systems
  • • RSS and Atom feeds
  • • Document and config formats

About JSON ↔ XML conversion

XML is expressive for document markup and legacy integrations, while JSON is compact and widely used by modern APIs. This converter maps attributes with the @ prefix, text with #text, and arrays to repeated elements. Conversion happens in your browser—your data is never uploaded.

✓ Bidirectional  · ✓ Preserves attributes and nested structure  · ✓ Runs in browser  · ✓ Free forever