Split a Scanned PDF at QR Divider Sheets
Auto Split PDF cuts a scanned batch into separate documents at divider sheets that carry a QR code whose text is exactly https://pdf123.xyz, then returns the parts in a ZIP. Other QR codes are ignored.
Drag and drop files here, or click to choose
Accepts PDF · up to 500.0 MB per file · up to 20 files at once
You can also paste a file with Ctrl/Cmd+V, or from the clipboard menu.
Auto Split PDF renders pages with Ghostscript to PNG at 150 dpi, looks for QR codes with `rxing`, and treats a QR whose payload is exactly `https://pdf123.xyz` as a divider. qpdf then packs the segments into a ZIP. Other QR contents are ignored.
`duplexMode=true` skips the page after a divider (the presumed back of a duplex separator). With no divider found, the ZIP holds the whole file as one PDF. Divider pages themselves are left out of the output, except a divider on page 1.
This is not blank-page detection (that is Remove Blanks) and not OCR. Password-protected files are unlocked for you on this page once you enter the password; API callers run Unlock first.
Print divider sheets that encode `https://pdf123.xyz` if you want this tool to see cuts.
The ZIP is named after your upload (`batch.pdf` returns `batch.zip`) and the parts inside are numbered in page order: `batch_1.pdf`, `batch_2.pdf`, and so on. A divider page in the middle of the file is dropped from the output, so a separator sheet never ends up inside a part.
Two dividers in a row do not create an empty part: a divider only closes a segment that already has pages. A divider on the very first page is the one exception to the dropping rule, because that page is kept as the first page of the first part.
The scanner reads whatever Ghostscript renders, so the QR must be large and sharp enough to survive a 150 dpi bitmap. Print it at a generous size with plenty of white space around it, and keep it flat when scanning.
Features
- Ghostscript 150 dpi PNG plus QR scan
- Only QR payload `https://pdf123.xyz` is a cut
- duplexMode skips the page after a divider
- Anonymous API at /api/v1/misc/auto-split-pdf
When to use this tool
- Batch-scan several documents with branded divider sheets
- Drop the duplex back of a separator page
- Avoid outline-based splitting when you control the scan tray
- Separate a stack of scanned invoices or forms into one file per document
- Cut a long scanned folder into per-client PDFs when a separator sheet is placed between clients
How do I split a batch scan automatically?
- Insert separator pages whose QR decodes to https://pdf123.xyz.
- Upload the PDF. Turn on duplexMode if the back of the separator should be dropped.
- Click Process and download the ZIP.
- If the ZIP holds a single PDF, the scanner found no valid divider QR.
- Open the ZIP and count the parts against the number of dividers you inserted. A missing part means one divider was not decoded, so the two neighboring documents were kept together.
- To fix a missed cut, reprint that divider larger or rescan the sheet flat, then run the tool again on the original file.
Limits and edge cases
- Hard-coded QR payload
- Not blank-page split, not OCR
- With no divider found you get the whole file as one PDF
- The ZIP is the only output, so you unpack it yourself to get the individual PDFs
- A QR that is too small, skewed or low-contrast at 150 dpi may not decode and the cut is then skipped silently
- Upload limit on this website: 500 MB per file, sent in chunks above about 95 MB. A single direct API request body is capped at 100 MB.
Examples
- A 20-page scan with two valid QR separators becomes three PDFs in a ZIP
- A QR that encodes a different URL does not cut
- A 12-page file with dividers on pages 5 and 9 and duplexMode off gives parts of pages 1-4, 6-8 and 10-12
- The same file with duplexMode on gives pages 1-4, 7-8 and 11-12, because pages 6 and 10 (the backs of the separators) are skipped
Privacy for this tool
Files are uploaded over HTTPS, processed in memory or a short-lived temporary directory on our servers, and deleted when your result is ready. We do not keep copies for later browsing, training, or advertising profiles. See the Privacy Policy for retention details and AdSense cookie disclosures.
Frequently asked questions
- Will any QR split the file?
- No. The payload must be exactly https://pdf123.xyz.
- Does this split on blank pages?
- No. Use Remove Blanks to classify blank vs non-blank. This op only looks for that QR.
- Is duplexMode for double-sided scans of the whole job?
- It only skips the page immediately after a divider QR, not a general duplex unshuffle.
- Why 150 dpi?
- That is the Ghostscript -r150 render used before rxing. Tiny printed QRs may not decode.
- Are the divider pages included in the output PDFs?
- No, except for a divider on page 1, which stays as the first page of the first part. Every other divider page is left out, and with duplexMode on the page right after it is left out as well.
- What do the files in the ZIP look like?
- The ZIP is named after the upload, and the parts are named after it too with a running number: for example `scan_1.pdf`, `scan_2.pdf`. They follow the page order of the original file.
- My ZIP holds only one PDF. What went wrong?
- No page decoded to exactly https://pdf123.xyz. Check that the QR is on the page, large and sharp, and that it encodes that exact address with nothing extra. A different payload, even a close variant, is ignored.
- I do not have QR dividers. What should I use instead?
- Use Split to cut at page numbers you choose, Split PDF by Page Count to cut into parts of a set number of pages, or Split by Chapters when the PDF has bookmarks. Remove Blanks drops blank pages but does not split.
Last updated:
Call this from code
Every tool on this site is a plain REST endpoint - no account or API key needed for anonymous use. Built for AI agents and developers as much as for browsers.
curl -X POST "https://pdf123.xyz/api/v1/misc/auto-split-pdf" \
-F "[email protected]" \
-F "duplexMode=false" \
-o output.pdfAlso available as an MCP tool for agent clients that speak Model Context Protocol (JSON-RPC 2.0 over POST /mcp). Full API reference
Use it from an AI agent
SkillClaude Code, Codex, Cursor and other AI agents can run Auto Split PDF for you with this skill: /skills/pdf123-auto-split-pdf.md
Files are used only for this processing job and deleted automatically afterward.