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 카테고리에서 관련 유틸리티를 찾아보세요.
관련 도구
유용할 수 있는 엄선된 유틸리티