$ XLSX to CSV, Excel to CSV API
Convert Excel XLSX to CSV via API
Turn Excel workbooks into CSV with one REST call. Send the .xlsx or a public URL, pick the sheet, and get UTF-8 CSV ready for your database, warehouse or script.
Free: 10 conversions a month, no card. Pro: $9/month. Compare plans
# Convert Excel XLSX file to CSV
curl -X POST \
https://api.convertfilefast.com/v2/convert/xlsx-to-csv \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@data.xlsx" \
-F "sheet_name=Sheet1" \
--output output.csv
# HTTP 200 OK — Content-Type: text/csvimport requests
response = requests.post(
"https://api.convertfilefast.com/v2/convert/xlsx-to-csv",
headers={"Authorization": "Bearer YOUR_API_KEY"},
files={"file": open("data.xlsx", "rb")},
data={"sheet_name": "Sheet1"}
)
with open("output.csv", "wb") as f:
f.write(response.content)const formData = new FormData();
formData.append("file", fs.createReadStream("data.xlsx"));
formData.append("sheet_name", "Sheet1");
const response = await fetch(
"https://api.convertfilefast.com/v2/convert/xlsx-to-csv",
{
method: "POST",
headers: { "Authorization": "Bearer YOUR_API_KEY" },
body: formData,
}
);
fs.writeFileSync("output.csv", Buffer.from(await response.arrayBuffer()));// n8n HTTP Request Node
{
"method": "POST",
"url": "https://api.convertfilefast.com/v2/convert/xlsx-to-csv",
"contentType": "multipart-form-data",
"bodyParameters": {
"parameters": [
{ "name": "file", "parameterType": "formBinaryData", "inputDataFieldName": "data" }
]
},
"options": { "response": { "responseFormat": "file" } }
}// Advantages
Why use our API?
Complete and reliable solution for integration in any tech stack.
Pick Any Sheet
Exports the active sheet by default. Pass sheet_name to export any specific tab.
Calculated Values
Formula cells export the value saved in the workbook, not the formula text, so the CSV holds the numbers your users saw in Excel.
UTF-8 With BOM
Output is UTF-8 with a byte order mark and CRLF line endings, so accents and non-Latin text open correctly in Excel and import cleanly elsewhere.
Upload or URL
Send the file as multipart/form-data or point the url field at a public .xlsx. No SDK, no file handling.
Fits Your Pipeline
Drop it into ETL jobs, nightly imports and data-ingestion workflows with a single HTTP call. Works in n8n with the HTTP Request node.
Built for AI Agents
The same conversion is one MCP tool call, so an agent can turn a spreadsheet into CSV with no HTTP client.
// How it works
4 steps to run this conversion
- 01
Create an API key
Sign up at convertfilefast.com/signup and copy your cff_ API key from the dashboard. The free plan includes 10 conversions per month.
- 02
POST the workbook to the endpoint
Send a multipart/form-data POST to https://api.convertfilefast.com/v2/convert/xlsx-to-csv with header X-API-Key: cff_your_key (Authorization: Bearer also works), the workbook as a file field or a public url field, and optionally sheet_name.
- 03
Receive the CSV
The response body is the CSV, streamed back with a Content-Disposition filename. Save it or pass it straight to the next step of your pipeline.
- 04
Or invoke it from an AI agent
Add the MCP server to Claude, Cursor or any MCP-compatible client using https://mcp.convertfilefast.com/mcp, then call convert_file({ target_format: 'csv', source_url: '...' }) as a single tool call, with no HTTP client and no file handling.
// For AI agents
Or call this from Claude, Cursor, or any MCP client
Convert File Fast ships a native Model Context Protocol server. Give this conversion to an AI agent as a single tool call — no HTTP client, no binary handling, per-user API keys.
npx -y convertfilefast-mcpconvert_file({ target_format: "csv", source_url: "https://example.com/file.xlsx" })// Compared with
Convert File Fast vs alternatives
| Product | Native MCP | Free tier | Price |
|---|---|---|---|
| Convert File Fast | Yes | 10/month | $0.004/conv from $4 |
| Smallpdf | No | 2/day (unregistered) | $9/mo Pro |
| iLovePDF | No | Rate-limited | $7/mo Premium |
| Adobe Acrobat Online | No | Limited trials | $19.99/mo Acrobat Standard |
| CloudConvert | No | 10/day | From $9/mo (1,000 credits) |
Competitor pricing checked on 2026-07-16.
// FAQ
Frequently Asked Questions
How do I convert an XLSX file to CSV with an API?
Send a POST request to https://api.convertfilefast.com/v2/convert/xlsx-to-csv with your workbook as a multipart/form-data upload in the file field. The response body is the CSV file. See the cURL and Python examples above for ready-to-run code.
Which sheet does the API export?
The active sheet, by default. To export another tab, add the sheet_name form field with the exact sheet name. If the name does not exist, the API answers 400 and lists the sheets available in the workbook.
What happens to formulas in the workbook?
The CSV contains each cell's calculated value, not the formula text. The value is the one saved in the workbook.
What encoding and line endings does the CSV use?
UTF-8 with a byte order mark, comma-separated, with CRLF line endings. Rows where every cell is empty are skipped.
Can I send a URL instead of uploading the file?
Yes. Pass a public link to the .xlsx in the url form field instead of file.
Can I call it from n8n or an AI agent?
Yes. It is a standard REST endpoint, so any HTTP client works, including the n8n HTTP Request node (see the n8n tab above). AI agents can call it through the MCP server with convert_file and target_format csv.
// Related Tools
// Try free or subscribe
Start Converting XLSX to CSV
Get your API key and convert Excel workbooks to CSV in seconds. Free plan includes 10 conversions per month.
Compare plans- Free$0/mo10 conversions per monthStart Free
- Pro$9/mo5,000 conversions per monthSubscribe Pro
- Scale$59/mo50,000 conversions per monthSubscribe Scale