Remove personal information from a PDF

See the personal details in your PDF, choose which to delete, and get a copy that is read again before you are told it is clean.

or drop it here · it never leaves your device

Processed in your browser. Your files are never uploaded. Check it yourself

How to remove personal information from a PDF

Contracts, payslips, bank statements, medical letters and CVs all carry details that belong to a person: an email address, a phone number, a card number, a National Insurance number. Before you email the file to someone new, post it to a forum or paste its contents into an AI assistant, you may want those details gone.

This tool does the finding for you and leaves every decision with you. It reads the text in the PDF on your own device, shows what looks personal, lets you untick anything that is not, and then deletes the rest from the file. When it has finished it opens the new file and looks for each removed item again. The words safe to share appear only if that second look finds nothing. It cannot read pictures, so it also tells you what it could not check.

  1. 1

    Open the PDF and wait for the list

    Press Choose a PDF to clean or drop the file onto the panel. A short progress bar runs while the text of every page is read on your device. A password-protected file asks for its password first, is unlocked in memory only, and the copy you download carries no password.

    When the reading ends, the panel shows a list headed What we found. Each kind of detail has its own heading, each distinct value sits on its own line with a tick box, and a count says how many times that exact value appears in the document.

  2. 2

    Go through the list and correct it

    Every item starts ticked. Read the values. An eight-digit number that is really a part number, or a postcode that belongs to a business you are happy to name, can be unticked and will be left alone. Untick all and Tick all sit in the side panel for the times when you want to start from nothing.

    The detectors have no idea who a person is, so names and street addresses never appear in the list by themselves. Type one into Add a name, address or other word and press Add to the list. It appears under Words you added with a count. The match ignores capital letters, so Jane Smith also finds JANE SMITH.

  3. 3

    Choose whether to sweep the hidden parts

    One tick box in the side panel is on by default: Also remove attachments, comments, hidden layers and scripts. A comment in the margin or a spreadsheet attached to the PDF can repeat the same details as the page, and the list does not read them. Leave it ticked unless you need a comment or an attachment to stay.

    The document properties (author, title, subject, keywords and any custom properties) are always cleared, because they are a common place for a name to be stored. Links are not touched.

  4. 4

    Press Remove and read the verdict

    The button shows how many items it will remove. While it works, the engine finds each ticked value on every page and deletes it, then the chosen sweep runs, and then the finished file is read again here and each removed value is looked for in it.

    You then see one of three outcomes. Everything found was removed: checked on the new file means the engine confirmed the removal, the re-read found nothing, the properties are clear, and you left no detected item unticked. The items you chose are gone means the same but you kept something the tool had detected, so the page does not call the file safe. Not safe to share yet means the check found something, and no download is offered.

  5. 5

    Look at the download yourself

    Open the cleaned file and scroll through it. Where text was deleted you will see black boxes. Search it with your PDF reader’s find box for a name or a number. Then look at anything that is a picture, because this tool does not read pictures. The next sections explain exactly what is and is not covered.

Remove personal info features

  • Reads the file’s text on your device and lists every personal detail it recognises, grouped by kind
  • Finds email addresses, phone numbers, card numbers, IBANs, UK National Insurance numbers, US Social Security numbers, sort codes, labelled account numbers, UK postcodes and labelled dates of birth
  • Each item has its own tick box, so a false match never has to be removed
  • Add names, street addresses or any other words of your own, in any letter case
  • Deletes the chosen text from the page and clears the author, title, subject and keywords
  • Can also remove attachments, comments, hidden layers and scripts that might repeat the same details
  • Reads the finished file again and confirms the removal only if every chosen item is gone
  • Tells you plainly when a file is a scan with no text to check, and points to OCR

What happens to your PDF while it is cleaned

The PDF is opened in this browser tab. A script running on your device pulls out the text of each page and runs the pattern checks. The list you see is built from that text and exists only on your screen.

