Jsontify

Ad-free, fast, private JSON viewer & editor

Paste JSON, drop a file, or Open

Explorer

Tree explorer will appear here once JSON is loaded

Inspector

Select a node to inspect it

Paste or open a file to begin
🔒 Processed in your browser - nothing is uploaded to our serversPrivacy

JSON to XML Converter

Paste JSON and export it as XML. The document root becomes a <root> element, each object key becomes a child element named after that key, and each array element becomes a sibling <item index="0">, <item index="1"> and so on - a common, predictable convention for JSON-to-XML that doesn't require a schema to interpret.

JSON keys are not always valid XML element names - a key with a space, a symbol, or a leading digit gets sanitized (invalid characters become an underscore) while the original key is preserved in a name attribute, so no information is lost even when the element name itself had to change.

Text content is XML-escaped automatically (<, >, and & are converted to their entity equivalents), so values containing markup-like characters convert safely without producing invalid XML.

This mirrors the convention used by most JSON-to-XML tools and libraries, rather than inventing a custom schema - the output is plain, dependency-free XML with a standard declaration header, so it can be fed straight into an XML parser, an XSLT pipeline, or any tool that expects well-formed markup without first needing a schema definition to make sense of it.

The whole document converts in one pass, entirely client-side, so pasting a large nested config or API response and downloading the XML equivalent happens instantly, without a round trip to any server.

Frequently asked questions

How are JSON arrays represented in the XML?
Each array element becomes a sibling <item index="N"> element inside the array's wrapping element.
What happens to a JSON key that is not a valid XML element name?
Invalid characters are replaced with an underscore, and the original key is kept in a name attribute so nothing is lost.
Is special-character text escaped?
Yes - <, >, and & in string values are converted to their XML entity equivalents automatically.
Does this run on a server?
No. XML generation happens entirely in your browser - nothing is uploaded to our servers.