# CSV to JSON Converter

> CSV to JSON Converter is a paid API for AI agents from toolbelt402.tpoborne.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Parses CSV text into structured JSON rows with auto-delimiter detection, quoted field handling, optional type coercion, and per-row error reporting

## Facts

- Endpoint: POST https://toolbelt402.tpoborne.workers.dev/csv/to-json
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/csv-to-json-converter-f41dff0e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yeiDb2fGsISDkqM2TWXdV

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability csv-to-json-converter-f41dff0e -d '<json body>'
```

Example prompt: Parse this CSV into JSON rows for me — it has headers in the first row and I want numbers coerced to actual numeric types: 'name,age,score\nAlice,30,95.5\nBob,25,88.0'

## When to prefer this

Choose this endpoint when you need to parse raw CSV text (including TSV or other delimited variants) into structured JSON rows in a single API call, especially when the delimiter is unknown or variable, when quoted fields containing delimiters are present, when type coercion of numbers/booleans is needed, or when you need to surface per-row parse errors for data quality validation. Prefer this over client-side parsing when operating in an agentic pipeline without a local CSV library.

## Known failure modes

- Malformed CSV with unclosed quotes may result in partial parse or error
- Empty input body returns error
- CSV with inconsistent column counts per row surfaces per-row errors
- Extremely large CSV payloads may timeout on the Workers runtime
- Ambiguous delimiter when multiple candidates score equally may pick wrong one

## How this service works

Parse CSV into JSON rows — auto-detects the delimiter, handles quoted fields and headers, optional type coercion. Returns columns, row count, and per-row parse errors.

## Output

Returns a JSON object containing: an array of column names, total row count, an array of parsed row objects (each field keyed by column header), and an array of per-row parse errors with row index and error detail. If type coercion is enabled, numeric and boolean fields are returned as native JSON types rather than strings.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "description": "CSV text (max 256 KB); delimiter auto-detected"
  },
  "options": {
   "type": "object",
   "properties": {
    "typed": {
     "type": "boolean",
     "description": "coerce numbers/booleans"
    },
    "headers": {
     "type": "boolean",
     "description": "first row is headers (default true)"
    },
    "delimiter": {
     "type": "string"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/csv-to-json-converter-f41dff0e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from toolbelt402.tpoborne.workers.dev](https://www.zero.xyz/host/toolbelt402.tpoborne.workers.dev/llms.txt)
