Skip to contentRedact PII for your data. Get a quote

GDPR

PII redaction and the GDPR

What the GDPR says about pseudonymised and anonymous data, which of its articles redaction helps with, and where OpenAnonymizer fits. A plain summary for engineers, not legal advice.

Pseudonymised data is still personal data

The GDPR draws one line that matters most for redaction: data that can still be linked to a person is in scope; truly anonymous data is not.

Art. 4(1)

Personal data is any information about an identified or identifiable person. A person is identifiable if they can be identified directly or indirectly, for example by a name, an ID number, location data or an online identifier.

Art. 4(5)

Pseudonymisation is processing personal data so that it can no longer be attributed to a specific person without additional information. That additional information has to be kept separately, under technical and organisational measures that stop the data being attributed to a person.

Recital 26

Pseudonymised data that could be attributed to a person using additional information counts as information about an identifiable person. Whether someone is identifiable depends on all the means reasonably likely to be used, by the controller or anyone else, such as singling them out, taking into account cost, time and the technology available. The GDPR does not apply to anonymous information, where the person is not or no longer identifiable.

  • Pseudonymised

    Identifiers are replaced, but the link back exists somewhere: a mapping, a key, or other data that singles the person out. Still personal data, and the GDPR still applies.

  • Anonymous

    No one can identify the person by any means reasonably likely to be used. Outside the GDPR. This depends on the whole dataset and what it could be linked with, not on one tool.

Data minimisation

Art. 5(1)(c)

Personal data must be adequate, relevant and limited to what is necessary for the purposes it is processed for.

Most steps in a pipeline need the shape of a text, not the identifiers in it. A support summary, a chatbot answer or a training example rarely needs the actual card number, email or national ID. Redacting before the data reaches that step keeps only what the step needs.

Data protection by design

Art. 25(1)

Both when deciding how to process data and while processing it, the controller has to put in place appropriate technical and organisational measures, such as pseudonymisation, designed to apply the data protection principles, such as data minimisation, effectively. What is appropriate depends on the state of the art, the cost, the nature, scope, context and purposes of the processing, and the risks to people.

Art. 25(2)

By default, only the personal data necessary for each specific purpose should be processed. That covers how much is collected, how far it is processed, how long it is kept and who can access it.

Redaction is one such measure when it is built into the pipeline rather than run by hand afterwards: the step that does not need personal data never receives it.

Security of processing

Art. 32(1)

Controllers and processors have to implement measures that give a level of security appropriate to the risk. The article lists, where appropriate, the pseudonymisation and encryption of personal data, and a process for regularly testing and evaluating whether those measures work.

Redacted copies limit what a leak of logs, prompts or exports can expose. Testing the measure means knowing how well it works: the benchmark publishes what OpenAnonymizer finds and misses on the same items as other tools, so you can judge it, and check it on your own data.

Where OpenAnonymizer fits

The library finds personal data in text and replaces it with placeholders. How that output counts under the GDPR depends on which placeholders you use and who holds what.

  1. Numbered placeholders and a mapping: pseudonymisation.

    By default each value becomes a placeholder such as <EMAIL_1>, numbered per call, and the call returns the mapping from placeholders to values. The library never stores the mapping. That mapping is the additional information of Art. 4(5): keep it separate and protected, or drop it if you never need the values back. Dropping it does not make the output anonymous by itself: what is left in the text can still single someone out.

  2. Keyed placeholders: still personal data.

    With a private key of your own, each placeholder becomes <TYPE_hex>: by default 12 lowercase hex digits (8 to 16 if you set the length) of an HMAC-SHA256 of the type and value. The same value with the same key gets the same tag in every call, file and machine. Whoever holds the key can re-identify a value by hashing guesses, quickly for small spaces such as national IDs, phone numbers or dates of birth. So keyed output stays personal data under Recital 26. Keep the key apart from the output, and use one key per purpose, since outputs keyed alike can be joined.

  3. Local processing: the data stays with you.

    The library runs inside your own process, on a CPU, with no GPU and no API calls. Text is never sent anywhere to be redacted, so redaction itself adds no new place your data goes.

What this does not do

  • It does not make you compliant. The GDPR applies to your processing as a whole; a redaction step is one measure inside it.
  • It is not legal advice. This page summarises the regulation for engineers; your data protection officer or lawyer decides how it applies to you.
  • You still need a lawful basis for processing (Art. 6), and everything else that comes with it: telling people what you do, keeping data no longer than needed, answering their requests, and so on.
  • It does not make a dataset anonymous on its own. Whether a released dataset is anonymous depends on all of it, what it could be linked with, and the law that applies to you.
  • It redacts text. Audio, images and video go through our dataset cleaning service, not the library.

Questions about your setup?

Tell us what you process and where. We can say what the library covers and what it leaves to you.

Talk to us

Provisions paraphrased from Regulation (EU) 2016/679 (the GDPR), checked against the published text on 1 December 2026.