XML para JSON Conversor Online

Free Grátis · Sem cadastro · Dados não enviados
Indent
Attrs as
Text key
Error
XML
JSON
// JSON output

Mais Ferramentas para Desenvolvedores

Formatador XML
Formatar & validar
JSON→XML
Para XML
YAML→JSON
Para JSON
CSV→JSON
Para JSON
TOML→JSON
Para JSON
Formatador JSON
Formatar & validar
Base64
Codificar/Decodificar
URL Encoder
Codificar URL

Por Que Este é o Melhor Conversor XML para JSON

Detecção Inteligente de Arrays

Repeated sibling elements with the same tag are grouped into JSON arrays. Single-child containers are also detected as arrays when all children share one tag — so a list with one item stays a list.

Seguro para Round-trip

Numeric XML tags like _0, _1 (produced by JSON→XML from numeric-string keys) are correctly restored back to "0", "1".

Tratamento Flexível de Atributos

Choose how XML attributes map to JSON: as @-prefixed keys (default), plain keys, or ignored entirely. Mixed text+attribute elements use a configurable text key.

Inferência de Tipos

XML text values that look like numbers, booleans, or null are automatically converted to proper JSON types. truetrue, 12801280. Disable to keep all values as strings.

Perguntas Frequentes

How are XML arrays detected?

When a parent element contains multiple children with the same tag name, they are grouped into a JSON array. Additionally, when a parent element contains only same-named children (even just one), those children are also treated as an array — preserving list structure for single-item collections.

Can I round-trip JSON → XML → JSON?

Yes. JSON keys starting with a digit (e.g. "0") are prefixed with underscore by JSON→XML (_0). This converter detects that pattern and restores the original key. Arrays are preserved through both directions.

What does "Skip root" do?

Removes the outermost XML element wrapper so JSON output starts from its children directly. Useful when the root tag (like <root>) is just a container.

Is my data sent to a server?

No. All conversion happens entirely in your browser using JavaScript. Your XML never leaves your device.

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