JSON to XML Converter

Convert JSON to well-formed XML online. Map @keys to attributes, handle arrays as repeated or wrapped elements, set the root name and download pretty or minified XML.

  • Free, no sign-up
  • Runs in your browser
  • Your data stays private

How to use the JSON to XML Converter

  1. Paste JSON or upload a file.
  2. Choose the root name, how arrays are written and indentation.
  3. Copy or download the XML.

Why use this JSON to XML Converter

  • Attributes and textKeys starting with @ become attributes and #text becomes element text.
  • Array controlRepeat the element for each item, or wrap items in a list element.
  • Valid namesInvalid characters in keys are fixed so the XML stays well-formed.
  • EscapingSpecial characters are escaped, with an optional CDATA mode.

Frequently asked questions

How do I convert JSON to XML?

Paste the JSON and the XML appears. A single top-level key becomes the root element.

How are arrays converted?

By default each item becomes a repeated element named after the key. You can wrap them in an item list instead.

Can I go back from XML to JSON?

Yes. The XML Formatter converts XML to JSON using the same @attribute and #text convention.

Related tools

More Developer Tools

User Reviews

–
No ratings yet
Write a review
Your rating *

Your email is never published. Reviews are moderated, and links aren't allowed.

What users are saying

No reviews yet

Be the first to share your experience with this tool — your feedback helps others.