JSON to XML

Convert JSON data into XML format

Visual data view

Enter valid JSON or delimited text to inspect it here.

Enter an object with exactly one root element key; a root array or primitive JSON document rejects. Child objects become elements; child arrays repeat elements in order; nested arrays reject; scalar values become XML text; null becomes an empty element and an empty child array emits no elements. @_name denotes scalar attributes; #text denotes scalar text. Names must be unprefixed ASCII letters/underscore followed by letters, digits, underscore, dot or hyphen; xml-prefixed and parser-reserved names reject. Namespace prefixes are not generated. Literal special characters are escaped once; entity-looking JSON strings stay literal strings. Mapping: attributes use @_name; repeated children become arrays; XML values remain strings, including 00123. Text and CDATA become strings or #text. Whitespace-only formatting around child elements is omitted. Comments, processing instructions and declarations are omitted. Mixed text is concatenated into #text, so interleaving with child elements is not retained; this mapping is not lossless for mixed content or document metadata.

Limits and details

All processing stays local. Paste text only. Input limit:200,000 UTF-16 characters; oversized input rejects without truncation. Structured data is bounded to100 nesting levels and100,000 visited values; XML/YAML syntax is also bounded before recursive conversion. Results are displayed as text.

How to use JSON to XML

Convert JSON data into XML format

  1. Choose the source data and set its format, delimiter or document structure.
  2. Compare headers, row counts and data types before importing the exported file elsewhere.
  3. Review the result, then copy or download it.

Inputs and options

Input text

Example input

input: {"person":{"name":"Ana"}}

Use the example button when available, or paste these values into the corresponding fields.

Formats and limits

Enter an object with exactly one root element key; a root array or primitive JSON document rejects. Child objects become elements; child arrays repeat elements in order; nested arrays reject; scalar values become XML text; null becomes an empty element and an empty child array emits no elements. @_name denotes scalar attributes; #text denotes scalar text. Names must be unprefixed ASCII letters/underscore followed by letters, digits, underscore, dot or hyphen; xml-prefixed and parser-reserved names reject. Namespace prefixes are not generated. Literal special characters are escaped once; entity-looking JSON strings stay literal strings. Mapping: attributes use @_name; repeated children become arrays; XML values remain strings, including 00123. Text and CDATA become strings or #text. Whitespace-only formatting around child elements is omitted. Comments, processing instructions and declarations are omitted. Mixed text is concatenated into #text, so interleaving with child elements is not retained; this mapping is not lossless for mixed content or document metadata.

Frequently asked questions

Are my inputs uploaded?

Tool processing runs on your device. Your input is not sent to a processing server. Some tools may download runtime files or use platform features; see the tool notes.

What should I check before using the result?

Review delimiter, headers and data types. Keep a backup and inspect the converted output before importing it elsewhere.

Can I use this tool for free?

Yes. ToolXovo tools are free to use. Beta tools are still being validated; check their notes and exported results.