XML to JSON

Convert XML into JSON format in the browser.

Converted JSON will appear here.

What is XML to JSON?

Converts an XML document into a JSON structure. Element names become keys, repeated elements become arrays, and attributes are stored under @attributes.

Example usage

Input: <user id="1"><name>Ada</name></user>
Output: { "user": { "@attributes": { "id": "1" }, "name": "Ada" } }

How to use

1. Paste XML into the input.

2. Click Convert (or blur the input) to generate JSON.

3. If you see “Invalid XML”, check for unclosed tags or invalid characters.

Related Tools

JSON to YAML

Convert JSON into YAML.

Open Tool

YAML to JSON

Convert YAML into JSON.

Open Tool

CSV to TSV

Convert CSV into TSV.

Open Tool

TSV to CSV

Convert TSV into CSV.

Open Tool

Base64 to Image

Preview Base64 image data as an image.

Open Tool

Image to Base64

Convert an image file to Base64 (data URL).

Open Tool

Popular Tools

JSON Formatter

Format, validate, and beautify JSON with syntax highlighting.

Open Tool

Regex Tester

Test regular expressions and highlight matches.

Open Tool

Base64 Encoder

Encode text to Base64.

Open Tool

UUID Generator

Generate UUID v4 identifiers.

Open Tool

JWT Decoder

Decode and inspect JWT header and payload.

Open Tool