LHTSOFTFiles
Loading…

XML to JSON Converter

Convert XML files to JSON in your browser, without uploading or signing up.

How to use XML to JSON Converter

  1. Select an XML file. Element names become object keys; @name represents attributes and #text represents text.
  2. Convert and download the result. Files stay on your device.

About the formats

JSON stores objects and arrays. XML stores nested elements and attributes; @name and #text map between the two formats.

Browser compatibility and limitations

DOCTYPE, external entities, namespaces and mixed content are rejected. Formatting whitespace and comments are not retained.

Frequently asked questions

Does this support external XML entities?

No. DTDs and entity declarations are rejected before parsing.

Can XML be restored byte for byte?

No. Whitespace, comments and mixed content are not preserved.

Related tools

All File Tools