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.
In this guide
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.
How to Remove Account Numbers Permanently
- Open the PDF in the LanaPDF editor at lana-pdf.com. Processing happens locally -- the file never leaves your device.
- Use the Redaction tool, not the shape tools. Cover each account number, routing number, and any other digits you want gone.
- 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.
- 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.
- Export the clean file. What you see is now all that exists.
Verify the Number Is Really Gone
Run this check on the exported file, not the editor preview:
- Press Ctrl+F / Cmd+F and type the last four digits of the account number. If the finder finds nothing, the text is gone.
- Select all and copy into a text editor. No number should appear.
- 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.
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.
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.
Redact a PDF for Free