Start a project

Tool 243 of 425 · Data formats

XML ↔ JSON Converter

Converts XML and JSON in both directions with control over attributes, arrays and value types.

XML ↔ JSON Converter

Your input

Result

Result

    01

    What it does

    Converts XML and JSON in both directions with control over attributes, arrays and value types.

    • Both directions
    • Attribute prefix (@ by default)
    • Always-array option for repeating elements
    • Numbers and booleans detected

    02

    Private by design

    Everything happens in your browser. Nothing you type, paste or upload is sent anywhere, and it keeps working offline once the page has loaded.

    03

    What you get

    Converted JSON or XML, with a Copy and a Download button on every result.

    • XML to JSON
    • JSON to XML
    • Data conversion

    Why it matters

    SOAP APIs, RSS feeds, sitemaps and old configs are XML, while modern code wants JSON.

    Forcing arrays avoids the classic bug where one child becomes an object and two become an array.

    How to use it

    1. Type or paste your input; the example shows the format.
    2. Press Convert. Results also update as you type.
    3. Read the summary line, then the table, notes or output below it.
    4. Copy or download what you need. Nothing leaves this page.

    FAQ

    How are attributes shown?

    As keys starting with the prefix, e.g. @id. Text alongside attributes goes in #text.

    Is it safe for untrusted XML?

    It uses the browser's parser, which doesn't fetch external entities.

    Is my input uploaded?

    No. The tool runs in your browser and nothing you type, paste or open is sent anywhere.

    Can I rely on the result?

    It follows the public specification or formula named on this page and says where it simplifies. Check anything critical against the official tool or documentation before you ship it.

    Work with me

    Want a site that gets these right?

    I build fast, accessible websites and web apps that pass these checks from day one. Tell me about your project and I'll reply personally with honest next steps.

    All developer tools · Back to leej.uk