JSON ↔ XML Converter
Convert JSON and XML both ways (basic structures, attributes, and repeated elements supported).
도구를 불러오는 중…
🔒 Everything runs 100% in your browser. Your files and input are never uploaded to any server.
This is a tool that converts JSON to XML and XML to JSON. It lets you quickly line up the format when working with API responses or XML data from legacy systems.
How to use
- Select the conversion direction (JSON→XML or XML→JSON) from the tabs at the top.
- For JSON→XML, you can specify the name of the wrapping root element.
- Paste your source or load a sample with 'Insert example', then copy the result.
FAQ
- How are XML attributes converted?
- In XML→JSON conversion, an element's attributes become keys prefixed with @ (e.g. @id), and if a childless element has text alongside attributes, the text is expressed under a #text key. When there are several sibling elements with the same name, they're automatically grouped into an array.
- How are JSON arrays expressed in XML?
- Each item in the array is output repeatedly under the same tag name. For example, tags: ["A","B"] becomes <tags>A</tags><tags>B</tags>.
- Does every XML round-trip perfectly?
- This conversion is built for basic structures, so complex XML with namespaces, CDATA, processing instructions, or mixed content may not be restored exactly — review it as a reference before using. Invalid formats are reported as errors and the app won't crash.
