---
title: Convert CSV to JSON API
slug: csv-to-json
url: https://apyhub.com/apyhub/service/csv-to-json
provider: ApyHub
categories: [Developer Tools, File Conversion]
tags: [csv, json-conversion, file-conversion, data-transformation, etl]
auth: api_key
---

# Convert CSV to JSON API

Convert raw CSV, uploaded files, or CSV URLs into JSON arrays, downloadable files, or pre-signed S3 links for import and ETL workflows.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `/convert/csv-url/json-raw` | What it does Converts a CSV file accessible at a public URL into a JSON array. The endpoint fetches… | 50 |
| POST | `/convert/csv-url/json-url` | What it does Converts a CSV file from a public URL into JSON and returns a pre-signed S3 URL where… | 50 |
| POST | `/convert/csv-file/json-file` | What it does Converts an uploaded CSV file into a downloadable JSON file. The request sends a binar… | 50 |
| POST | `/convert/csv-raw/json-url` | What it does Converts raw CSV content in the request body into a JSON file and returns a pre-signed… | 50 |
| POST | `/convert/csv-url/json-file` | What it does Converts the CSV file located at the provided URL into a downloadable JSON file. The r… | 50 |
| POST | `/convert/csv-file/json-raw` | What it does Converts an uploaded CSV file into an inline JSON array. The request sends a binary fi… | 50 |
| POST | `/convert/csv-file/json-url` | What it does Converts an uploaded CSV file into a JSON file and returns a pre-signed S3 URL for the… | 50 |
| POST | `/convert/csv-raw/json-raw` | What it does Converts a raw CSV string in the request body into a JSON array. The response is an ar… | 50 |
| POST | `/convert/csv-raw/json-file` | What it does Converts raw CSV content sent in the request body into a downloadable JSON file. The r… | 50 |

## About

## What it does
CSV to JSON Converter turns CSV data into JSON, whether you send a raw CSV body, upload a CSV file, or point it at a publicly accessible CSV URL. You can receive the converted data inline as a JSON array, as a downloadable JSON file, or as a pre-signed S3 URL.

Use the inline JSON array endpoints when you want to parse tabular data directly in your app. Send raw CSV content, a CSV file, or a CSV URL, and get back an array of objects. Use the file and URL output variants when you need a downloadable JSON artifact or a temporary hosted link for downstream processing.

The inputs are simple: a `body` containing raw CSV text, a binary `file`, or a `url` to a CSV resource. For URL-based conversion, the source must be publicly accessible. For file uploads, the endpoint accepts CSV files and, in the raw-file variant, common CSV MIME types.

CSV to JSON Converter is a good fit for import pipelines, data normalization jobs, ETL steps, and tools that need to ingest spreadsheet exports into JSON-based systems.

## Usage

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