---
title: Convert XML to JSON API
slug: convert-xml-to-json
url: https://apyhub.com/apyhub/service/convert-xml-to-json
provider: ApyHub
categories: [Developer Tools, File Conversion]
tags: [xml-conversion, json-conversion, xml-parser, file-conversion, developer-tools]
auth: api_key
---

# Convert XML to JSON API

Convert raw XML, XML files, or XML URLs into JSON. Get inline data, a downloadable JSON file, or a pre-signed S3 URL for automation and ETL.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `/convert/xml-raw/json-raw` | What it does Converts a raw XML request body into JSON. The endpoint accepts the XML as a string in… | 50 |
| POST | `/convert/xml-raw/json-url` | What it does Converts a raw XML request body into JSON and returns a pre-signed S3 URL where the co… | 50 |
| POST | `/convert/xml-url/json-file` | What it does Converts the XML file available at the provided URL into a downloadable JSON file. The… | 50 |
| POST | `/convert/xml-file/json-file` | What it does Converts an uploaded XML file into a downloadable JSON file. The request uploads a bin… | 50 |
| POST | `/convert/xml-file/json-url` | What it does Converts an uploaded XML file into JSON and returns a pre-signed S3 URL where the conv… | 50 |
| POST | `/convert/xml-raw/json-file` | What it does Converts a raw XML request body into a downloadable JSON file. The XML is sent in the… | 50 |
| POST | `/convert/xml-url/json-raw` | What it does Converts the XML file available at the supplied URL into JSON and returns the converte… | 50 |
| POST | `/convert/xml-url/json-url` | What it does Converts the XML file available at a public URL into JSON and returns a pre-signed S3… | 50 |
| POST | `/convert/xml-file/json-raw` | What it does Converts an uploaded XML file into JSON and returns the converted result inline in the… | 50 |

## About

## What it does
XML to JSON Converter turns XML documents into JSON in one step. Send raw XML, an XML file upload, or a public XML URL, and get the converted data back as inline JSON, a downloadable JSON file, or a pre-signed S3 URL depending on the endpoint you choose.

Use it when you need to move XML into a JSON-based workflow without writing parsing code. The service accepts raw XML in the request body, XML files in binary upload form, or a `url` pointing to a publicly accessible XML file. For file- and URL-based flows, you can also pass an optional `output` query value to name the generated file.

The response format stays simple: either an object containing JSON data, a binary JSON download, or an object with a `data` field that contains a pre-signed S3 URL valid for 5 minutes. That makes it easy to plug into import jobs, ETL pipelines, document processing systems, or automation that needs JSON artifacts instead of XML.

Choose XML to JSON Converter when you are normalizing supplier feeds, converting legacy exports, or exposing XML content to services that expect JSON.

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/apyhub/service/convert-xml-to-json
