MASKPDF
HIPAA

Redact a PDF for HIPAA

The Privacy Rule lets a covered entity disclose health information without an authorization once the information has been de-identified. De-identification is an operation performed on a document, not a label attached to it, and the rule recognises two ways of doing it: remove a fixed list of identifiers, or show that the risk of re-identification is very small. This page is about the first route — taking identifiers out of a PDF so that what is left is the document you meant to release.

The instrument45 CFR § 164.514 — Other requirements relating to uses and disclosures of protected health information

Last reviewed on 18 November 2026.

All the guides
The rule

What the rule actually requires

45 CFR § 164.514 is the implementation specification that decides when health information stops being individually identifiable health information. A covered entity may make that determination in one of two ways, and only one of them is a list a document workflow can carry out.

The expert determination route, § 164.514(b)(1), is the statistical one. A person with appropriate knowledge of and experience with generally accepted statistical and scientific principles and methods applies those principles to the data, determines that the risk is very small that the information could be used, alone or in combination with other reasonably available information, by an anticipated recipient to identify an individual who is a subject of the information, and documents the methods and results of the analysis. No document tool substitutes for that determination, and none of them claims to.

The Safe Harbor route, § 164.514(b)(2), is the mechanical one. It requires that the identifiers of the individual — or of the individual's relatives, employers or household members — are removed, and it lists eighteen of them: (A) names; (B) all geographic subdivisions smaller than a State, including street address, city, county, precinct, zip code and their equivalent geocodes; (C) all elements of dates, except year, for dates directly related to an individual, and all ages over 89; (D) telephone numbers; (E) fax numbers; (F) electronic mail addresses; (G) Social Security numbers; (H) medical record numbers; (I) health plan beneficiary numbers; (J) account numbers; (K) certificate or licence numbers; (L) vehicle identifiers and serial numbers, including licence plate numbers; (M) device identifiers and serial numbers; (N) web Universal Resource Locators; (O) Internet Protocol address numbers; (P) biometric identifiers, including finger and voice prints; (Q) full face photographic images and any comparable images; and (R) any other unique identifying number, characteristic or code.

Safe Harbor has a second half as well. § 164.514(b)(2)(ii) requires that the covered entity does not have actual knowledge that the information could be used alone or in combination with other information to identify an individual who is a subject of the information. Removing the list is therefore necessary and not sufficient, and the second half is a judgement no pattern can make.

The legal character of the document changes when the work is done. Under § 164.514(a), health information that does not identify an individual and with respect to which there is no reasonable basis to believe the information can be used to identify an individual is not individually identifiable health information, and § 164.502(d) sets out the uses and disclosures a covered entity may make of what it has produced.

The regulations cited on this page are referenced for informational purposes only and do not constitute legal advice. MaskPDF is a document tool, not a compliance certification. Organizations with formal compliance obligations should consult counsel and validate their own release.

The tool

What MaskPDF does about it

MaskPDF is a document tool, not a compliance product. It does one thing — it removes the text you mark from the exported file's text layer — and it does it in your browser. The mapping below is between the rule above and the software, including the parts of the rule the software does not address.

It removes the characters rather than covering them. On export the marked text is left out of the exported file's text layer and a black rectangle is drawn over the area. A black rectangle on a page someone has already flattened is a picture of a redaction; a black rectangle in a text layer that no longer holds the characters is the redaction. That difference is the difference between § 164.514(b)(2)(i) being satisfied and merely appearing to be satisfied.

It flags many of the eighteen identifiers, but not all of them, and the gaps are the part worth reading. The auto-detect runs 29 patterns over the page's text layer. A name is a word rather than a shape, so there is no pattern for one; a medical record number looks like any other number, so there is no pattern for that either. What the scan does find is email addresses, ten national formats of telephone number, seven formats of date, IP addresses, Social Security numbers, card numbers, IBANs, and national identifier formats including the Spanish DNI and NIE, the French NIF and INSEE number, the German Steuer-ID, the Chinese national ID and the Brazilian CPF.

The auto-detect is a starting point, not a result. Every match becomes a mark you can keep, move or delete before you export, and nothing is redacted without you marking it. The condition in § 164.514(b)(2)(ii) — that the covered entity has no actual knowledge of re-identification — is not a pattern and cannot be detected by one; it is a judgement made by the covered entity about its own records.

It rewrites the metadata as well as the page. The exported file carries an empty Author and Subject, the original filename as Title, “MaskPDF” as Creator and Producer, and the current timestamp as Created and Modified, so a release does not announce in its properties who assembled it.

The rule’s identifiers, one by one

(A) Names
not flaggedA name is a word, not a shape. There is no pattern for one, and any name on the page needs to be marked by hand.
(B) Geographic subdivisions smaller than a State
not flaggedStreet addresses, cities, counties and precincts are read, not matched.
(C) Dates directly related to an individual, and ages over 89
partly flaggedSeven date patterns cover the common written and numeric formats. The year-only rule and the age-over-89 rule are not detected.
(D) Telephone numbers
flaggedTen patterns, covering national and international formats.
(E) Fax numbers
flaggedA fax number is the same shape as a telephone number, so the phone patterns catch it.
(F) Electronic mail addresses
flaggedOne pattern, written to match the whole address rather than part of it.
(G) Social Security numbers
flaggedOne pattern.
(H) Medical record numbers
not flaggedAn MRN is a number like any other; there is no pattern for it.
(I) Health plan beneficiary numbers
not flaggedNo pattern.
(J) Account numbers
partly flaggedCard numbers and IBANs are matched. Other account numbers are not.
(K) Certificate or licence numbers
not flaggedNo pattern.
(L) Vehicle identifiers and serial numbers
not flaggedLicence plate numbers and vehicle serial numbers are not matched.
(M) Device identifiers and serial numbers
not flaggedNo pattern.
(N) Web Universal Resource Locators
not flaggedNo URL pattern. A link in a record has to be marked by hand.
(O) Internet Protocol address numbers
flaggedOne pattern.
(P) Biometric identifiers
not flaggedFinger and voice prints are not text.
(Q) Full face photographic images
not flaggedA photograph is not text, and the tool marks areas of a page rather than objects within it.
(R) Any other unique identifying number, characteristic or code
not flaggedThis one is the whole of the catch-all, and it cannot be pattern-matched in general.

