# XLSX/CSV to Markdown + JSON Converter

> XLSX/CSV to Markdown + JSON Converter is a paid API for AI agents from x402.freeq.one, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-12).

Converts an XLSX spreadsheet or CSV file (via URL or base64) into a Markdown table and a JSON array of row objects in a single call, covering all sheets.

## Facts

- Endpoint: POST https://x402.freeq.one/tools/xlsx_to_markdown?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/xlsx-csv-to-markdown-json-converter-9b82b149
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2Q2EDI0lzRF5yK6ynOJMh

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 xlsx-csv-to-markdown-json-converter-9b82b149 -d '<json body>'
```

Example prompt: Can you convert this Excel file at https://x402.freeq.one/samples/data.xlsx into both a Markdown table and a JSON array of rows? Keep the markdown output under 20000 characters.

## When to prefer this

Choose this endpoint when you need both a human-readable Markdown table AND structured JSON rows from an XLSX or CSV file in a single API call, especially for multi-sheet workbooks or when preparing spreadsheet data for LLM ingestion. Prefer it over manual parsing when the file is accessible via URL or can be base64-encoded.

## Known failure modes

- Invalid or inaccessible URL returns an error with HTTP status
- Base64 payload exceeds 28MB limit causes rejection
- Malformed or corrupt XLSX/CSV file results in parse error
- max_length truncation only affects markdown output, not JSON rows — agents may be surprised JSON is untruncated
- Multi-sheet workbooks are flattened in sheet order which may cause column name collisions

## How this service works

XLSX/CSV to Markdown + JSON: Convert an XLSX spreadsheet or CSV to Markdown table AND a JSON array of row objects in one call. Provide a direct URL or base64-encoded file bytes. All sheets are included; multi-sheet workbooks are flattened in sheet order. Pay per call in USDC on Base via x402 — POST https://x402.freeq.one/tools/xlsx_to_markdown.

## Output

Returns a JSON object containing a Markdown-formatted table representation of the spreadsheet data and a JSON array of row objects (one per row across all sheets), optionally truncated to a specified character limit for the Markdown portion.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "example": "https://x402.freeq.one/samples/data.xlsx",
   "description": "Direct URL to the XLSX or CSV file"
  },
  "file_b64": {
   "type": "string",
   "maxLength": 28000000,
   "description": "Base64-encoded XLSX/CSV bytes (alternative to url)"
  },
  "max_length": {
   "type": "integer",
   "example": 50000,
   "description": "Truncate the markdown output to N characters (JSON rows unaffected)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/xlsx-csv-to-markdown-json-converter-9b82b149/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.freeq.one](https://www.zero.xyz/host/x402.freeq.one/llms.txt)
