ForHosting KIT · Documents & PDF

Split PDF every N pages into consecutive files

Split a PDF every N pages when a long document must become a predictable sequence of smaller files.

● BetaFree · in your browser
Use it from WebAPIEmailTelegramApp soon

Runs in your browser. Free, unlimited — your data never leaves this page.

Supply the PDF and a positive whole number for the maximum pages in each chunk. The tool preserves the original page order, starts each new file immediately after the previous one, and places any remaining pages in a shorter final file. It also reports exact source boundaries for every result, making the split easy to inspect, name, route, and verify in an automated workflow.

Choose a useful number of pages per file

The value N sets the maximum number of consecutive source pages placed in each output PDF. For example, splitting an eleven-page document with N set to four creates files for pages 1–4, 5–8, and 9–11. The last file is shorter because the source page count is not evenly divisible by four; no blank pages are added and no source pages are discarded. Choose N according to the system that receives the files. A document portal may impose a practical size limit, a scanner workflow may produce one form every two pages, or a review process may assign ten-page packets. N must be a whole number of at least one. A value of one creates one PDF per source page, while a value equal to or greater than the source page count creates a single output file. The setting describes page count rather than file size, so PDFs containing photographs can still differ substantially in bytes even when their chunks contain the same number of pages.

Read and verify the chunk boundaries

Each generated chunk includes its own PDF plus the number of pages it contains and its inclusive start and end positions in the source. Those positions use familiar one-based numbering: the first visible source page is page 1. The overall response also reports the source page count, the accepted pages-per-chunk value, and the number of files created. These fields let an automated process verify completeness without reopening every document. Consecutive chunks should begin one page after the preceding chunk ends, the first should start at page 1, and the final chunk should end at the reported source page count. The operation preserves source order and never overlaps chunks. It also leaves the original value unchanged. A useful naming convention can combine a document identifier with the reported boundaries, such as report-pages-001-010.pdf. That makes the output understandable outside the API response and reduces mistakes when files are later uploaded, attached, archived, or sent to different reviewers.

Use fixed-page splitting safely in workflows

Fixed-page splitting works best when page position defines the desired batches. Typical examples include breaking a scan into uniform review packets, preparing classroom reading sections, or placing a long appendix into upload-friendly groups. It is not a substitute for semantic document detection: if invoices have different lengths or separator sheets mark record boundaries, determine those boundaries first instead of assuming every record contains N pages. Validate upstream inputs as well. A malformed PDF, an unsupported page structure, or an N value below one returns an invalid input error rather than a partial set of files. In an API workflow, treat that failure as a reason to quarantine the source and preserve its identifier for investigation. On success, compare the reported source page count with the expected count before distributing chunks. Each API request costs $0.002. The deterministic splitting logic uses no network request, model inference, random choice, or current time, so identical supported input produces the same page grouping and serialized results.

Prepare review packets

Turn a long case file into equal-page packets that can be assigned sequentially while preserving clear source page boundaries.

Batch scanned forms

Split a scan containing fixed-length forms into consecutive files when every form reliably occupies the same number of pages.

Meet upload workflows

Divide a large manual into predictable page groups for systems or processes that handle smaller documents more conveniently.

What happens when the page count is not divisible by N?

The final PDF contains the remaining pages. It is shorter than N pages, with no padding or omitted source pages.

Can N be zero or negative?

No. N must be an integer of at least 1; smaller values return an invalid input error.

Does the tool preserve page order?

Yes. Chunks are consecutive, nonoverlapping, and returned in the same order as the pages in the source PDF.

Does N control the output file size in megabytes?

No. N controls pages per PDF. Byte sizes can vary because different pages may contain different images, fonts, or content.

How much does the API request cost?

The API price is $0.002 per request. The response can contain multiple consecutive PDF chunks.

Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.

POSThttps://api.kit.forhosting.com/pdf/split-every-n

Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.

curl -X POST https://api.kit.forhosting.com/pdf/split-every-n \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"pdf":"https://ejemplo.com/documento.pdf","n":2}'
{
  "pdf": "https://ejemplo.com/documento.pdf",
  "n": 2
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "pdf.split_every_n",
  "status": "queued",
  "_links": {
    "result": "/tasks/tsk_…/result"
  }
}

The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

max_mb25
max_pages200
HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

Read the full KIT documentation →