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

# Convert JSON to YAML API

Convert JSON from a body, file, or URL into YAML. Get plain text, a downloadable .yaml file, or a pre-signed S3 URL.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `convert/json-url/yaml-url` | What it does Converts JSON fetched from a publicly accessible URL into a YAML file and returns a pr… | 50 |
| POST | `convert/json-raw/yaml-raw` | What it does Converts a non-empty JSON object sent as the raw request body into YAML text. The resp… | 50 |
| POST | `convert/json-raw/yaml-file` | What it does Converts a raw JSON request body into a downloadable YAML file and returns the file as… | 50 |
| POST | `convert/json-raw/yaml-url` | What it does Converts the raw JSON request body into a YAML file and returns a pre-signed S3 URL fo… | 50 |
| POST | `convert/json-url/yaml-raw` | What it does Converts a JSON document fetched from a public URL into YAML and returns the YAML as r… | 50 |
| POST | `convert/json-url/yaml-file` | What it does Converts JSON retrieved from a public URL into a downloadable YAML file. You submit th… | 50 |
| POST | `convert/json-file/yaml-raw` | What it does Converts an uploaded JSON file into YAML and returns the converted YAML as raw text. T… | 50 |
| POST | `convert/json-file/yaml-file` | What it does Converts an uploaded JSON file into a downloadable YAML file. The request uploads a JS… | 50 |
| POST | `convert/json-file/yaml-url` | What it does Converts an uploaded JSON file into YAML and returns a pre-signed S3 URL for the conve… | 50 |

## About

## What it does
JSON to YAML Converter turns JSON into YAML from a raw request body, an uploaded JSON file, or a publicly accessible JSON URL. You can get the converted result as plain text, a downloadable `.yaml` file, or a pre-signed S3 URL depending on the endpoint you use.

Send a non-empty JSON object in the request body for raw conversion, or pass a `file` upload with `application/json` mimetype for file-based conversion. For URL-based conversion, provide a `url` that points to a JSON resource. The URL endpoints accept JSON served as `application/json`, `text/plain`, `application/octet-stream`, or `binary/octet-stream`, and also support URLs or paths that include `.json`.

Use JSON to YAML Converter when you need YAML for config files, deployment manifests, or handoff to systems that expect YAML instead of JSON. The outputs stay focused on the converted data, so you can plug them into downstream tooling without extra parsing steps.

## Usage

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