The work stays in your browser

pdf.js parses and renders the file, Tesseract.js reads the text off scanned pages, and pdf-lib writes the export — all three run in the tab. The document you open, the text on its pages, your marks and the file you export never leave your machine.

The characters are removed, not covered

On export the marked text is left out of the exported file's text layer and a black rectangle is drawn over the area. What was removed is not there to be selected, copied, searched, or read back by an OCR pass.

29 patterns to start from

Auto-detect flags email addresses, phone numbers in ten national formats, dates, IP addresses, Social Security numbers, card numbers, IBANs and a set of national identifier formats. Every match is a mark you keep or delete — the scan proposes, you decide.

The metadata is rewritten on export

Author and Subject are left empty, the original filename becomes the Title, “MaskPDF” becomes the Creator and Producer, and Created and Modified carry the current timestamp. The author and software signatures of the original file are not carried into the export.

Batch, undo, and hand-off

Process a folder and get one ZIP of redacted files. Every mark can be moved, resized and undone, so a mistake does not mean starting the document again. A link can be copied that restores your marks when the same PDF is loaded.

Five OCR languages

English is included on the free tier. Spanish, French, German and Simplified Chinese need a Single token or a Pro subscription. The OCR engine and its language packs are served from this site rather than from a third party.

Free up to 5 pages

The free tier opens a file of up to 5 pages. A Single token is $3 once and covers one file of any length. Pro is $9 a month and covers 30 documents over 5 pages a month.

The check

How to check it yourself

The point of a claim like this is that you can falsify it. Six checks, each of which takes under a minute, and each of which shows you a different thing if the redaction did not hold.

  1. 01

    Select across the redacted area

    Open the exported PDF, drag a selection across the black rectangle, and copy it. Nothing comes out. If characters come out, the text was covered rather than removed, and § 164.514(b)(2) has not been satisfied.

  2. 02

    Copy the page and read the text

    Select the whole page, copy it, and paste it into a plain text editor. Search the pasted text for the identifier you removed. It is not there, and neither is the name you removed with it.

  3. 03

    Extract the text from the file

    Run a text extraction over the exported file — on a Mac or Linux, pdftotext exported.pdf - prints it to the terminal, and any PDF reader can do the same — and search the output for the removed value. The marked page is rebuilt as an image with an invisible text layer over the parts that were kept, so what is left in that layer is exactly what you did not mark.

  4. 04

    Read the document properties

    Open the file's properties and look at Author, Subject, Title, Creator, Producer, Created and Modified. The Author and Subject should be empty, the Title should be the original filename, and Creator and Producer should both read MaskPDF.

  5. 05

    Re-OCR the exported page

    Run OCR over the exported page and read what comes back. The black rectangle is baked into the page's image layer, so an OCR pass reads a bar where the identifier was and reconstructs nothing. A redaction that only covered the text would be read straight back.

  6. 06

    Search the raw bytes

    Open the exported file in a hex editor and search the whole file for the removed string, in plain text and in its compressed form. It is not in the file. This is the strongest of the six checks and the one a reviewer is most likely to run.

Questions

Questions this comes up with

Does MaskPDF make my document HIPAA compliant?
No, and no document tool can. MaskPDF removes the characters you mark from the exported file's text layer. Whether the result is de-identified under § 164.514 is a determination the covered entity makes and documents, and the actual-knowledge condition in § 164.514(b)(2)(ii) is a judgement about your records that no pattern can make. The tool is a way of doing the mechanical part accurately.
Does redaction remove the text or cover it?
Remove it. The marked characters are left out of the exported page's text layer, and a black rectangle is drawn over the area they occupied. There is nothing underneath for a reader to select, copy, search or OCR.
Can I redact a scanned PDF?
Yes. Run OCR on the page first and the text is detected for you to mark; the redaction itself is the same operation on every page. English OCR is included on the free tier, and Spanish, French, German and Simplified Chinese need a Single token or a Pro subscription.
Do I need an account?
To open your own PDF, yes — a free one, and there is no payment and no card. The sample document opens for anyone, and the whole editor works on it: rendering, detection, OCR, marking and export. A Pro subscription needs an account, because the plan lives on it; a Single token does not, because it is kept in your browser's own storage.
Does MaskPDF upload the file?
No. The document, the text on its pages, your marks and the exported file are processed in your browser tab and never sent anywhere. The site does record which buttons get clicked and the rough size of a file, so the tool can be seen being used, but no request carries your document.

Redact the file, then check it

Open a PDF, mark what has to go, and export a copy in which the marked characters are not in the file’s text layer at all. The file stays in your browser the whole way.