When you press Remove, the engine searches every page for each ticked string, deletes those characters from the page content, and puts a black box where they were. It then clears the document properties. If the option is ticked, it also removes attachments, comments, hidden layers and scripts. Last, the finished file is read once more here, and each removed item is searched for in the result.

  • Text only. Pictures, scans and handwriting are not read, so they are not searched and not changed.
  • Your original is not touched. You download a new file with a different name.
  • No account, no upload. Nothing you open or type, including the words you add, is sent to a server.
Worked example

Preparing a rental reference letter to share online

Take an invented two-page reference letter. The scan finds a landlord email and a mobile number that each appear twice, a payment card number quoted in a direct debit paragraph, one National Insurance number, a sort code with its account number, and two postcodes. An eight-digit order number in the footer is correctly left alone, because account numbers are only picked up when they sit next to a label such as Account number. Anything the patterns get wrong, you can fix with the tick boxes.

You type the tenant’s full name into the box and it joins the list with its count. You press Remove. The result page reports how many items were deleted, that the document properties were cleared, and that a re-read of the new file found none of them. Because you left every detected item ticked, the page calls the file safe to share, then reminds you that the tenant’s signature image at the bottom of page two was not examined. You cover that one with Redact PDF.

Good to know

  • Read the list before you press Remove. A pattern can be fooled, so untick anything that is not really personal.
  • Add the names of people and companies yourself. A name has no pattern, so this tool only removes the ones you type.
  • If a PDF is a scan or a photo of a page, run OCR PDF first, then come back, so there is text to check.
  • Look at the downloaded file before you send it. Open it, scroll through it, and try the search box of your PDF reader for a name.
  • Keep the original file. Text deleted from the cleaned copy cannot be brought back, so do not save over the source.

When removing personal details from a PDF is worth doing

Sending a document to someone who does not need the personal parts

A tenancy agreement shared with a new flatmate, a CV posted with an application, a bank statement sent to a mortgage broker who only needs the totals, a letter from a clinic attached to a complaint. In each, a few strings do the identifying, and removing them is cheaper than rewriting the document.

Publishing a sample

Support questions on a forum, a template on a blog, a worked example in a report. People often paste a real document with the obvious bits blanked and forget the footer. A list of everything that looks personal catches the footer.

Clearing a file before an AI assistant reads it

If you plan to paste a PDF’s contents into a chatbot or attach it to one, clean it first. This page makes no claim about what any assistant does with what you give it; check the settings and terms of the service you use. What it can do is make sure the file you hand over no longer contains the details you chose to remove. Names are the thing to watch: add them yourself, because nothing here can tell a surname from a street.

When another tool is the better start

If you want to hide one particular box on one page, use Redact PDF. If you only want to strip the author and other hidden properties, use Remove metadata. This tool is for the search-and-remove job across a whole document.

What the tool looks for, kind by kind

Each rule is written to avoid flagging ordinary numbers. The table states the rule as the code applies it.

KindWhat counts as a match
Email addressesAnything shaped like name, an at sign, a domain and an ending of two or more letters.
Phone numbersInternational numbers starting with a plus sign, UK numbers starting with 0, and US numbers with three-digit area codes, with 10 to 15 digits in all. Numbers that sit inside a longer word or a longer run of digits are skipped.
Payment card numbers13 to 19 digits, written plainly or in groups separated by single spaces or hyphens, that also pass the card checksum. A 16-digit number that fails the checksum is ignored.
IBANsTwo letters, two digits and the rest of the account code, that pass the IBAN check calculation.
UK National Insurance numbersTwo letters, six digits and a final letter A to D, with or without spaces. Prefixes that are never issued are skipped.
US Social Security numbersThree, two and four digits, separated the same way by hyphens or spaces. Area numbers 000, 666 and those starting with 9 are skipped, as are group 00 and serial 0000.
UK sort codesSix digits written as three pairs, when they follow the words sort code, or sit directly before an eight-digit number.
Account numbersSix to twelve digits, only when they follow a label such as account, account number, acct or a/c.
UK postcodesThe usual outward and inward shape in capital letters.
Dates of birthA date, only when it follows date of birth, DOB or born. A date on its own is never taken for a birthday.
Words you addedExactly what you typed, in any letter case, across all pages.

