Excel Split Tool – Divide Local Spreadsheet into Files in 30+ Formats
Divide a local Excel workbook into separate files entirely — no cloud storage needed. Output supports 30+ file formats such as PDF, CSV, JSON, ODS, and XPS.
Split Spreadsheet API
Web API
PUT https://api.aspose.cloud/v4.0/cells/split/spreadsheet
Security and Authentication
The Aspose.Cells Cloud APIs are secure and require JWT token-based authentication.
-H "Authorization: Bearer {access_token}"
Request Parameters:
| Parameter Name | Type | Path/Query String/HTTPBody | Description |
|---|---|---|---|
| Spreadsheet | File | FormData | The local spreadsheet file to be split. Supported formats include XLSX, XLS, ODS, CSV, etc. The file is processed entirely on the server without requiring cloud storage. |
| from | Integer | Query | The zero‑based starting index of the worksheet range to split (e.g., 0 for the first worksheet). |
| to | Integer | Query | The zero‑based ending index of the worksheet range to split (e.g., 2 will split worksheets 0, 1, and 2). |
| outFormat | String | Query | The output format for the split files. Supports 30+ formats such as PDF, CSV, JSON, XLSX, HTML. |
| outPath | String | Query | (Optional) The local folder path where the split output files will be saved. If omitted, files are saved in a default temporary location. |
| outStorageName | String | Query | The storage identifier for organizing output files. In local processing mode, this typically refers to a session‑based or user‑defined storage label. |
| fontsLocation | String | Query | (Optional) Specifies a local or custom font directory to ensure accurate text rendering when exporting to PDF or image formats. |
| region | String | Query | (Optional) Sets the locale for number, date, and currency formatting in the output files (e.g., "en‑US", "de‑DE"). |
| password | String | Query | (Optional) If the uploaded spreadsheet is password‑protected, provide the password to open and process the file. |
Response
[
{
"Name": "ResponseFile",
"DataType": {
"Identifier": "File",
"Reference": "Stream"
}
}
]
The file can be downloaded directly from or saved to the location specified by outPath.
Success response details
| Status Code | Content‑Type | Description |
|---|---|---|
| 200 OK | application/octet-stream |
Binary stream of the merged workbook file. |
HTTP Status Codes
| Code | Meaning | Description |
|---|---|---|
| 200 | OK | Filter applied successfully; response contains operation details. |
| 400 | Bad Request | Missing or invalid parameters (e.g., unsupported file type). |
| 401 | Unauthorized | Invalid or missing JWT token. |
| 413 | Payload Too Large | Uploaded file exceeds size limit. |
| 500 | Internal Server Error | Unexpected server error. |
Where should we use the Split Spreadsheet API?
- Department Data Distribution: Split a unified workbook containing data from multiple departments into department‑specific files.
- Regional Report Distribution: Split national sales statements into separate regional reporting files.
- Customer Data Masking Distribution: Split a workbook containing sensitive information into a deduced customer‑view file.
- Periodic Report Splitting: Automatically split summary reports into weekly or daily reports on a monthly basis.
- Multi‑Format Distribution: Split a single Excel file into multiple format versions such as PDF, CSV, JSON, etc., at the same time.
- Templated Splitting: Split data files into standardized output files based on predefined templates.
- Data Source Preprocessing: Split the Excel file into a standardized CSV file before loading the data into a database.
- API Data Preparation: Split large datasets into smaller chunks suitable for API transfer.
Why should you use the Split Spreadsheet API?
- Developer‑Friendly: Aspose.Cells Cloud offers SDK libraries in multiple languages, enabling quick development and providing comprehensive documentation. Compared with building custom chart‑rendering solutions, this significantly reduces development workload.
- Reduced Labor Costs: Reduces the need for positions dedicated to document consolidation.
- Pay‑per‑use: No upfront investment; you only pay for API calls actually used.
- Zero Maintenance Costs: No need to maintain servers, update software, or deal with compatibility issues.
- Preserves complex Excel formatting in universally accessible PDF format.
How to Use the Split Spreadsheet API with SDKs
Split Spreadsheet API Specification
The Split Spreadsheet API Specification provides a publicly accessible programming interface for performing REST interactions directly from a web browser. You can use the cURL command‑line tool to access Aspose.Cells web services easily. The following example shows how to make calls to the Cloud API with cURL.
Use Aspose.Cells Cloud SDKs
Using the SDK is the fastest way to develop, as it abstracts away the low‑level details, allowing you to split the spreadsheet into separate files with short code.
Please check out the GitHub repository for a complete list of Aspose.Cells Cloud SDKs.
The following code examples illustrate how to invoke Aspose.Cells web services using different SDKs: