Home / Developer Tools / XML ↔ JSON

XML ↔ JSON

Convert XML to JSON and JSON back to XML.

How to use

  1. Pick the direction.
  2. Paste your input.
  3. Convert and copy.

Frequently asked questions

How are attributes handled?

XML attributes become @_-prefixed keys in JSON, so the conversion can round-trip.

Related tools

  • CSV ↔ JSON — Convert CSV to a JSON array and JSON back to CSV.
  • CSV ↔ XML — Convert CSV rows to XML elements and back.
  • Markdown Editor — Write Markdown with a live side-by-side preview.
  • Markdown Preview — Paste Markdown, see exactly how it renders.
  • Markdown to HTML — Convert Markdown into clean HTML markup.
  • HTML to Markdown — Turn HTML back into tidy Markdown.

See all developer tools