JSON ↔ XML 変換ツール
JSONとXMLをリアルタイムで双方向変換。属性プレフィックス・テキストノードキーをオプションで調整可能。完全ブラウザ処理。
オプション
JSONまたはXMLを貼り付けると反対側がリアルタイム変換されます
こちらのツールもおすすめ
😄 広告で無料
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
iToolのその他の機能!
文字数カウント
文字数カウント — 文字数・単語数・バイト数をリアルタイムで計算。ブログや自己PR作成に便利、無料。
JSONパーサー / 整形ツール
JSONをリアルタイムで検証・整形・圧縮する無料オンラインJSONパーサー。構文ハイライト、エラー位置表示、100%ブラウザ処理で安全。
YAML ↔ JSON ↔ TOML 変換ツール
YAML・JSON・TOMLをリアルタイムで3方向変換。Kubernetes、Docker Compose、GitHub Actionsスキーマ自動検出と、YAMLの落とし穴(Norway問題・8進数など)警告付き。完全ブラウザ処理。
XMLパーサー / 整形ツール
XMLをリアルタイムで検証、整形、折りたたみツリービュー(+/-)で探索。要素・属性・テキスト・CDATA・コメントを色分け。完全ブラウザ処理。
テキスト比較
テキスト比較 — 2つの文書の差分を色分けで一目で確認できます。コード・契約書の修正チェックに便利、無料。
このツールの改善にご協力ください
ありがとうございます!フィードバックを受け取りました😊