CSV to Excel (URL)
Convert a remote CSV URL to a downloadable Excel (.xlsx) file.
GET
1 credit
/v1/convert/csv-to-excel-file
curl -OJ "https://convert.toolkitapi.io/v1/convert/csv-to-excel-file?url=https://toolkitapi.io/data.csv"
import httpx
resp = httpx.get(
"https://convert.toolkitapi.io/v1/convert/csv-to-excel-file?url=https://toolkitapi.io/data.csv",
)
print(resp.json())
const resp = await fetch("https://convert.toolkitapi.io/v1/convert/csv-to-excel-file?url=https://toolkitapi.io/data.csv", {
});
const data = await resp.json();
console.log(data);
# See curl example
Response
200 OK
Binary XLSX file download (Content-Disposition: attachment; filename="output.xlsx")
Description
Convert a remote CSV URL to a downloadable Excel (.xlsx) file.
How to Use
1
1. Make a GET request with the target CSV URL in the `url` query parameter.
2
2. Optionally override `sheet_name` or `filename`.
3
3. Save the response body — the `Content-Disposition` header carries the suggested filename.
About This Tool
Fetches a CSV file from a public URL and streams back an `.xlsx` workbook as a file download. This is the zero-JSON version of the [CSV to Excel](/convert/tools/csv-to-excel) endpoint, ideal for direct browser downloads and `curl -OJ` pipelines.
The remote CSV must be reachable over HTTPS without authentication. Headers and delimiter are auto-detected.
Why Use This Tool
- Browser downloads — Offer a one-click "Download as Excel" link from a CSV source
- CI exports — Convert CSV artifacts to Excel inside a build pipeline
- Shell scripts — Pipe `curl -OJ` directly into archival workflows
- No-JS integrations — Use in form submissions and HTML `<a>` tags
Frequently Asked Questions
Is the URL fetched server-side?
Yes. The service fetches the URL over the public internet. Private or auth-protected URLs are not supported.
What size limits apply?
Remote inputs are capped at the server-configured maximum (typically a few MB). For larger files, use the async jobs API.
What encodings are supported?
UTF-8 is the default. UTF-16 and Windows-1252 are auto-detected via BOM or heuristics.
Start using CSV to Excel (URL) now
Get your free API key and make your first request in under a minute.