MASKPDF
GDPR

Redact a PDF for GDPR requests

Three articles of the GDPR end up in the same place: Article 5(1)(c) requires data minimisation, Article 17 gives the data subject a right to erasure, and Article 25 requires data protection by design and by default. None of them tells you how to edit a PDF. What they do is decide how much personal data a document may still carry when it changes hands — and redaction is the operation that enforces it.

The instrumentRegulation (EU) 2016/679 — General Data Protection Regulation

Last reviewed on 18 November 2026.

All the guides
The rule

What the rule actually requires

The Regulation is the instrument, and it applies from 25 May 2018. Four of its articles decide what happens to a PDF that holds personal data when the person it is about leaves your hands.

Article 5(1)(c) — data minimisation. Personal data must be adequate, relevant and limited to what is necessary in relation to the purposes for which they are processed. A record released with more personal data in it than the purpose requires has not been minimised, however carefully the release itself was logged.

Article 17(1) — right to erasure. The data subject shall have the right to obtain from the controller the erasure of personal data concerning him or her without undue delay. Article 17(3) sets out the grounds on which a controller may decline: expressing or publishing information, compliance with a legal obligation, public interest in the area of public health, archiving and research, and the establishment, exercise or defence of legal claims. A copy that still holds the data subject's name and identifiers after an erasure request has been answered with a redacted document has not answered it.

Article 4(1) — what counts in the first place. Personal data means any information relating to an identified or identifiable natural person. A redaction that removes the name but leaves the medical record number, the date of birth and the clinic address has removed a name, not a natural person.

Article 25 — data protection by design and by default. The controller has to implement appropriate technical and organisational measures designed to implement the data-protection principles effectively, and, by default, only the personal data necessary for each specific purpose is to be processed. Deciding that the document should be processed on the machine of the person who holds it, rather than on someone else's server, is a design choice made in the same direction.

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

The tool is the same on every one of these pages; what changes is the rule. Here is where it lands against Article 17 and Article 5, and where the work stays with the controller.

It removes the characters rather than covering them. The marked text is left out of the exported page's text layer and a black rectangle is drawn over the area. For an erasure response, the test is whether the data is gone from the copy the data subject receives, and text that is only hidden is still in the copy.

It processes the document locally, which is the Article 25 argument in practice. The file is parsed, rendered, read by OCR and written by the browser tab; no request carries it. There is no copy of the record on a third party's server, because there is no request that would put one there.

It rewrites the metadata of the 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 — so a redacted copy does not carry the identity of whoever produced it.

It does not decide whether an erasure request is valid, it does not decide which of Article 17(3)'s grounds applies, it does not reach the personal data held in systems other than the PDF, and it does not answer the request. A controller still has to locate the data, respond within the deadline, and record what it did.

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

Five checks, and the fifth is the one that decides whether the copy you are about to send satisfies Article 5(1)(c).

  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 personal data is still in the file you are about to send.

  2. 02

    Extract the text and search it

    Run a text extraction over the exported file — pdftotext exported.pdf - on a Mac or Linux, or your reader's own extraction — and search the output for the value you removed.

  3. 03

    Search for the combination, not just the field

    Search the extracted text for the data subject's name on its own, and then for the identifiers alongside it. Article 4(1) turns on identifiability: a copy that has dropped the name but kept the identifiers may still identify the person to anyone who holds the other half.

  4. 04

    Read the document properties

    Open the file's properties. The Author and Subject should be empty, the Title should be the original filename, and Creator and Producer should both read MaskPDF. The export should not carry the name of the person who assembled it.

  5. 05

    Re-OCR the exported page

    Run OCR over the exported page and read the result. The black rectangle is baked into the page's image layer, so an OCR pass reads a bar where the removed value was and reconstructs nothing.

Questions

Questions this comes up with

Does MaskPDF make me GDPR compliant?
No. It removes the characters you mark from the exported file's text layer. Whether a response satisfies Article 17, whether the data in a document is personal data at all under Article 4(1), and whether an exception in Article 17(3) applies are decisions for the controller, and they are decisions about the record rather than about the file.
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. Nothing remains to be selected, copied, searched or read back by 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 records 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.