Skip to content

JSON ⇄ XML Converter

Free bidirectional JSON ⇄ XML converter. Paste either format and toggle direction; built-in beautify keeps input tidy. Perfect for API integrations and legacy systems.

Runs in your browserUpdated Apr 26, 2026

JSON Input

XML Output

Frequently asked questions

How are JSON arrays converted to XML?

Each array item becomes a repeated element with the parent key. So {"items":[1,2]} → <items>1</items><items>2</items>.

What about JSON keys that aren't valid XML names?

Keys with spaces or special characters are sanitised to valid XML names. Numeric keys are prefixed with an underscore.

Is my JSON sent anywhere?

No — conversion runs entirely in your browser. Your data never leaves your device.

Can I convert XML back to JSON?

Yes — see our XML to JSON converter for the reverse direction.

Is the converter free?

Yes — free, no signup, runs in your browser.

People also search for