Skip to content
Utilerio
All endpoints

CSV to JSON

POST/api/v1/tools/csv-to-json

Convert a CSV file or pasted rows into a JSON array.

Authentication

Requires an API key in the X-API-Key header.

Try it

POST/api/v1/tools/csv-to-json

Parameters

csvstringrequired

CSV text to convert.

delimiterstringoptional

Field delimiter. Default auto-detect.

,;\tauto
headerbooleanoptional

First row is a header. Default true.

dynamicTypingbooleanoptional

Parse numbers and booleans. Default true.

skipEmptyLinesbooleanoptional

Ignore blank lines. Default true.

Request body

{
  "csv": "a,b\n1,2"
}

Response codes

  • 200Success.
  • 400Invalid request — check your body or parameters.
  • 401Missing or invalid API key.
  • 403The API key is not scoped to this endpoint.
  • 429Rate limit exceeded — retry after a short wait.

Language

cURL

Request

curl -X POST https://utilerio.com/api/v1/tools/csv-to-json \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"csv":"a,b\n1,2"}'

Response

{ "rows": [{ "a": 1, "b": 2 }], "rowCount": 1 }