⌕
Developer · free online tool

XML to JSON.

Convert XML elements and attributes to JSON.

Your workspace◈ Processed on your device
Your result
Your result will appear here.

A little context.

Preserves attributes with an @ prefix and text as #text where needed. DTDs and entity declarations are rejected. XML comments and formatting are not preserved.

Try an example

<name>Alex</name> → {"name":"Alex"}

How to use this tool

  1. Enter xml in the workspace above.
  2. Select Run tool to process your input. Invalid values produce a message next to the form.
  3. Copy the result or download it as a file. Reset example restores the original input.

Keep a good thing going.

A few related tools for your next step.