BASALT · JOURNAL

How to redact barcodes and QR codes in a PDF

2026-09-21 · redact barcode qr code pdf

Machine-readable marks are easy to overlook because reviewers cannot tell by sight what they contain. A barcode can encode an account number, URL, case ID, shipping address, or the same identity data printed elsewhere on the page.

Treat every code as data-bearing

Inventory 1-D barcodes, QR codes, PDF417 blocks, data-matrix codes, and machine-readable zones. Decide whether each may remain based on what it resolves to or encodes, not on its visual size.

If practical, scan the source code in a controlled offline environment and record only the classification needed for review. Do not paste sensitive payloads into a general-purpose online decoder.

Redact the complete symbol

Most codes are part of a page image. A rectangle drawn on top leaves the original pixels extractable. Destroy the full symbol area and re-encode the image. Include the quiet zone around a barcode; partial damage may still leave enough redundancy for a scanner to recover the payload.

Some PDFs draw barcodes as vector rectangles rather than image pixels. In that case, all intersecting paths must be removed. Check for OCR or printed human-readable digits beneath the symbol and redact those separately when required.

Test the released artifact

Render and scan the final PDF at several normal zoom levels, and extract the underlying images for a second test. Confirm that the code cannot be reconstructed from an old thumbnail, hidden layer, attachment, or prior revision. Verification should also ensure that adjacent labels or amounts meant to remain were not destroyed.

Frequently asked questions

Is covering the middle of a QR code enough?

No. QR error correction may recover a partly obscured symbol, and the intact source pixels can remain in the PDF. Remove the entire code and quiet zone destructively.

Can a barcode be made from vector paths?

Yes. Some generators draw individual bars as rectangles. A redaction tool must remove those drawing objects rather than only editing images.

Should I use an online QR decoder?

Not for sensitive material unless the service is approved. Decoding uploads or transmits the value you are trying to protect.

Doing it in Basalt

Basalt removes intersecting image pixels and vector paths, clears OCR text beneath the mark, strips thumbnails and hidden layers, and verifies the finished file. The decoding and redaction workflow can remain entirely on the Mac. Download Basalt.

Redaction that proves itself

Basalt destroys the content you mark, then re-opens the file it wrote and proves the content is gone before it saves anything. Your documents never leave your Mac.

DOWNLOAD BASALT 2.3.0 BUY $29 FREE FOR 24 HOURS · MACOS 13+