Where two rules claim the same characters, the more specific one wins, so a card number is not also listed as a phone number.

What this tool cannot find or remove

This is the part to read before you rely on a cleaned file.

  • Anything inside a picture. The tool reads the text layer. A name in a photograph, a signature drawn as an image, a screenshot pasted into the document, or a scanned page is not read, not found, and not removed. A scan with no text at all gets a plain message and a link to OCR PDF, which makes the words searchable so they can be checked here afterwards.
  • Text drawn as shapes. Some documents convert lettering to outlines. It looks like text but is not stored as text, so it is not found.
  • Typed form answers. Values in form fields are stored apart from the page text. If the PDF has form fields, the tool warns you and suggests Flatten PDF first.
  • Names and addresses you did not add. There is no list of names inside the tool, by design.
  • Details split across lines. A phone number broken over two lines may not be matched as one item.
  • The file’s own name. The download is named after the original with a suffix, so if the original is called after a person, rename it.
  • Digital signatures. The file is rewritten, so a signature on the original does not validate on the copy. The tool shows a notice when it sees one.

How the check on the new file works

Three separate things must agree before those words appear.

  1. The engine’s own verification. After it deletes the text, the engine reads its output and counts any ticked value it can still find, and any character left inside the cleared areas. If the count is not zero, it refuses to produce a file at all, and you see an error that nothing was changed.
  2. A second read, here. The final file, after any sweep of attachments and comments, has its text extracted again by this page. Each removed value is searched for ignoring capital letters and line breaks. Long numbers such as card numbers are also compared with spaces and hyphens taken out, so reflowing a number cannot hide it.
  3. The document properties. The finished file’s title, author, subject, keywords, custom properties and metadata packet are inspected. Any that remain make the verdict not safe.

One more rule keeps the wording honest: if you unticked something the tool had detected, the result says the items you chose are gone, and stops short of calling the file safe, because you left detected details in it on purpose.

When the second read finds a removed value, the page lists what remains with the middle hidden, offers no download, and sends you back to the list. A check can only look for the exact values it knows about, which is why the section above still applies.

Where your PDF and your typed words go

Nowhere. The reading, the removal and the second read all run in your browser, using a PDF engine written in Rust and compiled to run inside the page. The names, numbers and addresses shown in the list are drawn on your screen from data held in the page’s memory, and the words you add are used for the search and then forgotten when you leave. The page does not send events about the file, its contents or what you ticked.

You can watch for yourself: open your browser’s network panel, drop in a file, and confirm that no request carries it. The page Check it yourself walks through that, including an offline test.

Choosing between this tool and its neighbours

You want toUse
Find and delete every email, number and name across the whole documentThis tool
Black out one signature, face or box you can point atRedact PDF, draw tab
Search for one specific word and remove each occurrenceRedact PDF, find tab
Strip only the author, dates, attachments and scriptsRemove metadata
Make a scan searchable so it can be checkedOCR PDF
Turn typed form answers into page textFlatten PDF
Add a password to the cleaned fileProtect PDF

Remove personal info: troubleshooting

