Skip to content
POST AI agent ready /v1/csv/to-json

CSV to JSON API - Free Converter

Parses CSV text and returns a JSON array of objects. When headers are enabled (default), the first row is used as object keys. Handles quoted fields, escaped commas, and multiline values.

Parameters

stringrequired

The CSV content to convert.

boolean

Treat the first row as column headers.

Code examples

curl -X POST https://api.botoi.com/v1/csv/to-json \
  -H "Content-Type: application/json" \
  -d '{"csv":"name,email,plan\nAlice,alice@example.com,pro\nBob,bob@example.com,free","has_header":true}'

When to use this API

Import spreadsheet exports into your app

Let users upload CSV files exported from Google Sheets or Excel and convert them to JSON for database insertion.

Parse CSV log files for analysis

Convert server access logs or analytics exports from CSV to JSON for processing with JavaScript-based tools.

Frequently asked questions

What delimiter does this support?
The API parses comma-separated values by default. Tab-separated values (TSV) and semicolon-separated values are also detected automatically.
How are quoted fields handled?
Fields enclosed in double quotes are parsed correctly, including fields that contain commas, newlines, or escaped quotes ("") inside them.
What happens if headers is set to false?
Each row is returned as an array of values instead of an object with named keys.
Is there a row limit?
The API processes up to 10,000 rows per request. For larger datasets, split the CSV and make multiple calls.

Get your API key

Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.