📋 Sample JSON
Load a sample object to test the conversion.
Convert between JSON and XML instantly. Swap direction in one click.
Converted XML appears here| JSON | XML | Mapping |
|---|---|---|
| {"name":"TEO ToolKit"} | <name>TEO ToolKit</name> | Object key |
| {"@id":1} | <x id="1"/> | Attribute prefix |
| {"items":[1,2]} | <items>1</items> × 2 | Repeated elements |
| {"#text":"hello"} | <x>hello</x> | Text content key |
Load a sample object to test the 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