>
Automatically detect and remove blank pages from any PDF document online for free with our Remove Blank Pages tool. Smart white pixel threshold detection scans canvas viewports and deletes empty pages directly inside client browser RAM.
Upload your PDF file to scan for empty or blank pages.
Set whitespace sensitivity thresholds to detect empty pages automatically.
Click Remove Blank Pages to strip empty page objects and download your clean PDF.
Evaluates RGB pixel values ($r, g, b > 240$) across rendered page viewports to detect empty pages reliably.
Deletes page indirect objects in descending index order, ensuring document structure integrity.
All canvas rendering and page deletion operations execute inside client browser memory. Zero files leave your device.
To evaluate whether a page is blank, PDF.js renders page viewports to offscreen HTML5 Canvas elements. Pixel array data (getImageData()) is scanned for RGB luminosity values ($r > 240 \land g > 240 \land b > 240$).
Pages whose white pixel ratio ($ ext{WhitePixels} / ext{TotalPixels}$) satisfies chosen sensitivity thresholds ($95\%, 97\%, 99\%$) are marked for deletion.
Blank page indirect objects are removed from the PDF catalog in descending index order (pdfDoc.removePage(idx)) to avoid shifting array indices, producing clean outputs entirely in browser memory.