FORMATFYCOM formátovač · validátor · minifikátor About

What's new

JSON to XML Converter

Convert JSON to XML with attributes (@name), text (#text) and arrays as repeated elements. Fixes invalid names. Free, in your browser.

Input

Output


      

How to convert JSON to XML

Converts JSON to XML: "@name" keys become attributes, "#text" the element text and arrays repeated elements. Invalid element names (spaces, leading digits) are fixed and listed.

  1. Paste JSON

    Copy the data or drop a file. JSON errors are explained and fixed just like in the formatter.

  2. Set up the conversion

    Options in the toolbar: indentation, delimiter, value types.

  3. Copy or download

    The XML updates as you type; copy it or download it as a file.

What the conversion does

Attributes and text

{"price": {"@currency": "USD", "#text": 39}} → <price currency="USD">39</price>

Arrays

"book": [ … ] → repeated <book> elements

Invalid names

“2nd key” → _2nd_key; accented letters stay (allowed in XML).

FAQ

What if the JSON has no single root?

An array or an object with several keys is wrapped in <root>; an object with one key uses that key as the root.

Is it free, without sign-up?

Yes. No sign-up, no ads and no size limit — the only limit is your computer.

Is my data sent to a server?

No. Everything runs in your browser and the data you paste never leaves it — fine even for data with tokens or personal information.

Related tools