Free, no signup

XML to JSON: convert XML in your browser

Paste XML or drop a file and get JSON at once. Attributes become @name keys, a tag that repeats becomes a list, and an element's text becomes its value. A feed, a sitemap, or an API response converts the same way. Free, no signup, and nothing leaves your device until you ask for a link.

or drop a file on this box

Press Get a link: the File to link page opens with the converted file in it, ready to upload for a link to send. Sign up free and publish, and the link keeps working.

Make my form page for free

Collect sign-ups, orders, or answers with a form on a page of your own. Describe it and Convika makes it. Free to start, no card.

How to convert XML to JSON

  1. Paste your XML in the box, or press Choose an XML file.
  2. Check the tree: each tag is a key, each attribute an @ key.
  3. Press Download for the .json, or Copy to paste it into your code.

How are attributes converted?

Each attribute becomes a key that starts with @, so <item price="450"> gives "@price": "450". The element's own text sits beside them under #text.

What happens to a tag that repeats?

Two or more tags of the same name under one parent become a list, in their order. A tag that appears once stays a single value.

What if my XML has an error?

The page names the line and column where the XML breaks and what to fix, such as a tag that never closes or an & that should be &amp;. Fix it in the box and the JSON updates at once.

Is my XML uploaded?

No. Your browser converts it on this page, and nothing is sent to Convika. When you want a link to the JSON, Get a link takes the file to File to link.

Guides

See all guides