Conversor JSON ↔ XML
Conversor bidireccional en vivo entre JSON y XML con opciones de prefijo de atributos y clave de nodos de texto. 100% en el navegador.
También te puede interesar
😄 Gratis gracias a los anuncios
JSON ↔ XML Converter
JSON and XML have different structures, so conversion has a few choices. This tool converts both ways in real time, with two tweakable rules.
Two options
- Attribute prefix (default
@_) — prefix used in JSON keys for XML attributes. Example:<book id="1">→{"@_id": "1"} - Text key (default
#text) — JSON key holding the text content of an element when it also has attributes. Example:<title lang="en">Gatsby</title>→{"title": {"@_lang": "en", "#text": "Gatsby"}}
How to use
- Type in either side — the other converts automatically
- Sample button loads example data
- Swap button exchanges left and right
- Copy or download each format separately
Conversion rules
- Arrays — multiple child elements with the same name become a JSON array
- Attributes vs child elements — distinguished by the prefix
- Empty elements —
<br />→{"br": ""} - Comments — stripped during conversion (not lossless)
Client-side only
Your data never leaves the browser. Safe for SOAP responses, API keys, internal configs.
Related tools
¡Más funciones de iTool!
Contador de caracteres
Contador de caracteres — cuenta caracteres, palabras y bytes en tiempo real. Gratis, sin instalación.
Analizador / Formateador JSON
Analizador JSON online gratuito. Valida, formatea y minifica JSON en tiempo real con resaltado de sintaxis y ubicación de errores. 100 % en el navegador.
Conversor YAML ↔ JSON ↔ TOML
Conversor en vivo en 3 direcciones entre YAML, JSON y TOML. Detección inteligente de esquemas (Kubernetes, Docker Compose, GitHub Actions) y advertencias de trampas YAML (problema de Noruega, octal). 100% en el navegador.
Analizador / Formateador XML
Analizador XML online gratuito con validación en tiempo real, vista de árbol plegable (+/-), pretty print y resaltado de sintaxis para elementos, atributos, texto y CDATA. 100% en el navegador.
Comparar texto
Comparar diferencias entre dos textos en tiempo real