DataFmt

JSON to XML

Emit XML from JSON for integration with enterprise systems and legacy services.

Drag & drop a file here, or click to upload
Options:

About this tool

Plenty of enterprise stacks — SOAP, financial reconciliation, government data exchange — still rely on XML. When new services are written in JSON, connecting to those systems requires a JSON → XML bridge.

Built on fast-xml-parser, our converter offers a configurable attribute prefix (default `@_`), optional pretty printing and custom indentation — enough to cover most integration scenarios.

How to use

  1. Paste JSON into the input.
  2. Set an attribute prefix: JSON keys starting with this prefix become XML attributes.
  3. Choose indent width and whether to pretty-print.
  4. Click "Convert".

Use cases

Notes

Frequently Asked Questions

Is an XML declaration emitted?
Yes, `<?xml version="1.0" encoding="UTF-8"?>` is prepended automatically.
How do I make a field an attribute?
Prefix its key with the configured attribute prefix (default `@_`). For example `{"@_id": 1}` becomes `id="1"`.
How are arrays rendered?
Array elements are repeated as siblings with the same tag name.