BlogAugust 16, 2026

How to Remove Account Numbers from a PDF (Permanently)

Sharing a bank statement, invoice, or contract often means one thing first: getting the account number off the page. The most common attempt -- a white or black box drawn over the digits -- does not work. The numbers remain in the file's hidden text layer, recoverable by anyone who copies, searches, or prints the document.

Removing an account number from a PDF permanently requires two steps: delete the text from the file (not cover it), and flatten the document so no hidden layer can survive. Here is how to do both, in your browser, without uploading the file anywhere.

Free, in your browser. No upload, no account.
In this guide
The trap

Why White Boxes Don't Remove Anything

A PDF stores text as characters, not pixels. When you draw a rectangle over an account number, the editor adds a shape on top of the page -- the characters themselves are untouched. That means:

  • Copy and paste still selects the number.
  • Ctrl+F / Cmd+F still finds it.
  • Printing can render the text underneath the box.
  • Anyone with an editor can remove the box and read what is below.

This is the exact mechanism behind redacted text that is still visible in PDFs -- and why "redact with a rectangle" advice you find online is unsafe for financial documents.

Step by step

How to Remove Account Numbers Permanently

  1. Open the PDF in the LanaPDF editor at lana-pdf.com. Processing happens locally -- the file never leaves your device.
  2. Use the Redaction tool, not the shape tools. Cover each account number, routing number, and any other digits you want gone.
  3. Save the file. LanaPDF deletes the covered text from the file itself. The numbers no longer exist as data -- there is nothing left to recover.
  4. Flatten the pages. Use the repair tool's Deep mode to render every page as an image. This strips any residual hidden layer, including invisible OCR text or old edit history.
  5. Export the clean file. What you see is now all that exists.
Check it

Verify the Number Is Really Gone

Run this check on the exported file, not the editor preview:

  1. Press Ctrl+F / Cmd+F and type the last four digits of the account number. If the finder finds nothing, the text is gone.
  2. Select all and copy into a text editor. No number should appear.
  3. Print preview at 100% -- nothing should bleed through the redacted areas.

The same verification applies to bank statement redaction -- that guide walks through the exact workflow for financial documents.

Scans

Scanned Documents and Hidden OCR Layers

Scanned PDFs are tricky: the visible content is an image, but many scans also carry an invisible OCR text layer underneath -- which means an account number can be "covered" visually yet still searchable and copyable. If you are working with a scan:

  • Run OCR first so the text layer is explicit, then redact it properly.
  • Or flatten the page directly with Deep Repair, which removes the hidden layer entirely.

Then verify with the search test above. For the bigger picture on protecting statements, see how to share bank statements securely.

Answers

FAQ

How do I remove an account number from a PDF?

Use a PDF editor with a true redaction tool, such as LanaPDF: cover the number, and on save the text is deleted from the file itself, not just hidden under a box.

Does a white box remove text from a PDF?

No. A white or black box is an annotation that sits on top of the text. The digits remain in the file's text layer and can be copied, searched, or printed out later.

Can account numbers be recovered after redaction?

Not if the redaction removed the text from the file. If you only covered the number with a box, it is fully recoverable: copy and paste or a search brings it back.

How do I remove account numbers from a scanned PDF?

Cover the number with the redaction tool and save; on a scan the box is burned into the image. If the scan carries an invisible text layer, as many scanner apps add, the covered words must be removed from that layer too; LanaPDF does this when it saves.

Bottom line

Conclusion

Removing an account number from a PDF is only permanent when the text is deleted from the file and the page is flattened. Boxes cover; redaction removes. Do it locally, verify it, and the number is gone for good.

Remove account numbers for real

True redaction plus flattening, all in your browser. No uploads.

Edit and export for free. Free exports carry a small LanaPDF footer watermark.