Dokaz API › Docs › CSV ⇄ JSON ⇄ Excel

CSV to JSON API (RFC 4180)

Splitting on commas works until the first address field. This endpoint parses CSV the way RFC 4180 defines it: quoted fields may contain the delimiter, doubled quotes and line breaks; CRLF and LF endings and the byte-order mark Excel writes are handled.

Malformed input is refused with the line number rather than guessed at, and ragged rows are a 400 - nothing is silently padded or shifted between columns.

Request

curl -X POST https://api.dokaz.net/v1/convert/csv-to-json \
  -H "content-type: application/json" \
  -d '{"csv":"name,city\n\"Hopper, Grace\",Arlington\nAda,London"}'

curl -X POST "https://api.dokaz.net/v1/convert/csv-to-json?delimiter=%3B" \
  -H "content-type: text/csv" --data-binary @people.csv

A JSON array of objects keyed by the header row (header=false for arrays). Every value is a string. x-csv-rows gives the row count.

Try it live — this runs against the free tier from your browser.

Pricing

100 calls a day are free with no key. Need more? Starter is $9/month for 10,000 calls across every product, key issued instantly.

Questions

How big a file can I send?

2 MB per request. Larger bodies are refused with a 413 before they are read in full.

Are numbers converted?

No: every value comes back as the exact string in the file, so ZIP codes and IDs keep their leading zeros. Convert the columns you need on your side.

Related