Tools for converting between various data formats
Updates
Recently shipped improvements
Provides bidirectional conversion between JSON and XML formats.
Useful for API format conversion or legacy system integration.
JavaScript Object Notation
Extensible Markup Language
Bidirectional conversion
XML attribute handling (@_ prefix)
A tool that converts between JSON and XML data formats in both directions. Useful for API response format conversion, legacy system integration, data migration, and various development scenarios.
Choose a Conversion Direction
At the top, choose JSON → XML or XML → JSON.
Enter the Data
Paste JSON or XML into the left input panel, or use Load Sample to insert example data.
Set the Options
Adjust XML and JSON indentation, XML declaration inclusion, and other options as needed.
Review and Copy the Result
The converted result appears in the right output panel in real time. Use Copy to copy it to your clipboard.
XML attributes become JSON keys with an @_ prefix. For example, <book id="1"> becomes {"@_id": "1"}.
Yes. Click Swap to move the output into the input and reverse the conversion direction automatically.
An error message appears if the JSON or XML is invalid. Check the format and try again.
The tool provides 5 samples: a basic object, nested object, book list with attributes, configuration file, and RSS feed.
Yes. You can independently set XML and JSON indentation to either 2 or 4 spaces.