Tool Wizard

XML to JSON Converter

Exclude the root node from the output JSON.
Choose the casing for property names.

XML to JSON Converter guide

Convert XML into clean, readable JSON. Supports removing the root element and changing property name casing.

Input and limitations

Well-formed XML. Nested structures are supported. Attributes are prefixed with '@' and text content is represented with '#text'.

Check the selected options before using the result. Formatting and conversion do not establish that data is safe or suitable for your application.

How to use XML to JSON Converter

  1. Paste your XML into the Enter XML field.
  2. Choose your options above.
  3. The JSON output appears on the right.
  4. Use the copy button to copy the result.
  5. Click Clear to empty the input and output; your options stay selected.

Example

Paste <root><name>Ada</name></root> to inspect the JSON mapping; compare the output with Remove Root enabled and disabled.

Privacy on the website

The website uses Blazor Auto: interactive processing can run on the server or in your browser, depending on the current session. Do not assume pasted input stays on your device. Use non-sensitive sample data, and never place passwords, tokens or personal data in page URLs.

Search indexing covers public tool descriptions, not your input or generated output. See the privacy policy for website analytics and other data handling.

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.