XML → JSON 온라인 변환기

Free 무료 · 가입 불필요 · 데이터 저장 안 함
Indent
Attrs as
Text key
Error
XML
JSON
// JSON output

더 많은 개발 도구

XML 포매터
형식화·검증
JSON→XML
XML로 변환
YAML→JSON
JSON으로 변환
CSV→JSON
JSON으로 변환
TOML→JSON
JSON으로 변환
JSON 포매터
형식화·검증·압축
Base64
인코딩/디코딩
URL 인코더
퍼센트 인코딩

왜 이것이 최고의 XML → JSON 변환기인가

스마트 배열 감지

Repeated sibling elements with the same tag are grouped into JSON arrays. Single-child containers are also detected as arrays when all children share one tag — so a list with one item stays a list.

왕복 안전

Numeric XML tags like _0, _1 (produced by JSON→XML from numeric-string keys) are correctly restored back to "0", "1".

유연한 속성 처리

Choose how XML attributes map to JSON: as @-prefixed keys (default), plain keys, or ignored entirely. Mixed text+attribute elements use a configurable text key.

타입 추론

XML text values that look like numbers, booleans, or null are automatically converted to proper JSON types. truetrue, 12801280. Disable to keep all values as strings.

자주 묻는 질문

How are XML arrays detected?

When a parent element contains multiple children with the same tag name, they are grouped into a JSON array. Additionally, when a parent element contains only same-named children (even just one), those children are also treated as an array — preserving list structure for single-item collections.

Can I round-trip JSON → XML → JSON?

Yes. JSON keys starting with a digit (e.g. "0") are prefixed with underscore by JSON→XML (_0). This converter detects that pattern and restores the original key. Arrays are preserved through both directions.

What does "Skip root" do?

Removes the outermost XML element wrapper so JSON output starts from its children directly. Useful when the root tag (like <root>) is just a container.

Is my data sent to a server?

No. All conversion happens entirely in your browser using JavaScript. Your XML never leaves your device.

심층 가이드
데이터 형식 변환 가이드
CSV, XML, JSON, HTML & Markdown
가이드 읽기