How to Black Out a Social Security Number in a PDF

Updated 2026-10-19 · 6 min read · by Gold PDF

To black out a Social Security number in a PDF, you must delete the digits from the file, not just cover them, because a black box drawn on top leaves the number readable to anyone who copies the text. In Gold PDF, press R for the Redact tool, drag over every copy of the number, and save: each redacted page is rebuilt without the original digits.

Quick steps

  1. Open the PDF in Gold PDF and use Save as first, so you keep a private unredacted copy.
  2. Press Ctrl+F and search for the full number, then the last four digits, then the number written without dashes.
  3. If the file is a scan, press Ctrl+Shift+O to recognize text first, then search again.
  4. Press R and drag a redaction box over each occurrence you found.
  5. Press Ctrl+S to save. Gold PDF rebuilds every page that has a redaction.
  6. Reopen the saved file, search for the number again, and try to copy the blacked-out area. Nothing should come back.

Why a Social Security number needs real redaction

A Social Security number is one of the most useful pieces of information a fraudster can get, because it ties a name to credit files, tax records and benefits. That is exactly why a "visual only" black box is dangerous. A PDF stores the text of a page separately from anything drawn on top of it. A highlighter set to black, a filled rectangle or a sticky shape changes what you see on screen but leaves the digits in the text layer. Anyone who receives the file can press Ctrl+A and paste the page into a text editor, or simply delete the rectangle, and the number is back.

Real redaction works the other way around. It removes the characters, and any image pixels under the box, from the saved file. Gold PDF does this by rebuilding each page that contains a redaction as a high-resolution image with the black bars burned in, then adding the remaining words back as an invisible text layer so the page stays searchable. The digits you covered are not in that text layer, because they were removed before it was written. For the general method, see how to redact a PDF so it cannot be undone.

Where Social Security numbers hide in a PDF

The number you can see on page one is rarely the only copy. Before you redact, go through this list:

PlaceWhy it is missedHow to check
Body text on several pagesLong forms repeat the number on each pageCtrl+F for the full number and for the last four digits
Number written without dashesA search for 123-45-6789 does not match 123456789Search both formats, and with spaces
Headers and footersPrinted tiny on every page by payroll or tax softwareZoom in on page edges
Form fieldsA filled field may store the value even if it is styled smallClick each field; redact or clear the value
Scanned pagesAn image has no searchable textRun OCR (Ctrl+Shift+O) and search again
Barcodes and machine-readable linesSome forms encode identifiers in a code stripCover the whole code if it may contain the number
Document title, author and commentsMetadata is not shown on the pageCheck file properties after saving

Searching for the last four digits alone is the single most useful habit here. It catches partial references, such as "SSN ending 6789," that a full-number search misses.

Full number or last four digits?

Before you black anything out, decide how much of the number the recipient actually needs. Common situations look like this:

If you are keeping the last four, draw the redaction box over only the first five digits and the dashes between them. Zoom to 200% or more so the box edge does not clip or reveal part of a neighboring digit. The visible "XXX-XX-" style is not added automatically; the redacted area simply shows as a solid black bar, which is clear enough for most readers.

Blacking out a number on a scanned form

Tax forms, benefit letters and old HR records are often scans. A scan is a picture of the page, so Ctrl+F finds nothing at first. Press Ctrl+Shift+O to recognize text (English and Hebrew are bundled), then search for the number. OCR can misread digits on faint or skewed scans, so also look over the page with your eyes and search for a few likely misreads, such as a 5 read as an S. Then redact as usual. Because Gold PDF rebuilds the page on save, the pixels under the black bar are replaced, not hidden. For a short overview of the tool, see Redact a PDF.

How to confirm the number is really gone

Never trust what the screen shows. After saving, close the file, reopen it, and run three tests:

  1. Search. Press Ctrl+F and search for the full number, the last four digits and the dash-free version. You should get no results inside the redacted areas.
  2. Copy. Drag across the black bar, copy, and paste into Notepad. You should get nothing, or only the words around it.
  3. Properties. Check the document's title and author fields. Gold PDF clears these on a redaction save, but it is worth a glance if the file came from someone else.

For a longer checklist, read how to check if a PDF redaction is secure, and for the hidden fields see how to remove metadata from a PDF before sharing.

What Gold PDF does and does not do

Gold PDF is a free, offline PDF editor for Windows. Its Redact tool (shortcut R) removes the content under each box when you save, by rebuilding only the pages that contain redactions; untouched pages, including live form fields, stay as they were. It can recognize text on scans (Ctrl+Shift+O) so you can search them, and the file never leaves your computer. It does not automatically detect Social Security numbers or other personal data for you, so finding each occurrence is up to you, using search and a careful read of every page. It is not available for Mac, Linux or phones. If you need a broader look at your options, see the best free PDF redaction tool for Windows.

A short routine to reuse

If you black out Social Security numbers often, for example in HR, payroll or legal work, turn the steps above into a habit: Save as, search three formats, OCR any scans, redact, save, reopen, test. It takes a couple of minutes per document and removes the most common way these numbers leak, which is a black box that only looked like redaction.

Frequently asked questions

Can I just draw a black rectangle over a Social Security number?

No. A drawn rectangle sits on top of the digits, which stay in the file and can be copied, searched or revealed by deleting the shape. Use a real redaction tool that removes the text underneath.

Should I black out the whole number or leave the last four digits?

It depends on who asked for the document. Many forms and courts accept the last four digits, but if no one needs any part of the number, remove all nine digits.

How do I find every place the number appears?

Search the PDF for the full number, then for the last four digits alone, and for the number without dashes. Also check headers, footers, attachments, form fields and scanned pages, which are not searchable until you run OCR.

Does blacking out a number on a scanned PDF work the same way?

Yes, if the tool rebuilds the page. A scan is an image, so the redaction must replace the pixels, not just cover them. Run OCR first so you can search for the number.

Gold PDF — the free PDF editor for Windows

Edit text, redact for real, OCR scans, fill forms, sign and protect. Offline, no account, no watermark.

Download free