XMLからJSONへの変換ツール
XMLを整形されたJSONに変換します。属性、CDATA、ネスト要素、複数の子要素に対応。無料・プライベート・即時変換。
How It Works
Paste XML
入力エリアにXML文書をコピー&ペーストしてください。サンプルは、ネスト要素とCDATAを含む実際の例を提供します。
Auto-Convert
The XML is parsed and converted to JSON instantly as you type. Attributes get an @ prefix and text nodes use #text.
Review JSON
The formatted JSON output is pretty-printed with 2-space indentation. Nested structures and arrays are clearly visible and easy to navigate.
Copy or Download
Copy the JSON to your clipboard with one click, or download it as a .json file for use in your projects.
About XML to JSON Converter
Convert XML documents to clean, structured JSON format instantly using browser-native DOMParser. This tool follows the standard xml2json convention — attributes are prefixed with @, text content is stored in #text when mixed with child elements, and multiple child elements with the same name are grouped into arrays. CDATA sections are treated as text content. The JSON output is pretty-printed with 2-space indentation for readability. All processing happens in your browser — no data is sent to any server.
属性サポート
XML属性は標準の@プレフィックス規則で保持されます。1つの要素に複数の属性がある場合も、それぞれ別のキーとして含まれます。@ prefix convention. Multiple attributes on one element are all included as separate keys.
CDATA処理
CDATAセクションはテキストコンテンツとして扱われ、出力に含まれます。CDATAセクション内の生テキストは解析されずに保持されます。
ネスト&配列サポート
深くネストされた要素はネストされたオブジェクトになります。同じレベルの繰り返し要素名は自動的に配列にグループ化されます。
100%プライベート
すべての変換はブラウザ内でネイティブのDOMParserを使用して行われます。データがサーバーにアップロードされることはありません。ページ読み込み後はオフラインでも動作します。