XML to JSON Converter
Parse XML markup into JSON — element attributes are prefixed with @_ and nested nodes and text content are preserved.
Three steps, no setup
Paste your XML
Works with attributes, nested elements, and mixed content.
Get JSON output
Attributes are kept distinct from child elements using an @_ prefix.
Copy the result
Feed it into any JSON-based pipeline or API.
Frequently asked questions
Related tools
JSON Formatter
Format and indent JSON with 2 spaces, 4 spaces, or tabs — with instant validation.
Data & Config FormatsJSON Minifier
Strip every unnecessary whitespace character from JSON for the smallest valid payload.
Data & Config FormatsJSON Comparer
Compare two JSON objects and see exactly which keys were added, removed, or changed.
Data & Config FormatsJSON to YAML Converter
Convert a JSON document into clean, indented YAML.
Data & Config FormatsJSON to TOML Converter
Convert JSON objects into TOML configuration format.
Data & Config FormatsJSON to CSV Converter
Convert a JSON array of objects into CSV, with auto-detected headers and a choice of delimiter.
