Introduction
The CSV Tools Online API is a single, predictable REST surface for everything you can do inside the app — parsing CSVs, converting between formats, processing PDFs, running OCR, and extracting structured signals from messy text. It is designed to be readable on the first try and stable on the hundredth.
p50 < 200 ms for sync endpoints. Async jobs for anything heavy.
SHA-256 hashed keys, TLS 1.3, scoped permissions, full audit log.
Versioned URLs, idempotency keys, consistent error envelope.
https://api.csvtoolsonline.com/v1application/jsonQuickstart
From zero to your first successful response in under a minute.
- 1Create an API keySign in and create a key on the API dashboard. The full key is shown once.
- 2Add the Authorization headerSend
Authorization: Bearer ctok_live_…on every request. - 3Call an endpointAll endpoints live under the versioned base URL.
curl -X POST https://api.csvtoolsonline.com/v1/csv/to-json \
-H "Authorization: Bearer ctok_live_..." \
-H "Content-Type: application/json" \
-d '{"csv":"name,age\nAda,36"}'Authentication
Every request must include a Bearer token issued from your developer dashboard. Keys are hashed at rest with SHA-256, never logged, and can be scoped with permissions and an expiry date.
Authorization: Bearer ctok_live_xxxxxxxxxxxxxxxxxxxx
| Header | Value | Description |
|---|---|---|
| Authorization | Bearer ctok_live_… | Required. Your API key. |
| Content-Type | application/json | multipart/form-data | Required for POST/PUT. |
| Idempotency-Key | uuid | Optional. Safely retry POSTs without duplicates. |
| X-Request-ID | uuid | Optional. Echoed back in responses + logs for tracing. |
Conventions
All endpoints are prefixed with /v1. Breaking changes ship under /v2 with a 6-month deprecation window.
Returned in X-RateLimit-Limit, X-RateLimit-Remaining, and Retry-After headers.
Send Idempotency-Key on POSTs; identical replays return the original response for 24 hours.
Cursor-based via ?cursor=…&limit=…; next cursor returned as meta.next.
Async jobs notify your endpoint with an HMAC-signed X-Signature header.
Timestamps ISO-8601 UTC. File limits: 2 MB Free, 10 MB Starter, 50 MB Pro, 200 MB Business.
Errors & limits
Every error returns the same JSON envelope: a human error, a machine code, an optional offending field, and an actionable hint.
{
"error": "Invalid permission(s): foo.",
"code": "validation",
"field": "permissions",
"hint": "Allowed values: read, write, delete, webhooks, billing, admin."
}| Status | Label | Description |
|---|---|---|
400 | Bad Request | Validation failed — inspect `error.field` and `error.hint`. |
401 | Unauthorized | Missing or invalid `Authorization` header. |
402 | Payment Required | Monthly quota exceeded. Upgrade or wait for reset. |
403 | Forbidden | Key lacks the required scope for this endpoint. |
404 | Not Found | Resource not found or key revoked. |
413 | Payload Too Large | File or body exceeds your plan limit. |
429 | Too Many Requests | Rate limit hit. Retry after `Retry-After` seconds. |
500 | Server Error | Something broke on our side. Retried automatically. |
503 | Service Unavailable | Maintenance or upstream degraded. |
API reference
35 of 35 endpoints. Click any entry in the sidebar to jump directly to its reference.
CSV & spreadsheets
CSV → JSON
Convert CSV text into a JSON array. Auto-detects delimiter when not provided.
Parameters
| Name | In | Type |
|---|---|---|
Authorization requiredYour API key. | header | Bearer <key> |
csv requiredRaw CSV text. | body | string |
delimiter optionalDelimiter. Default `,`. | body | string |
header optionalFirst row is header. Default `true`. | body | boolean |
Errors
invalid_csvpayload_too_largeRequest
curl -X POST "https://api.csvtoolsonline.com/v1/csv/to-json" \
-H "Authorization: Bearer ctok_live_..." \
-H "Content-Type: application/json" \
-d '{"csv":"...","delimiter":"...","header":true}'Response
{
"rows": 1,
"data": [{"name":"Ada","age":"36"}],
"duration_ms": 12
}JSON → CSV
Convert a JSON array of flat objects into CSV text.
Parameters
| Name | In | Type |
|---|---|---|
Authorization requiredYour API key. | header | Bearer <key> |
data requiredArray of flat objects. | body | object[] |
columns optionalExplicit column order. | body | string[] |
Request
curl -X POST "https://api.csvtoolsonline.com/v1/json/to-csv" \
-H "Authorization: Bearer ctok_live_..." \
-H "Content-Type: application/json" \
-d '{"data":[],"columns":[]}'Response
{ "csv": "a,b\n1,2\n", "rows": 1 }CSV → Excel (.xlsx)
Convert CSV to a styled .xlsx workbook with auto-typed columns.
Parameters
| Name | In | Type |
|---|---|---|
Authorization requiredYour API key. | header | Bearer <key> |
csv requiredRaw CSV text. | body | string |
sheet optionalSheet name. Default `Sheet1`. | body | string |
Request
curl -X POST "https://api.csvtoolsonline.com/v1/csv/to-excel" \
-H "Authorization: Bearer ctok_live_..." \
-H "Content-Type: application/json" \
-d '{"csv":"...","sheet":"..."}'Response
{ "url": "https://cdn.../export.xlsx", "size_kb": 8 }CSV → XML
Convert CSV rows to an XML document with configurable element names.
Parameters
| Name | In | Type |
|---|---|---|
Authorization requiredYour API key. | header | Bearer <key> |
csv requiredRaw CSV text. | body | string |
root optionalRoot element. Default `rows`. | body | string |
Request
curl -X POST "https://api.csvtoolsonline.com/v1/csv/to-xml" \
-H "Authorization: Bearer ctok_live_..." \
-H "Content-Type: application/json" \
-d '{"csv":"...","root":"..."}'Response
{ "xml": "<rows><row><id>1</id></row></rows>" }CSV → Markdown
Render CSV as a GitHub-flavoured Markdown table.
Parameters
| Name | In | Type |
|---|---|---|
Authorization requiredYour API key. | header | Bearer <key> |
csv requiredRaw CSV text. | body | string |
Request
curl -X POST "https://api.csvtoolsonline.com/v1/csv/to-markdown" \
-H "Authorization: Bearer ctok_live_..." \
-H "Content-Type: application/json" \
-d '{"csv":"..."}'Response
{ "markdown": "| a | b |\n|---|---|\n| 1 | 2 |" }Clean CSV
Trim whitespace, drop duplicates and empty rows, normalise newlines.
Parameters
| Name | In | Type |
|---|---|---|
Authorization requiredYour API key. | header | Bearer <key> |
csv requiredRaw CSV text. | body | string |
ops optional`trim` `dedupe` `drop_empty` `lower_headers`. | body | string[] |
Request
curl -X POST "https://api.csvtoolsonline.com/v1/csv/clean" \
-H "Authorization: Bearer ctok_live_..." \
-H "Content-Type: application/json" \
-d '{"csv":"...","ops":[]}'Response
{ "csv": "...", "removed_rows": 4 }Merge CSVs
Merge multiple CSVs by stacking rows or joining on a key column.
Parameters
| Name | In | Type |
|---|---|---|
Authorization requiredYour API key. | header | Bearer <key> |
files requiredTwo or more CSV payloads. | body | string[] |
mode optional`stack` (default) or `join`. | body | string |
on optionalJoin column name when `mode=join`. | body | string |
Request
curl -X POST "https://api.csvtoolsonline.com/v1/csv/merge" \
-H "Authorization: Bearer ctok_live_..." \
-H "Content-Type: application/json" \
-d '{"files":[],"mode":"...","on":"..."}'Response
{ "csv": "...", "rows": 240 }JSON & data formats
JSON → YAML
Convert any JSON value into idiomatic YAML.
Parameters
| Name | In | Type |
|---|---|---|
Authorization requiredYour API key. | header | Bearer <key> |
data requiredJSON value. | body | any |
Request
curl -X POST "https://api.csvtoolsonline.com/v1/json/to-yaml" \
-H "Authorization: Bearer ctok_live_..." \
-H "Content-Type: application/json" \
-d '{"data":"..."}'Response
{ "yaml": "a: 1\nb: 2\n" }YAML → JSON
Parse YAML text into JSON.
Parameters
| Name | In | Type |
|---|---|---|
Authorization requiredYour API key. | header | Bearer <key> |
yaml requiredRaw YAML text. | body | string |
Request
curl -X POST "https://api.csvtoolsonline.com/v1/yaml/to-json" \
-H "Authorization: Bearer ctok_live_..." \
-H "Content-Type: application/json" \
-d '{"yaml":"..."}'Response
{ "data": { "a": 1 } }JSON → SQL
Generate INSERT statements for the chosen SQL dialect.
Parameters
| Name | In | Type |
|---|---|---|
Authorization requiredYour API key. | header | Bearer <key> |
data requiredArray of flat objects. | body | object[] |
table requiredTarget table name. | body | string |
dialect optional`postgres` | `mysql` | `sqlite`. | body | string |
Request
curl -X POST "https://api.csvtoolsonline.com/v1/json/to-sql" \
-H "Authorization: Bearer ctok_live_..." \
-H "Content-Type: application/json" \
-d '{"data":[],"table":"...","dialect":"..."}'Response
{ "sql": "INSERT INTO users (a,b) VALUES (1,2);" }JSON minify / beautify
Compact or pretty-print JSON with configurable indent.
Parameters
| Name | In | Type |
|---|---|---|
Authorization requiredYour API key. | header | Bearer <key> |
data requiredJSON value. | body | any |
mode optional`minify` (default) or `beautify`. | body | string |
Request
curl -X POST "https://api.csvtoolsonline.com/v1/json/minify" \
-H "Authorization: Bearer ctok_live_..." \
-H "Content-Type: application/json" \
-d '{"data":"...","mode":"..."}'Response
{ "out": "{\"a\":1}" }XML → JSON
Convert XML to a JSON tree with attribute preservation.
Parameters
| Name | In | Type |
|---|---|---|
Authorization requiredYour API key. | header | Bearer <key> |
xml requiredRaw XML text. | body | string |
Request
curl -X POST "https://api.csvtoolsonline.com/v1/xml/to-json" \
-H "Authorization: Bearer ctok_live_..." \
-H "Content-Type: application/json" \
-d '{"xml":"..."}'Response
{ "data": { "root": {} } }CSV → Parquet
Convert CSV to columnar Apache Parquet with auto schema inference.
Parameters
| Name | In | Type |
|---|---|---|
Authorization requiredYour API key. | header | Bearer <key> |
csv requiredRaw CSV text. | body | string |
Request
curl -X POST "https://api.csvtoolsonline.com/v1/csv/to-parquet" \
-H "Authorization: Bearer ctok_live_..." \
-H "Content-Type: application/json" \
-d '{"csv":"..."}'Response
{ "url": "https://cdn.../data.parquet", "rows": 1000 }PDF processing
Compress PDF
Reduce PDF file size while preserving readability.
Parameters
| Name | In | Type |
|---|---|---|
Authorization requiredYour API key. | header | Bearer <key> |
file requiredPDF file (multipart). | body | binary |
quality optional`low` | `medium` | `high`. | body | string |
Request
curl -X POST "https://api.csvtoolsonline.com/v1/pdf/compress" \
-H "Authorization: Bearer ctok_live_..." \
-H "Content-Type: application/json" \
-d '{"file":"<base64-or-file>","quality":"..."}'Response
{ "url": "https://cdn.../compressed.pdf", "original_kb": 1820, "compressed_kb": 612 }Merge PDFs
Combine multiple PDFs into a single document in order.
Parameters
| Name | In | Type |
|---|---|---|
Authorization requiredYour API key. | header | Bearer <key> |
files requiredTwo or more PDFs. | body | binary[] |
Request
curl -X POST "https://api.csvtoolsonline.com/v1/pdf/merge" \
-H "Authorization: Bearer ctok_live_..." \
-H "Content-Type: application/json" \
-d '{"files":[]}'Response
{ "url": "https://cdn.../merged.pdf", "pages": 24 }Split PDF
Split a PDF into multiple files by page ranges.
Parameters
| Name | In | Type |
|---|---|---|
Authorization requiredYour API key. | header | Bearer <key> |
file requiredSource PDF. | body | binary |
ranges requirede.g. `1-3,4-6,7`. | body | string |
Request
curl -X POST "https://api.csvtoolsonline.com/v1/pdf/split" \
-H "Authorization: Bearer ctok_live_..." \
-H "Content-Type: application/json" \
-d '{"file":"<base64-or-file>","ranges":"..."}'Response
{ "files": ["https://cdn.../part-1.pdf"] }PDF → Text
Extract embedded text from a PDF (no OCR).
Parameters
| Name | In | Type |
|---|---|---|
Authorization requiredYour API key. | header | Bearer <key> |
file requiredSource PDF. | body | binary |
Request
curl -X POST "https://api.csvtoolsonline.com/v1/pdf/to-text" \
-H "Authorization: Bearer ctok_live_..." \
-H "Content-Type: application/json" \
-d '{"file":"<base64-or-file>"}'Response
{ "text": "Lorem ipsum...", "pages": 4 }PDF OCR
Run OCR on scanned PDFs and images (Tesseract + LSTM).
Parameters
| Name | In | Type |
|---|---|---|
Authorization requiredYour API key. | header | Bearer <key> |
file requiredSource PDF or image. | body | binary |
language optionalBCP-47 code. Default `en`. | body | string |
Request
curl -X POST "https://api.csvtoolsonline.com/v1/pdf/ocr" \
-H "Authorization: Bearer ctok_live_..." \
-H "Content-Type: application/json" \
-d '{"file":"<base64-or-file>","language":"..."}'Response
{ "text": "...", "pages": 3, "confidence": 0.94 }PDF → Image
Render PDF pages to PNG or JPG at chosen DPI.
Parameters
| Name | In | Type |
|---|---|---|
Authorization requiredYour API key. | header | Bearer <key> |
file requiredSource PDF. | body | binary |
dpi optionalRender DPI. Default `150`. | body | number |
format optional`png` | `jpg`. | body | string |
Request
curl -X POST "https://api.csvtoolsonline.com/v1/pdf/to-image" \
-H "Authorization: Bearer ctok_live_..." \
-H "Content-Type: application/json" \
-d '{"file":"<base64-or-file>","dpi":0,"format":"..."}'Response
{ "images": ["https://cdn.../page-1.png"] }PDF → Word
Convert PDF to an editable .docx preserving layout.
Parameters
| Name | In | Type |
|---|---|---|
Authorization requiredYour API key. | header | Bearer <key> |
file requiredSource PDF. | body | binary |
Request
curl -X POST "https://api.csvtoolsonline.com/v1/pdf/to-word" \
-H "Authorization: Bearer ctok_live_..." \
-H "Content-Type: application/json" \
-d '{"file":"<base64-or-file>"}'Response
{ "url": "https://cdn.../output.docx" }Protect PDF
Add owner / user password and permission flags.
Parameters
| Name | In | Type |
|---|---|---|
Authorization requiredYour API key. | header | Bearer <key> |
file requiredSource PDF. | body | binary |
password requiredPassword to apply. | body | string |
Request
curl -X POST "https://api.csvtoolsonline.com/v1/pdf/protect" \
-H "Authorization: Bearer ctok_live_..." \
-H "Content-Type: application/json" \
-d '{"file":"<base64-or-file>","password":"..."}'Response
{ "url": "https://cdn.../protected.pdf" }Unlock PDF
Remove password from a PDF you own.
Parameters
| Name | In | Type |
|---|---|---|
Authorization requiredYour API key. | header | Bearer <key> |
file requiredSource PDF. | body | binary |
password requiredExisting password. | body | string |
Request
curl -X POST "https://api.csvtoolsonline.com/v1/pdf/unlock" \
-H "Authorization: Bearer ctok_live_..." \
-H "Content-Type: application/json" \
-d '{"file":"<base64-or-file>","password":"..."}'Response
{ "url": "https://cdn.../unlocked.pdf" }Watermark PDF
Apply text or image watermark with rotation and opacity.
Parameters
| Name | In | Type |
|---|---|---|
Authorization requiredYour API key. | header | Bearer <key> |
file requiredSource PDF. | body | binary |
text optionalWatermark text. | body | string |
opacity optional0–1. Default `0.3`. | body | number |
Request
curl -X POST "https://api.csvtoolsonline.com/v1/pdf/watermark" \
-H "Authorization: Bearer ctok_live_..." \
-H "Content-Type: application/json" \
-d '{"file":"<base64-or-file>","text":"...","opacity":0}'Response
{ "url": "https://cdn.../watermarked.pdf" }Extraction
Extract emails
Pull validated emails from text or any uploaded document.
Parameters
| Name | In | Type |
|---|---|---|
Authorization requiredYour API key. | header | Bearer <key> |
text optionalPlain text. | body | string |
file optionalOr document upload. | body | binary |
deduplicate optionalDefault `true`. | body | boolean |
Request
curl -X POST "https://api.csvtoolsonline.com/v1/extract/emails" \
-H "Authorization: Bearer ctok_live_..." \
-H "Content-Type: application/json" \
-d '{"text":"...","file":"<base64-or-file>","deduplicate":true}'Response
{ "emails": ["hi@x.com","hello@y.io"], "count": 2 }Extract phones
Extract & normalize phones to E.164 via libphonenumber.
Parameters
| Name | In | Type |
|---|---|---|
Authorization requiredYour API key. | header | Bearer <key> |
text requiredPlain text. | body | string |
defaultCountry optionalISO code for ambiguous numbers. | body | string |
Request
curl -X POST "https://api.csvtoolsonline.com/v1/extract/phones" \
-H "Authorization: Bearer ctok_live_..." \
-H "Content-Type: application/json" \
-d '{"text":"...","defaultCountry":"..."}'Response
{ "phones": [{ "e164":"+14155550123","region":"US","valid":true }] }Extract URLs
Extract URLs and resolve their hostnames.
Parameters
| Name | In | Type |
|---|---|---|
Authorization requiredYour API key. | header | Bearer <key> |
text requiredPlain text. | body | string |
Request
curl -X POST "https://api.csvtoolsonline.com/v1/extract/urls" \
-H "Authorization: Bearer ctok_live_..." \
-H "Content-Type: application/json" \
-d '{"text":"..."}'Response
{ "urls": ["https://example.com"], "count": 1 }Regex match
Run a sandboxed regex against input text and return matches.
Parameters
| Name | In | Type |
|---|---|---|
Authorization requiredYour API key. | header | Bearer <key> |
text requiredInput text. | body | string |
pattern requiredJS-compatible regex. | body | string |
flags optionale.g. `gi`. | body | string |
Request
curl -X POST "https://api.csvtoolsonline.com/v1/extract/regex" \
-H "Authorization: Bearer ctok_live_..." \
-H "Content-Type: application/json" \
-d '{"text":"...","pattern":"...","flags":"..."}'Response
{ "matches": ["42","7"], "count": 2 }Generators & utilities
Generate UUIDs
Generate v4 UUIDs in bulk.
Parameters
| Name | In | Type |
|---|---|---|
Authorization requiredYour API key. | header | Bearer <key> |
count optional1–1000. Default `1`. | body | number |
Request
curl -X POST "https://api.csvtoolsonline.com/v1/generate/uuid" \
-H "Authorization: Bearer ctok_live_..." \
-H "Content-Type: application/json" \
-d '{"count":0}'Response
{ "uuids": ["b3f1...","a72c..."] }Generate ULIDs
Generate lexicographically sortable ULIDs.
Parameters
| Name | In | Type |
|---|---|---|
Authorization requiredYour API key. | header | Bearer <key> |
count optional1–1000. | body | number |
Request
curl -X POST "https://api.csvtoolsonline.com/v1/generate/ulid" \
-H "Authorization: Bearer ctok_live_..." \
-H "Content-Type: application/json" \
-d '{"count":0}'Response
{ "ulids": ["01H..."] }Generate passwords
Generate strong passwords with entropy reporting.
Parameters
| Name | In | Type |
|---|---|---|
Authorization requiredYour API key. | header | Bearer <key> |
length optionalDefault `20`. | body | number |
count optionalDefault `1`. | body | number |
symbols optionalDefault `true`. | body | boolean |
Request
curl -X POST "https://api.csvtoolsonline.com/v1/generate/password" \
-H "Authorization: Bearer ctok_live_..." \
-H "Content-Type: application/json" \
-d '{"length":0,"count":0,"symbols":true}'Response
{ "passwords": ["q9!Lm…"], "entropy_bits": 132 }Mock CSV data
Generate realistic mock CSV rows from a schema (faker-backed).
Parameters
| Name | In | Type |
|---|---|---|
Authorization requiredYour API key. | header | Bearer <key> |
rows requiredRow count. | body | number |
schema required`[{name,type}]` definitions. | body | object[] |
Request
curl -X POST "https://api.csvtoolsonline.com/v1/generate/mock-csv" \
-H "Authorization: Bearer ctok_live_..." \
-H "Content-Type: application/json" \
-d '{"rows":0,"schema":[]}'Response
{ "csv": "name,email\n..." }Timestamp convert
Convert between Unix epoch and ISO-8601 in any timezone.
Parameters
| Name | In | Type |
|---|---|---|
Authorization requiredYour API key. | header | Bearer <key> |
value requiredEpoch seconds or ISO date. | body | number | string |
tz optionalIANA timezone. Default UTC. | body | string |
Request
curl -X POST "https://api.csvtoolsonline.com/v1/timestamp/convert" \
-H "Authorization: Bearer ctok_live_..." \
-H "Content-Type: application/json" \
-d '{"value":0,"tz":"..."}'Response
{ "iso": "2026-06-25T12:00:00Z", "epoch": 1782820800 }Sign JWT
Sign a JWT with HS256 or RS256 and return the compact token.
Parameters
| Name | In | Type |
|---|---|---|
Authorization requiredYour API key. | header | Bearer <key> |
payload requiredJWT claims. | body | object |
secret requiredHMAC secret or private key. | body | string |
alg optional`HS256` (default) | `RS256`. | body | string |
Request
curl -X POST "https://api.csvtoolsonline.com/v1/jwt/sign" \
-H "Authorization: Bearer ctok_live_..." \
-H "Content-Type: application/json" \
-d '{"payload":{},"secret":"...","alg":"..."}'Response
{ "token": "eyJhbGciOi..." }Account
Usage & quota
Read current billing period usage, quota and rate-limit state.
Parameters
| Name | In | Type |
|---|---|---|
Authorization requiredYour API key. | header | Bearer <key> |
Request
curl -X GET "https://api.csvtoolsonline.com/v1/me/usage" \ -H "Authorization: Bearer ctok_live_..." \ -H "Content-Type: application/json"
Response
{
"tier": "pro",
"quota_used": 12450,
"quota_monthly": 100000,
"rate_limit_per_min": 300,
"period_end": "2026-07-25T00:00:00Z"
}List keys
List active API keys on the account (prefixes only — full key never returned).
Parameters
| Name | In | Type |
|---|---|---|
Authorization requiredYour API key. | header | Bearer <key> |
Request
curl -X GET "https://api.csvtoolsonline.com/v1/me/keys" \ -H "Authorization: Bearer ctok_live_..." \ -H "Content-Type: application/json"
Response
{ "keys": [{ "id":"k_…","prefix":"ctok_live_xxxx","permissions":["read","write"] }] }SDKs & snippets
The API is plain HTTP + JSON — call it from any language. Drop-in starters for the most common stacks:
const res = await fetch("https://api.csvtoolsonline.com/v1/csv/to-json", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.CTO_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ csv: "a,b\n1,2" }),
});
const data = await res.json();import os, requests
r = requests.post(
"https://api.csvtoolsonline.com/v1/csv/to-json",
headers={"Authorization": f"Bearer {os.environ['CTO_API_KEY']}"},
json={"csv": "a,b\n1,2"},
)
print(r.json())$ch = curl_init("https://api.csvtoolsonline.com/v1/csv/to-json");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer $apiKey",
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode(["csv" => "a,b\n1,2"]),
CURLOPT_RETURNTRANSFER => true,
]);
$response = curl_exec($ch);Ready to start building?
Create a free API key in 30 seconds. 100 requests per month, no card required.
