Skip to content
cosmodev ~/tools/xml-to-json

XML ↔ JSON 변환기

Converters & Formatters

XML을 JSON으로, JSON을 XML로 변환하며 속성을 보존합니다. 입력을 검증하고 오류를 명확하게 알려줍니다. 브라우저에서 완전히 동작하며 정확한 입력을 담은 공유 링크를 제공합니다.

JSON
XML을 붙여넣으면 JSON으로 변환됩니다.

(문서는 영어)

What it does

Converts XML to JSON and JSON to XML, preserving attributes (encoded as @_name keys, per fast-xml-parser). XML is validated first, so malformed input reports an error instead of a broken result.

How to use it

  1. Pick a direction: XML → JSON or JSON → XML.
  2. Paste your input.
  3. Copy the result, or share a link.

Examples

XML: <user id="7"><name>Alice</name></user> → JSON: { "user": { "@_id": "7", "name": "Alice" } }

Good to know

  • Private: all conversion is local.
  • Attributes keep their values as strings; element text is coerced (numbers/booleans) on parse.
  • JSON → XML requires an object or array root.
  • Related tools: JSON Formatter, JSON Minify.
소스 코드14개 언어

100% 클라이언트 측 · 데이터는 브라우저 밖으로 나가지 않습니다. 도움이 되었나요? 팀원에게 공유해 보세요.