JSON to XML Converter

Free. No sign-up. Your input is processed in your browser.

Convert in either direction. The input type is detected.

How to use it

  1. Paste JSON or XML.
  2. For JSON input, set the root element name if needed.
  3. Copy the converted result and read any notes.

Mapping rules

Keys starting with @ become attributes, #text becomes element text, and lists become repeated elements.

What can be lost

The formats do not match exactly. XML values come back as text, a single-item list looks like a single value, empty lists are dropped, invalid XML names are changed, and order in mixed content is not kept.

Questions

Do large IDs keep their digits?

Yes, in both directions.

Will a round trip give identical data?

Not always. Check the notes and the result.

Related tools

See all tools