JSON para XML Conversor Online

Free Grátis · Sem cadastro · Dados não enviados
Root
Array item
Indent
Error
JSON
XML
// XML output

Mais Ferramentas para Desenvolvedores

Formatador JSON
Formatar & validar
Formatador XML
Formatar & validar
XML→JSON
Para JSON
JSON→YAML
Para YAML
JSON→CSV
Para CSV
JSON→TOML
Para TOML
Formatador HTML
Formatar & embelezar
Regex
Testar ao vivo

Por Que Este é o Melhor Conversor JSON para XML

Conversão Instantânea

Convert JSON to well-formed XML in real-time as you type. Supports all JSON types including nested objects, arrays, strings, numbers, booleans and null.

Custom Root & Item Tags

Configure the root element name and the tag used for array items. This lets you produce XML that matches your target schema or existing API contract.

Destaque de Sintaxe

XML output is color-coded by tag name, attribute, and text content for easy readability and debugging.

Baixar XML

Export the result as a .xml file for direct use in APIs, data pipelines, XSLT transforms, or any system that consumes XML data.

Perguntas Frequentes

How does JSON to XML conversion work?

Each JSON key becomes an XML element tag. Objects are converted to nested elements, arrays produce repeated elements (using the configured item tag name), and primitive values become text content inside their tag.

What happens to JSON arrays?

JSON arrays are converted to repeated XML child elements. You can customise the element name used for array items using the "Array item" option in the toolbar (default: <item>).

Are special characters escaped correctly?

Yes. All text content and attribute values are XML-escaped: & → &amp;, < → &lt;, > → &gt;, " → &quot;. The output is always well-formed XML.

Can I use this for SOAP or REST APIs that require XML?

Yes. The output is standard well-formed XML with an XML declaration. It can be used as a request or response body for SOAP services, XML-based REST APIs, or any system that consumes XML data.

Guia detalhado
Guia Conversão de Formatos
CSV, XML, JSON, HTML & Markdown
Ler o guia