Simple · Fast · Free
Friends
My Favorites
DATA TOOLS

XML ↔ JSON Converter

Convert XML and JSON while preserving attributes and repeated nodes.

You can also paste content

XML attributes are stored in @attributes; mixed text is stored in #text; repeated nodes with the same name become arrays.

XML and JSON are parsed locally in your browser.

About XML ↔ JSON Converter

Convert XML and JSON using @attributes for XML attributes and #text for text, with repeated nodes represented as arrays.

How to use this tool

  1. Import or paste XML or JSON and choose the conversion direction and output options.
  2. Check attributes, repeated nodes, and text structure before copying or downloading.

Example

<item id="1">Hello</item> can be represented by an object with @attributes and #text.

Can arbitrary XML and JSON be converted without loss?

Their data models differ. Namespaces, mixed content, and node order may affect meaning. Understand this tool’s field conventions and verify the result in the destination system.

Privacy

Files and content are processed locally in your browser without file uploads. Download the result before closing the page; files must be selected again in a new session.