JSONをXMLに、またはXMLをJSONに双方向で変換します。ブラウザ内で完結します。
JSON / XML変換の使い方
方向を選択します(JSON→XMLまたはXML→JSON)。
JSONまたはXMLを貼り付けます。
変換結果をコピーするか、入れ替えて逆方向に変換します。
A two-way converter between JSON and XML, built on a well-tested parser. Convert a JSON object into XML or parse XML back into JSON, preserving attributes and turning repeated elements into arrays and back again.
It is handy whenever you need to bridge an XML-based system and a JSON-based one, inspect a SOAP payload as readable JSON, or turn a JSON config into the XML a legacy tool expects.
Everything runs locally in your browser, so your data never leaves your device.
XML (Extensible Markup Language) is a long-established way to structure data with nested tags and attributes. It is still everywhere: SOAP web services, RSS and Atom feeds, office document formats, Android layouts and countless configuration and data-exchange formats.
Attributes are preserved across the round trip using an @_ prefix on the JSON side, so an XML attribute becomes a clearly marked JSON key and converts back into the same attribute, rather than being lost or confused with child elements.
Repeated elements map naturally to arrays: several <item> tags under a parent become a JSON array, and a JSON array becomes repeated elements in the XML, which is the shape most real documents take.
よくある質問
属性はJSON側で@_プレフィックスを使って保持されるため、往復変換しても属性はそのまま保たれます。
繰り返されるXML要素はJSON配列になり、JSON内の配列はXMLでは繰り返し要素になります。
いいえ。変換はブラウザ内で完結するため、データがデバイスの外に出ることはありません。
このツールを埋め込む
このツールをご自身のウェブサイトに追加できます。下のコードをコピーしてください。内容は自動的に最新の状態に保たれます。
<iframe src="https://monu.tools/embed/ja/json-xml-converter" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>関連ツール