How to Redact a Google Doc (Names, Emails, SSNs and Account Numbers)
Google Docs has no redact button. Drawing a black box over text or changing it to black highlight only hides it: the words are still there to copy, search or read aloud. To redact properly you have to replace the text itself. Here is how to do that for every name, email, phone number or ID number in a document, and what else to check before you share it.
Install FindSwap free Free Google Docs™ add-on by Tiny Lever
Steps
- Work on a copy. Go to File → Make a copy and redact the copy. The original keeps its version history, so anyone with access to it can still see the old text.
- Install FindSwap (button above) and open Extensions → FindSwap → Find & replace. The first time, click Allow on this document.
- Type a name or number in Find and
[REDACTED]in Replace with. Leave All tabs and Headers, footers, footnotes ticked so nothing is missed. - Click Find. Every match is listed with the words around it, so you can see exactly what will change. Untick any you want to keep.
- Click Replace selected, then repeat for the next name or pattern.
Patterns for common sensitive data
Tick Regex to find a whole kind of data at once. Always click Find and read the list before replacing.
| To find | Find (regex) |
|---|---|
| US Social Security numbers like 123-45-6789 | \d{3}-\d{2}-\d{4} |
| Email addresses | [\w.+-]+@[\w-]+\.[\w.]+ |
| US phone numbers like 555-123-4567 or (555) 123-4567 | \(?\d{3}\)?[ -]?\d{3}-\d{4} |
| Long account or card numbers (8 or more digits) | \d{8,} |
| Keep the last 4 digits of a 9-digit number | \d{5}(\d{4}) replaced with *****$1 |
Before you share
- Version history: share the redacted copy, never the original. For anything sensitive, send a PDF (File → Download → PDF) instead of edit access.
- Comments and suggestions: find and replace does not change comments or pending suggestions. Resolve or delete them in the copy.
- Images and drawings: text inside a picture of a scan is not searchable. Delete or replace those images.
- Read it once more. Patterns miss things like a name written as initials or a number with spaces.
Many names at once
With FindSwap Pro you can type a whole list on the List tab (one Jane Doe => [REDACTED] per line) and replace them all in one run, or run the same list on up to 25 other Docs.
Questions
Does highlighting text in black redact it?
No. The text is still in the document and can be copied, searched or read by a screen reader. Replace the text itself.
Is redacting with FindSwap free?
Yes. Find, preview, replace and regex are in the free plan with no limits. Pro adds replacing a whole list at once and running on other Docs.
Can someone see the original text in version history?
Yes, in the original document. Redact a copy (File → Make a copy starts with no history) and share that copy or a PDF of it.
Is this a legal redaction?
It removes the text from the copy you share, but courts and agencies have their own rules for redaction. Follow them for legal filings.