# Format Convert (CSV/TSV/JSON/Markdown)

> Format Convert (CSV/TSV/JSON/Markdown) is a paid API for AI agents from 402.com.tr, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Converts between CSV, TSV, JSON, and Markdown/HTML formats with RFC 4180-compliant parsing and optional type inference for numbers and booleans.

## Facts

- Endpoint: GET https://402.com.tr/api/x402/file-convert
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/format-convert-csv-tsv-json-markdown-1033fae2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FVWA84irrEUoc-iQdZX0E

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 format-convert-csv-tsv-json-markdown-1033fae2
```

Example prompt: Convert this CSV text to JSON with proper number types — 'name,age,score\nAlice,30,98.5\nBob,25,87.0' — source format is CSV and target is JSON.

## When to prefer this

Choose this endpoint when you need fast, local (no LLM, no upstream) format conversion between CSV, TSV, JSON, and Markdown/HTML with RFC 4180-compliant parsing that handles quoted fields, embedded commas, embedded newlines, and doubled quotes correctly. It is ideal when spreadsheet exports must survive conversion without silent data corruption, and when you want numbers and booleans to be real typed values rather than strings. Prefer it over generic text-transformation services when tabular data fidelity and spec-compliant CSV parsing are required.

## Known failure modes

- Missing required query params (text, from, to) returns an error
- Unsupported format combination (e.g. TSV to Markdown) may return an error or unsupported response
- Malformed input that cannot be parsed even with RFC 4180 rules may return a parse error
- Very large payloads sent via GET query string may be rejected due to URL length limits
- Specifying an invalid value for 'typed' parameter may cause unexpected behavior

## How this service works

Convert between the shapes data actually arrives in: CSV or TSV to JSON, JSON to CSV or TSV, CSV to a Markdown table, Markdown to HTML. Proper RFC 4180 parsing — quoted fields, embedded commas and newlines, doubled quotes — so a spreadsheet exported by a human does not silently come apart. Numbers and booleans get real types (turn it off with typed=false). No model call and no upstream: local parsing only.

## Output

Returns the converted content as a string in the requested target format. For CSV/TSV-to-JSON conversions, numbers and booleans are cast to their native types by default (disable with typed=false). For JSON-to-CSV/TSV, objects are flattened to rows. For CSV-to-Markdown, a formatted table is returned. For Markdown-to-HTML, rendered HTML is returned.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text",
      "from",
      "to"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "Target format"
      },
      "from": {
       "type": "string",
       "description": "Source format"
      },
      "text": {
       "type": "string",
       "description": "Content to convert"
      },
      "typed": {
       "type": "string",
       "description": "Type numbers/booleans (optional)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/format-convert-csv-tsv-json-markdown-1033fae2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 402.com.tr](https://www.zero.xyz/host/402.com.tr/llms.txt)
