FeelTheFile

Convert XML to JSON

Turn XML documents into JSON keeping attributes and hierarchy.

Your files never leave your device

How to go from XML to JSON

  1. 1

    Paste or upload the XML

    Feeds, sitemaps, exports, SOAP…

  2. 2

    Convert

    Validated and transformed keeping attributes.

  3. 3

    Copy or download

    Indented JSON ready for your code.

Why use this tool

  • Attributes kept

    XML attributes are preserved with the @_ prefix.

  • Pre-validation

    Malformed XML is caught before converting.

  • For legacy systems

    Translate XML feeds and exports into the format your code uses.

  • Private

    100% local processing.

Frequently asked questions

How are attributes represented?

As keys with the @_ prefix inside the element's object, to tell them apart from children.

What about repeated elements?

They're automatically grouped into an array, as you'd expect in JSON.

Does it validate the XML?

Yes: malformed documents produce a clear error message.

Does it work for sitemaps and RSS?

Yes, that's a typical use: convert the feed to JSON and work with it comfortably in code.

Related tools