Tools API Blog
Sign in Create account

CSV to JSON

CSV to JSON is an API that converts a CSV into an array of JSON objects, using the first row as field names. It genuinely understands quoting: a field like "Smith, Anna" won't split into two columns.

How it works

You send the CSV (raw or inside a JSON body) and get the array back. With header:false, each row comes out as an array of values instead of a named object.

All you need

  • Your API key. Create it in your dashboard with "+ Create key".
  • In your automation platform, an "HTTP Request" step (n8n, Make, Zapier, Pipedream…).

How to use it in n8n

  • Method: POST · URL: https://api.cofferdock.com/csv-to-json
  • Send Headers: x-api-key = your key, Content-Type = application/json
  • Send Body (JSON): { "csv": "name,age\nAna,30\nLuis,25" }

Options

OptionDefaultWhat it does
csv-Required. The CSV text.
headertrueFirst row as field names. With false, rows as arrays.
delimiter,A single character, e.g. ; or tab.

What you get back

data, the resulting array (every value comes back as text: converting numbers/dates is on you). With output=raw, the array directly as the response body, no wrapper.