Free plan

Split / combine workbooks

Split a workbook into one file per sheet, or combine workbooks
POST
/v1/data/workbooks

About this tool

A workbook is an Excel file that can hold several sheets. This tool can split a workbook into one file per sheet, delivered together in a ZIP, in formats such as Excel or CSV. Or it can combine several files into one workbook, with a sheet for each, or stack all their rows into one sheet.
For example, you pull each sheet out of a large workbook as its own file.

How to use it

  1. Choose this tool.
  2. Add your workbooks or table files with Upload or drag and drop.
  3. Choose whether to split or combine.
  4. Set the details, such as the file format or which sheets to use, then press Generate.
  5. Download the result.

What you get back

You get a ZIP of files, one per sheet, or one combined workbook. Download it.
GOOD TO KNOW
A CSV, JSON or other table file has no sheet names, so its one sheet is named after the file. With several files to split, each gets a folder. Counts as one conversion per file.
TEST IT LIVE

Try Split / combine workbooks in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
Data
Plan
Free
Method
POST
Endpoint
/v1/data/workbooks
Tool ID
data.workbooks
Authentication
API key
Accepts
Text and settings
Background jobs
Yes
Usage group
Data
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/data/workbooks" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'files=@document.pdf' \
  -F 'operation=split' \
  -F 'sheets=["Jan","3"]' \
  -F 'format=xlsx'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.data.workbooks({
    "files": 'document.pdf',
    "operation": "split",
    "sheets": "[\"Jan\",\"3\"]",
    "format": "xlsx"
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->data()->workbooks([
    'files' => 'document.pdf',
    'operation' => 'split',
    'sheets' => '["Jan","3"]',
    'format' => 'xlsx',
]);
echo $result->requestId;
FAQ

Frequently asked questions

Split a workbook into one file per sheet (xlsx, csv, json …) in a ZIP, or combine several workbooks and table files into one workbook with a sheet for each, or stack all their rows into one sheet.

Split / combine workbooks works from text and settings, so no file is needed. Every input is optional.

Split / combine workbooks is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/data/workbooks with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.