There is no text in this file to check
The PDF holds pictures of pages, not text. Run it through OCR PDF to add a text layer, then open the result here. Details that are part of a photograph still need Redact PDF.
Nothing matched the kinds of detail this tool recognises
The document may hold only names and addresses, which have no pattern. Type them into the box. If you expected a number to be found, check that it follows a label such as Account number, since bare numbers are ignored on purpose.
A word I added shows under “Not found in the text”
Check the spelling and spacing. The match works across line breaks within the page text, but it will not find a word spelled differently in the document, or one that sits in a picture.
We could not find those details in the file’s text layer
The list was made from the text we read, but the engine could not match every item when removing it, often because a value is broken across lines. Nothing was changed. Untick the item that is causing it, or use Redact PDF to draw a box over it.
Not safe to share yet
The re-read of the new file found a removed value again, or document properties remain. The page lists which kind. Add the value in the exact form it appears on the page, or deal with it in Redact PDF, then run the check again.
The page says this PDF has form fields
Typed-in answers are not part of the page text this tool reads. Flatten the form first with Flatten PDF, then open the flattened file here.
This PDF needs a password
Enter the password when asked. The cleaned copy is saved without it. Add a new one afterwards with Protect PDF.

Glossary

Text layer
The words stored in a PDF as text, as opposed to a picture of words. Only the text layer can be searched or selected, and only it is read here.
Checksum
A calculation built into card numbers and IBANs so that most typing mistakes can be caught. The tool uses it to tell a real card number from a long number that merely looks like one.
Redaction
Deleting content from a file so it cannot be recovered, as opposed to covering it with a shape that can be moved aside.
Metadata
Information a file keeps about itself, such as author, title, subject and keywords, separate from what is printed on the pages.
Sort code
The six-digit number, written as three pairs, that identifies a UK bank branch. It appears beside an account number.
Flattening
Turning form answers and notes into ordinary page content so that a tool reading the page can see them.

Removing personal information from a PDF: frequently asked questions

How do I remove personal information from a PDF?

Open it in this tool, look through the list of details it finds, untick anything that is not personal, add any names or addresses you want removed, and press Remove. The text is deleted from a new copy, which is read again before you can download it.

Does it find names?

Not by itself. A name has no pattern a program can rely on, so you add the names and street addresses you want removed in the box on the right. Capital letters do not matter.

Which details does it detect automatically?

Email addresses, phone numbers, payment card numbers, IBANs, UK National Insurance numbers, US Social Security numbers, UK sort codes, account numbers that follow a label, UK postcodes, and dates that follow a birth label. The section above gives the exact rule for each.

What if it flags something that is not personal?

Untick it. Every value has its own tick box, and nothing is removed until you press the button. The result page also warns you if you kept anything it had detected.

Can I use it before I put a PDF into ChatGPT or another AI assistant?

Yes, that is one of the reasons it exists. It removes the details you choose from a copy of the file. It says nothing about what any assistant does with what you give it, so read that service’s own terms and settings, and add names yourself because the tool cannot guess them.

Does it work on scanned PDFs?

Not directly. A scan is a picture, and the tool reads text. It tells you so and links to OCR PDF, which adds a text layer. Personal details that are part of a photograph or a signature image still need to be covered by hand.

How do I know the details are really gone?

After removal, the engine re-reads its own output, and then this page reads the final file again and searches for each removed value. Only if both find nothing, and the author and other properties are clear, does the page call the file safe to share.

Why does it sometimes say the file is not safe and give no download?

Because the re-read found a removed value again or some document properties remain. Handing you that file with a clean-looking result would be the worse outcome, so it shows what is left and returns you to the list.

Does it remove the author and other hidden information?

It always clears the title, author, subject, keywords and custom properties. With the sweep box ticked, which it is by default, it also removes attachments, comments, hidden layers and scripts. Links are left in place.

Is my PDF uploaded anywhere?

No. The file is read and rewritten in your browser, and the words you add are not sent anywhere. You can confirm it in your browser’s network panel, or with the offline test on the verification page.

Will it break a digital signature?

Yes. The file is rewritten, so a signature on the original is not valid on the copy. Keep the signed original for anywhere that needs the signature.

Can I undo it?

Your original file is not changed, so keep it. The cleaned copy has the text deleted and a black box in its place, and the deleted text cannot be recovered from it.

Page updated · By the PDFMagpie team