Skip to main content
PPDF123

Remove Blank Pages From a PDF

Remove Blanks sorts the pages of a PDF into blank and non-blank sets and returns them as separate PDFs in a ZIP. A page counts as blank when it has no extractable text and no embedded images.

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.

Remove Blanks classifies each page as blank or not, then returns a ZIP of qpdf subsets. A page counts as blank when it has no extractable text and no embedded images, so a page with only vector rules counts as blank. The `threshold` field has no effect on pages that contain any text, and `whitePercent` is read and discarded.

If both classes exist you get `{base}_blank.pdf` and `{base}_nonblank.pdf`. All blank becomes `{base}_allBlankPages.pdf`. All non-blank becomes `nonblank.pdf`.

This is not a visual white-page detector and not OCR. A scanned form that is an image counts as non-blank because `page_has_images` is true. A page with only vector rules and no text may still look printed and classify as blank.

Password-protected files are unlocked for you on this page once you enter the password; API callers run Unlock first.

The decision runs page by page. The tool extracts the text of the page and checks whether the page has any embedded image. A page with at least one word of text is non-blank. A page with an image is non-blank. Only a page with neither can be blank. A page whose extracted text is nothing but spaces or line breaks is a special case: it is blank only when `threshold` is 0 or lower, so with the form's default of 10 it stays in the non-blank file.

Pages that look empty to a person but are not empty to the tool are the usual surprise. A scan of a blank sheet is an image, so it goes to the non-blank file even when it is pure white. A page whose text was converted to outlines or drawn as vector shapes has no extractable text and no image, so it goes to the blank file even though it shows a printed word. If the text of a page cannot be read at all, the tool treats it as empty, so a page with a damaged font table and no images can also land in the blank file. Check the blank file before you throw anything away.

Nothing is deleted from your original. Both outputs are new files built from subsets of the pages, each in the original page order. Open the non-blank file as your cleaned copy and glance through the blank file to confirm that it contains only separator sheets.

For a single known page, such as a cover, Remove Pages is quicker. For scans where white pages are images, the tool cannot separate them, and you will need to list their page numbers yourself in Remove Pages after looking at the file. If you only want to drop pictures from a document, use Remove Images rather than this tool, which is about pages.

Features

  • Text + image heuristic; ZIP of blank and/or non-blank subsets
  • `whitePercent` ignored; `threshold` does not affect pages with text
  • Whitespace-only text counts as blank only when `threshold` is 0 or lower
  • Image-only scans are treated as non-blank
  • Pages keep their original order inside each output file
  • Your original file is never modified
  • Anonymous API at /api/v1/misc/remove-blanks

When to use this tool

  • Pull text-empty separator pages out of a born-digital export
  • Keep image scans together even when they look white
  • Inspect both ZIP entries before deleting anything
  • Clean a report exported from a word processor where a manual page break left empty sheets between sections
  • Check whether a long export contains any text-free pages at all before deciding to edit it by hand

How do I remove blank pages from a PDF?

  1. Upload a PDF that came from a word processor, a spreadsheet export or a print-to-PDF driver, where blank pages truly have no text.
  2. Leave threshold at 10 and whitePercent at 99.9. Neither changes which text or image pages are kept.
  3. Click Process and download `{name}_removeBlanks.zip`, then unzip it.
  4. Look at the file names: `_nonblank.pdf` plus `_blank.pdf` means both kinds were found, `_allBlankPages.pdf` means every page counted as blank, and a lone `nonblank.pdf` means none did.
  5. Open the blank file and confirm it holds only empty separator pages, then use the non-blank file as the cleaned copy.
  6. If a page you expected to be blank is in the non-blank file, it probably contains an image or stray text, so note its page number and remove it with Remove Pages.

Limits and edge cases

  • Not visual whitespace detection
  • Not OCR
  • whitePercent unused
  • A page with any image counts as non-blank, even a pure white scan
  • Pages drawn only with vector shapes or outlined text count as blank
  • The result is a ZIP of up to two PDFs, not one cleaned PDF
  • 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 PDF of empty text pages and one image scan yields a blank file plus a one-page non-blank file
  • A fully imaged scan zip contains only nonblank.pdf
  • A 4-page export with text on pages 1 and 3 and nothing on pages 2 and 4 returns `{name}_blank.pdf` with pages 2 and 4, and `{name}_nonblank.pdf` with pages 1 and 3
  • A 3-page file with no text or images anywhere returns one file named `{name}_allBlankPages.pdf` that holds all three pages

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

Why is my white scanned page still there?
It contains an image XObject. The classifier treats any page with images as non-blank.
Does whitePercent 99.9 do anything?
No. The code binds it and ignores it.
Is the output one PDF with blanks deleted?
No. It is a ZIP that may contain blank and non-blank files.
Can I OCR then remove blanks?
Not usefully. A searchable PDF from OCR PDF puts every page back as a picture with a text layer behind it, and a page with a picture counts as non-blank, so every page would be kept. Pick the blank pages by eye and use Remove Pages.
What do the file names in the ZIP mean?
When both kinds of pages exist you get `{name}_blank.pdf` and `{name}_nonblank.pdf`. If every page counted as blank the ZIP holds only `{name}_allBlankPages.pdf`. If none did, it holds only `nonblank.pdf`, which has the same pages as your input.
My ZIP contains only nonblank.pdf. Does that mean there were no empty pages?
It means no page passed the test of having no text and no images. Blank sheets that were scanned are images, so they end up in the non-blank file. The same happens to a page that holds only a few spaces, unless threshold is 0 or lower.
Why did a page with a printed word land in the blank file?
The tool judges blankness from extractable text and images, not from how the page looks. A word that is drawn as vector shapes instead of text has neither, so the page counts as blank. Open the blank file before you discard it.
Does it change the original or the page order?
No. The original is untouched, and each output file lists its pages in the same relative order as the input.
Which tool removes specific pages instead?
Use Remove Pages when you already know the page numbers. Remove Blanks is for when you want the tool to sort text-free pages for you.

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/remove-blanks" \
  -F "[email protected]" \
  -F "threshold=10" \
  -F "whitePercent=99.9" \
  -o output.pdf

Also 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

Skill

Claude Code, Codex, Cursor and other AI agents can run Remove Blanks for you with this skill: /skills/pdf123-remove-blanks.md

All agent skills

Files are used only for this processing job and deleted automatically afterward.