pdftoolskit.org
65 PDF tools that run in your browser
Sign in Create account

Remove Blank Pages from a PDF

ink coverage or text detection · adjustable threshold · report-only mode · batch

Scanners insert blank backs, exports pad to even page counts, and merged documents collect empty separators. This finds those pages by measuring how much ink is on them, or whether they carry any real text, and gives you the file back without them, listing exactly which pages went and why. Rendering and rebuilding both happen in your browser; nothing is uploaded.

Drop PDF files here or click to select

One or many · a trimmed copy per file

    no files
    Ready.

    No PDF handy? sample-scanned.pdf has no text layer: in No text at all mode every page counts as blank and the tool refuses, which is why ink coverage is the default for scans. More free sample files.

    How to remove blank pages from a PDF

    1. Drop the PDFs with the empty pages in them, usually the back of every duplex-scanned sheet. Each file gets its own trimmed copy.
    2. Pick the detection method. Ink coverage works on scans, where a blank page is never pure white. No text at all suits born-digital documents and is faster because nothing is rendered. Text first, then ink handles a mix.
    3. Tick Report only for a first pass. The report lists every page that would go, with its measured ink percentage or the text rule that caught it.
    4. Adjust the threshold, margin, sensitivity or minimum letters if a real page is on the list, and run the report again.
    5. Untick Report only and click "Remove blank pages". The output is named after the input with -no-blanks added and shows how much smaller it is.

    What counts as blank

    Ink is measured against the page's own paper, not against white

    A scan has a tone: the paper is grey, never pure white. Counting every pixel darker than white would make a blank scanned page look fully inked. So the paper tone is read off each page first, as the brightness that the lightest fifth of its pixels reach, and ink is anything darker than that by more than Ink sensitivity times the full range. The default 0.08 is about 20 levels out of 255. Lower it to catch faint pencil; raise it to ignore a heavy background. The report names the paper tone whenever it is clearly not white, so you can see which pages are scans.

    The margins are ignored

    A page with nothing on it but a page number and a header rule is not a page with content. Ignore margin excludes a band around the edge, 6% of the width at the sides and 6% of the height top and bottom by default, so furniture in the margins does not keep an otherwise blank page. Set it to 0 to measure the whole page; raise it for documents with deep running heads. Values above 30 are not accepted.

    A dark pixel needs a dark neighbour

    Dust on the scanner glass produces isolated dark pixels scattered across an empty page. Each dark pixel must touch another dark pixel above, below, left or right before it counts. Speckle goes; a letterform, which is many adjacent dark pixels, stays.

    In the text modes, a page number is not text

    No text at all and Text first, then ink discount digits, spaces and common punctuation, and Min letters sets how many letters a page needs before it counts as having content, 3 by default. The report says which rule dropped each page: no text, only a page number, or the number of letters found.

    The threshold

    In the ink modes a page is kept when its inked area, inside the margin band, reaches the Ink threshold as a percentage of that area. The default is 0.1% and the range is 0 to 5; at 0 every page is kept. The check renders each page at Check DPI, 60 by default, which is enough to see whether anything is there and keeps long documents quick. There is no universal right value: the report shows the measured percentage for every page it removed, so one report-only pass tells you where to set it for the rest of the batch.

    What you get back

    A new document holding the kept pages, copied as objects without re-rendering, plus a report card per file listing the removed page numbers and the reason for each. If nothing looks blank, no file is written and the status says so. If every page looks blank, the tool refuses rather than handing back an empty document; raise the threshold or lower the sensitivity. Your original file is never touched. Because the output is a new document, bookmarks, the title and author fields, attachments and the form dictionary are not carried over.

    FAQ

    Will it delete a page that only has a header or page number?

    Yes, by default: that is the point of the margin band and the text rule. To keep such pages in ink mode, set Ignore margin to 0 so the page number is measured, and lower the threshold until the report keeps them. In the text modes digits never count, so switch to ink mode instead.

    Does it work on scanned PDFs?

    That is the main case it is built for. Use the ink-coverage mode, which measures pixels against the page's own paper tone. The text modes see no text on a scan without OCR and would drop every page.

    Why is the check DPI so low?

    Because blankness is a coarse question. 60 DPI is enough to see whether there is any content, and it keeps a long document fast. Raise it, up to 150, if you are hunting for a single faint mark.

    Why did I get a report but no file?

    Either Report only was ticked, or nothing looked blank, in which case the status reads No blank pages found and the file is left alone. A file is only written when at least one page is removed.

    The pages are gone but the file is not much smaller. Why?

    Blank pages are cheap; the size lives in the content pages. Use Compress PDF if size is the real goal.

    What about an encrypted PDF?

    A file that needs a password to open cannot be analysed and stops with an error. A file that opens freely but restricts printing or copying is analysed, but pdf-lib copies its pages without decrypting them, so the output has blank pages. Run either through Unlock PDF first.

    Related tools

    Part of: Clean up a scan and make it searchable

    OCR goes last: the text layer it adds is destroyed by any later rasterising step, and it reads best from pages that are already upright and trimmed.

    1. 1 Rotate PDF Pages Turn the sideways pages upright, by page or all at once
    2. 2 Auto-Crop PDF Margins Trim the scanner margins to the ink on each page
    3. 3 Remove Blank PDF Pages Drop the empty backs by measuring ink, not text
    4. 4 Compress PDF Rasterise the JPEG pages at a lower DPI if the file is huge
    5. 5 PDF OCR Recognise the text and put a searchable layer behind the image

    This workflow, start to finish · all 20 workflows

    Part of: Digitise a scanned book

    Interleave before you split: a two-pass scan of spreads has to be in reading order before each spread is cut into two pages.

    1. 1 Interleave Two PDFs Zip the front pass and the back pass into one ordered file
    2. 2 Split PDF Pages in Half Cut each two-page spread into two single pages at the gutter
    3. 3 Auto-Crop PDF Margins Remove the black scanner border around every page
    4. 4 Remove Blank PDF Pages Drop the blank leaves between chapters
    5. 5 PDF Bookmark Editor Add a chapter outline so the sidebar is navigable
    6. 6 PDF OCR Make the text selectable and searchable

    This workflow, start to finish · all 20 workflows