XML to JSON Converter

Convert XML to JSON: the same data in a different structure, still readable in any editor. Free, in your browser, with no upload.

Output format

JSON

Overview

Why convert XML to JSON

JSON is the more practical choice here. API request and response payloads

Need a different output format or per-file settings? The data converter handles every format in one place. Going the other way? Use JSON to XML.

Comparison

XML vs JSON: how they differ

XML compared with JSON across encoding, fidelity, file size and support.
AttributeXMLJSON
Full nameExtensible Markup LanguageJavaScript Object Notation
EncodingText (editor-readable)Text (editor-readable)
What it preservesRich: namespaces, attributes, schemas, mixed contentPreserves nesting and value types exactly
Typical sizeLargest of the text data formats, because every value is wrapped in a closing tagVerbose: keys repeat on every record
SupportParsers in every language; native DOM support in browsers.Native in every programming language and every browser.

How to

How to convert XML to JSON

  1. 01

    Drop your XML file

    Drag one or more XML files onto the drop zone above, or click to browse. Files stay on your device and there is no upload step. data formats can't be reliably identified from their bytes alone, so the extension is used to work out the source format.

  2. 02

    Convert to JSON

    convert.now parses the XML and writes it out as JSON in a Web Worker, so the page stays responsive even on large files. Nothing is sent anywhere.

  3. 03

    Download the result

    Download the JSON file, or a zip of all of them for a batch. Filenames are preserved, with the extension changed to .json.

Why here

Why convert.now

  • Private

    Files stay in your browser. There is no upload step, so nobody else can see them.

  • Fast

    There is no queue and no upload to wait for. Conversion starts when you drop a file.

  • Free

    There are no ads, no limit on the number of files and no sign-up.

FAQ

XML to JSON: common questions

No. The XML to JSON conversion runs entirely in your browser. Files never leave your device, and there is no server involved in the conversion. To confirm it, open the Network tab in your browser's developer tools and run a conversion: you will see the page and its code load, and no request carrying your file.

More

Other conversions from XML

More

Other conversions to JSON

Last updated