XML to JSON Converter
Parse XML into JSON with attribute preservation (@attr) and text nodes (#text). Great for inspecting SOAP responses, RSS feeds, sitemaps, and legacy XML APIs.
ツール要約
このツールは構造化された入力を受け取り、サーバーへアップロードせずにブラウザで決定的な出力を返します。
- ツール名
- XML to JSON Converter
- 入力の目的
- 変換・検証・分析するソースコンテンツを入力してください。
- 出力の目的
- コピー・再利用・デバッグに適した正規化された出力を受け取ります。
- 入力例
- <book><title>Dune</title><author>Frank Herbert</author><year>1965</year></book>
- 出力例
- { "book": { "title": "Dune", "author": "Frank Herbert", "year": "1965" } }
Paste XML above and click Convert to JSON.
ツールの紹介
Parse XML into JSON with attribute preservation (@attr) and text nodes (#text). Great for inspecting SOAP responses, RSS feeds, sitemaps, and legacy XML APIs.
ツール概要
The parser reads elements, attributes, text content, and CDATA sections, ignoring XML declarations and comments. Repeated siblings with the same tag name are grouped into a JSON array. Attributes are prefixed with @ and mixed text with #text, so the structure round-trips sensibly. Turn attribute preservation off if you only care about the text content.
ユースケース
- Inspect a SOAP response inline without a debugger
- Convert an RSS feed into JSON for your news reader
- Migrate legacy XML fixtures to JSON-based tests
- Pipe an XML sitemap into a URL-auditing script
入力/出力の例
<book><title>Dune</title><author>Frank Herbert</author><year>1965</year></book>
{
"book": {
"title": "Dune",
"author": "Frank Herbert",
"year": "1965"
}
}<book id="42" isbn="0441013597"><title>Dune</title></book>
{
"book": {
"@id": "42",
"@isbn": "0441013597",
"title": "Dune"
}
}<rss version="2.0"><channel><item><title>Hello</title></item><item><title>World</title></item></channel></rss>
{
"rss": {
"@version": "2.0",
"channel": {
"item": [
{ "title": "Hello" },
{ "title": "World" }
]
}
}
}よくある質問
Is this XML to JSON converter free?+
What are @ and # prefixes in the output?+
What XML features are supported?+
How are repeated tags handled?+
Can it parse SOAP, RSS, or sitemap XML?+
他のツールを見る
下記の Data カテゴリで関連ユーティリティを探す。
関連ツール
役に立ちそうな厳選ユーティリティ