PDF Guides

How to Clean Up a Scanned PDF: Borders, Specks, Holes and Grey Pages

Remove black scanner edges, dust specks and punch holes, whiten grey or yellowed paper and straighten pages in a scanned PDF while keeping its text.

Saizul Amin
Saizul Amin28 Oct 2026 · 3 min read
How to Clean Up a Scanned PDF: Borders, Specks, Holes and Grey Pages

How to Clean Up a Scanned PDF

Even good scanners produce messy pages. The lid does not quite cover an A4 sheet and leaves a black strip. Dust on the glass becomes a scatter of dots. Hole-punched paper shows two or four black circles down the side. Old or recycled paper comes out grey or yellow, and a page fed in at an angle sits crooked. None of this matters much for a quick look, but it makes documents look careless, wastes toner when printed and lowers the accuracy of text recognition. The free Scanned PDF Cleaner fixes these problems page by page in your browser.

What the cleaner does

Evens out the paper. The brightness of the paper is estimated in small areas across the page and divided out, so grey or yellow paper becomes white and soft shadows, such as the darker edge near a book's spine, are lifted. A strength slider lets you keep a little of the original tone if you prefer.

Removes black borders. Dark regions that touch the edge of the page and are large are filled with white. This removes the scanner lid's shadow and the dark background around a page that was smaller than the glass.

Removes specks. Tiny isolated dark dots are deleted. You set the largest size to remove, in pixels at the chosen resolution. Three pixels at 200 dpi removes dust without touching full stops; larger values clean dirtier scans but can start to remove dots from small text.

Removes punch holes. Round dark shapes between 4 and 9.5 millimetres across, near any edge, are filled with white. This covers the common two-hole and four-hole patterns and also holes at the top of a page.

Straightens pages. The tool tries angles up to six degrees each way and picks the one that lines up text rows most sharply, then rotates the page.

Choosing the output

  • Colour keeps coloured stamps, signatures and highlighting.
  • Greyscale is a good choice for letters, forms and most office paperwork.
  • Black and white gives the crispest print and the smallest files, often a tenth of the colour size, and is stored without lossy compression so text edges stay sharp.

Resolution matters too: 150 dpi is fine for reading on screen, 200 dpi is a good all-round setting, and 300 dpi is best when the cleaned file will be printed or run through OCR.

Step by step

  1. Load the scanned PDF, or several of them; each is cleaned separately.
  2. Pick a preset: Office letters, Old yellowed pages or Smallest file.
  3. Adjust any option, and enter a page range if only some pages need cleaning.
  4. Press Clean pages, then switch between Original and Result in the preview.
  5. Download the cleaned PDF. Save your settings as a preset if you will clean similar scans again.

What happens to searchable text

If your scan already went through OCR, it has an invisible text layer that lets you search and copy. The cleaner copies that layer onto the new page, so search keeps working. When a page is straightened, the text layer can sit slightly off the visible words; if exact selection matters, run OCR again on the cleaned file, which will also be more accurate now that the page is clean.

When not to use it

The cleaner turns each chosen page into a new image. That is right for scans, but a digital PDF made from a word processor would lose its sharp vector text, so leave such pages out of the range. Photographs and illustrated pages usually look better without whitening. And if your organisation keeps scans as records, store the original alongside the cleaned version: cleaning changes the image and is not a certified copy.

Quick troubleshooting

  • Text near the edge disappeared: turn off border removal for that file, or rescan with a margin.
  • Dots on i and j vanished: lower the speck size.
  • Page still looks grey: increase the whitening strength.
  • Page rotated the wrong way: turn off straightening for pages with mostly pictures or tables.
Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages