27
stars
40
commits
1
linked in READMEs
Jun 3, 2026
updated
license: other license_name: cc-by-4.0 language:
👉 Looking for the newest release? The current flagship is ai4privacy/pii-masking-openpii-1.5m. 1.6M samples, 30 languages, 19 PII classes, Asia Pacific extension.?** The current flagship is ai4privacy/pii-masking-openpii-1m. 1.4M samples, 23 languages, 19 PII classes.
The dataset is useful to train and evaluate models to remove personally identifiable and sensitive information from text, especially in the context of AI assistants and LLMs.

| Language | Count | Percentage |
|---|---|---|
| English (en) 🇺🇸🇬🇧🇨🇦🇮🇳 | 150,693 | 25.97% |
| French (fr) 🇫🇷🇨🇭🇨🇦 | 112,136 | 19.33% |
| German (de) 🇩🇪🇨🇭 | 82,384 | 14.20% |
| Spanish (es) 🇪🇸 🇲🇽 | 78,013 | 13.45% |
| Italian (it) 🇮🇹🇨🇭 | 68,824 | 11.86% |
| Dutch (nl) 🇳🇱 | 26,628 | 4.59% |
| Hindi (hi)* 🇮🇳 | 33,963 | 5.85% |
| Telugu (te)* 🇮🇳 | 27,586 | 4.75% |
| *these languages are in experimental stages |
Number of Unique Regions: 11
| Region | Count | Percentage |
|---|---|---|
| Switzerland (CH) 🇨🇭 | 112,531 | 19.39% |
| India (IN) 🇮🇳 | 99,724 | 17.19% |
| Canada (CA) 🇨🇦 | 74,733 | 12.88% |
| Germany (DE) 🇩🇪 | 41,604 | 7.17% |
| Spain (ES) 🇪🇸 | 39,557 | 6.82% |
| Mexico (MX) 🇲🇽 | 38,456 | 6.63% |
| France (FR) 🇫🇷 | 37,886 | 6.53% |
| Great Britain (GB) 🇬🇧 | 37,092 | 6.39% |
| United States (US) 🇺🇸 | 37,008 | 6.38% |
| Italy (IT) 🇮🇹 | 35,008 | 6.03% |
| Netherlands (NL) 🇳🇱 | 26,628 | 4.59% |
| Split | Count | Percentage |
|---|---|---|
| Train | 464,150 | 79.99% |
| Validate | 116,077 | 20.01% |
Option 1: Python
pip install datasets
from datasets import load_dataset
dataset = load_dataset("ai4privacy/open-pii-masking-500k-ai4privacy")
*note for the nested objects, we store them as string to maximise compability between various software.
At Ai4Privacy, we are commited to building the global seatbelt of the 21st century for Artificial Intelligence to help fight against potential risks of personal information being integrated into data pipelines.
Newsletter & updates: www.Ai4Privacy.com
Chatbots: Incorporating a PII masking model into chatbot systems can ensure the privacy and security of user conversations by automatically redacting sensitive information such as names, addresses, phone numbers, and email addresses.
Customer Support Systems: When interacting with customers through support tickets or live chats, masking PII can help protect sensitive customer data, enabling support agents to handle inquiries without the risk of exposing personal information.
Email Filtering: Email providers can utilize a PII masking model to automatically detect and redact PII from incoming and outgoing emails, reducing the chances of accidental disclosure of sensitive information.
Data Anonymization: Organizations dealing with large datasets containing PII, such as medical or financial records, can leverage a PII masking model to anonymize the data before sharing it for research, analysis, or collaboration purposes.
Social Media Platforms: Integrating PII masking capabilities into social media platforms can help users protect their personal information from unauthorized access, ensuring a safer online environment.
Content Moderation: PII masking can assist content moderation systems in automatically detecting and blurring or redacting sensitive information in user-generated content, preventing the accidental sharing of personal details.
Online Forms: Web applications that collect user data through online forms, such as registration forms or surveys, can employ a PII masking model to anonymize or mask the collected information in real-time, enhancing privacy and data protection.
Collaborative Document Editing: Collaboration platforms and document editing tools can use a PII masking model to automatically mask or redact sensitive information when multiple users are working on shared documents.
Research and Data Sharing: Researchers and institutions can leverage a PII masking model to ensure privacy and confidentiality when sharing datasets for collaboration, analysis, or publication purposes, reducing the risk of data breaches or identity theft.
Content Generation: Content generation systems, such as article generators or language models, can benefit from PII masking to automatically mask or generate fictional PII when creating sample texts or examples, safeguarding the privacy of individuals.
(...and whatever else your creative mind can think of)
This dataset, Open PII Masking 500k, was created using Llama models (versions 3.1 and 3.3) as part of our pipeline at Ai4Privacy. As a result, its use and distribution are subject to the Llama Community License Agreement. Copies of the Llama 3.1 and 3.3 licenses are included in the license folder of this repository. If you use or share this dataset, you must follow these terms, which include specific guidelines for model naming, attribution, and acceptable use. See the “Licensed Material” section below for details.
Because we used Llama models as part of our pipeline to generate this dataset, you are required to follow the Llama Community License when using or distributing it or any derivative works. Here’s what you need to do: Model Naming: If you use this dataset to create, train, fine-tune, or improve an AI model that you distribute, you must include “Llama” at the beginning of the model name (e.g., Llama-ai4privacy-xxx, where xxx is your custom naming convention). Attribution: You must prominently display “Built with Llama” on any related website, user interface, blog post, about page, or product documentation. This ensures proper credit to the Llama models used in our pipeline. License Inclusion: When distributing this dataset or any derivative works, include a copy of the Llama Community License (available in the in this repository at llama-3.1-community-license.txt and llama-3.3-community-license.txt). For full details, please review the licenses in full.
Your use of this dataset must comply with the Llama Acceptable Use Policy (found in the license folder) and align with Ai4Privacy’s mission to protect privacy. Review the licenses for specifics, and follow the guidelines at p5y.org for appropriate usage. Prohibited uses include anything that violates privacy laws, generates harmful content, or contravenes AI regulations. Citation If you use this dataset in your research or project, please cite it as follows:
@dataset{ai4privacy_open_pii_masking_500k,
author = {Ai4Privacy},
title = {Open PII Masking 500k Dataset},
year = {2025},
publisher = {Hugging Face},
url = {https://huggingface.co/datasets/ai4privacy/open-pii-masking-500k-ai4privacy},
doi = {10.57967/hf/4852}
}
Discord: Connect with us and other privacy enthusiasts on our Discord server: https://discord.gg/FmzWshaaQT
Contribute to Ai4Privacy: Help build the AI ecosystem for privacy by filling out our Open Data Access Form: https://forms.gle/iU5BvMPGkvvxnHBa7 We’re excited to support your research and personal privacy protection efforts! Tell us about your project and how you’re using Ai4Privacy resources—it helps us improve.
Commercial Partnerships
Is privacy masking a critical challenge for your business? Explore our specialized datasets and get in touch via: https://forms.gle/oDDYqQkyoTB93otHA or email us at partnerships@ai4privacy.com. Note: These resources are designed to facilitate data handling and processing while upholding high privacy standards in line with regulatory requirements. Uses that fail to protect individuals’ privacy or violate privacy and AI regulations are not permitted. Refer to the Llama Acceptable Use Policy in the license folder for details on permissible and prohibited uses.
Note: These resources are designed to facilitate data handling and processing while upholding high privacy standards in line with regulatory requirements. Uses that fail to protect individuals’ privacy or violate privacy and AI regulations are not permitted. Refer to the Llama Acceptable Use Policy in the license folder for details on permissible and prohibited uses.
No Warranty & Use at Your Own Risk
The Open PII Masking 500k Ai4Privacy Dataset is provided "as is" without any guarantees or warranties, express or implied. Ai4Privacy and Ai Suisse SA make no representations or warranties regarding the accuracy, completeness, reliability, or suitability of the dataset for any specific purpose. Users acknowledge that they utilize the dataset at their own risk and bear full responsibility for any outcomes resulting from its use.
No Liability
Under no circumstances shall Ai4Privacy, Ai Suisse SA, its affiliates, partners, contributors, or employees be held liable for any direct, indirect, incidental, consequential, or special damages arising from the use or inability to use the dataset, including but not limited to data loss, privacy breaches, regulatory non-compliance, reputational damage, or any other harm, even if advised of the possibility of such damages.
Compliance & Responsibility
Users are solely responsible for ensuring that their use of the dataset complies with all applicable laws, regulations, and ethical guidelines, including but not limited to data privacy laws (e.g., GDPR, CCPA) and AI-related legislation. Ai4Privacy and Ai Suisse SA assume no responsibility for how users process, distribute, or apply the dataset in their projects, commercial or otherwise.
Intellectual Property & Third-Party Rights
The dataset may include automatically processed data for PII masking purposes. Ai4Privacy and Ai Suisse SA do not guarantee that all sensitive information has been successfully removed or anonymized. Users must conduct their own due diligence and, where necessary, implement additional safeguards before using or sharing any derived outputs.
License & Restrictions
Use of the dataset is subject to the license terms set forth in the LICENSE.md file. Commercial use, redistribution, or modification beyond the permitted scope may require explicit written permission from Ai4Privacy. Unauthorized use may result in legal consequences.
No Endorsement
Use of this dataset does not imply endorsement, affiliation, or approval by Ai4Privacy, Ai Suisse SA, or any related entities. Any conclusions, analyses, or outputs derived from this dataset are entirely the responsibility of the user.
Changes & Termination
Ai4Privacy reserves the right to update, modify, restrict, or discontinue access to the dataset at any time, without prior notice. Users should regularly review licensing terms and any dataset updates to ensure continued compliance.
Ai4Privacy is a project affiliated with Ai Suisse SA.
40 commits
27
stars
40
commits
1
linked in READMEs
Jun 3, 2026
updated
license: other license_name: cc-by-4.0 language:
👉 Looking for the newest release? The current flagship is ai4privacy/pii-masking-openpii-1.5m. 1.6M samples, 30 languages, 19 PII classes, Asia Pacific extension.?** The current flagship is ai4privacy/pii-masking-openpii-1m. 1.4M samples, 23 languages, 19 PII classes.
The dataset is useful to train and evaluate models to remove personally identifiable and sensitive information from text, especially in the context of AI assistants and LLMs.

| Language | Count | Percentage |
|---|---|---|
| English (en) 🇺🇸🇬🇧🇨🇦🇮🇳 | 150,693 | 25.97% |
| French (fr) 🇫🇷🇨🇭🇨🇦 | 112,136 | 19.33% |
| German (de) 🇩🇪🇨🇭 | 82,384 | 14.20% |
| Spanish (es) 🇪🇸 🇲🇽 | 78,013 | 13.45% |
| Italian (it) 🇮🇹🇨🇭 | 68,824 | 11.86% |
| Dutch (nl) 🇳🇱 | 26,628 | 4.59% |
| Hindi (hi)* 🇮🇳 | 33,963 | 5.85% |
| Telugu (te)* 🇮🇳 | 27,586 | 4.75% |
| *these languages are in experimental stages |
Number of Unique Regions: 11
| Region | Count | Percentage |
|---|---|---|
| Switzerland (CH) 🇨🇭 | 112,531 | 19.39% |
| India (IN) 🇮🇳 | 99,724 | 17.19% |
| Canada (CA) 🇨🇦 | 74,733 | 12.88% |
| Germany (DE) 🇩🇪 | 41,604 | 7.17% |
| Spain (ES) 🇪🇸 | 39,557 | 6.82% |
| Mexico (MX) 🇲🇽 | 38,456 | 6.63% |
| France (FR) 🇫🇷 | 37,886 | 6.53% |
| Great Britain (GB) 🇬🇧 | 37,092 | 6.39% |
| United States (US) 🇺🇸 | 37,008 | 6.38% |
| Italy (IT) 🇮🇹 | 35,008 | 6.03% |
| Netherlands (NL) 🇳🇱 | 26,628 | 4.59% |
| Split | Count | Percentage |
|---|---|---|
| Train | 464,150 | 79.99% |
| Validate | 116,077 | 20.01% |
Option 1: Python
pip install datasets
from datasets import load_dataset
dataset = load_dataset("ai4privacy/open-pii-masking-500k-ai4privacy")
*note for the nested objects, we store them as string to maximise compability between various software.
At Ai4Privacy, we are commited to building the global seatbelt of the 21st century for Artificial Intelligence to help fight against potential risks of personal information being integrated into data pipelines.
Newsletter & updates: www.Ai4Privacy.com
Chatbots: Incorporating a PII masking model into chatbot systems can ensure the privacy and security of user conversations by automatically redacting sensitive information such as names, addresses, phone numbers, and email addresses.
Customer Support Systems: When interacting with customers through support tickets or live chats, masking PII can help protect sensitive customer data, enabling support agents to handle inquiries without the risk of exposing personal information.
Email Filtering: Email providers can utilize a PII masking model to automatically detect and redact PII from incoming and outgoing emails, reducing the chances of accidental disclosure of sensitive information.
Data Anonymization: Organizations dealing with large datasets containing PII, such as medical or financial records, can leverage a PII masking model to anonymize the data before sharing it for research, analysis, or collaboration purposes.
Social Media Platforms: Integrating PII masking capabilities into social media platforms can help users protect their personal information from unauthorized access, ensuring a safer online environment.
Content Moderation: PII masking can assist content moderation systems in automatically detecting and blurring or redacting sensitive information in user-generated content, preventing the accidental sharing of personal details.
Online Forms: Web applications that collect user data through online forms, such as registration forms or surveys, can employ a PII masking model to anonymize or mask the collected information in real-time, enhancing privacy and data protection.
Collaborative Document Editing: Collaboration platforms and document editing tools can use a PII masking model to automatically mask or redact sensitive information when multiple users are working on shared documents.
Research and Data Sharing: Researchers and institutions can leverage a PII masking model to ensure privacy and confidentiality when sharing datasets for collaboration, analysis, or publication purposes, reducing the risk of data breaches or identity theft.
Content Generation: Content generation systems, such as article generators or language models, can benefit from PII masking to automatically mask or generate fictional PII when creating sample texts or examples, safeguarding the privacy of individuals.
(...and whatever else your creative mind can think of)
This dataset, Open PII Masking 500k, was created using Llama models (versions 3.1 and 3.3) as part of our pipeline at Ai4Privacy. As a result, its use and distribution are subject to the Llama Community License Agreement. Copies of the Llama 3.1 and 3.3 licenses are included in the license folder of this repository. If you use or share this dataset, you must follow these terms, which include specific guidelines for model naming, attribution, and acceptable use. See the “Licensed Material” section below for details.
Because we used Llama models as part of our pipeline to generate this dataset, you are required to follow the Llama Community License when using or distributing it or any derivative works. Here’s what you need to do: Model Naming: If you use this dataset to create, train, fine-tune, or improve an AI model that you distribute, you must include “Llama” at the beginning of the model name (e.g., Llama-ai4privacy-xxx, where xxx is your custom naming convention). Attribution: You must prominently display “Built with Llama” on any related website, user interface, blog post, about page, or product documentation. This ensures proper credit to the Llama models used in our pipeline. License Inclusion: When distributing this dataset or any derivative works, include a copy of the Llama Community License (available in the in this repository at llama-3.1-community-license.txt and llama-3.3-community-license.txt). For full details, please review the licenses in full.
Your use of this dataset must comply with the Llama Acceptable Use Policy (found in the license folder) and align with Ai4Privacy’s mission to protect privacy. Review the licenses for specifics, and follow the guidelines at p5y.org for appropriate usage. Prohibited uses include anything that violates privacy laws, generates harmful content, or contravenes AI regulations. Citation If you use this dataset in your research or project, please cite it as follows:
@dataset{ai4privacy_open_pii_masking_500k,
author = {Ai4Privacy},
title = {Open PII Masking 500k Dataset},
year = {2025},
publisher = {Hugging Face},
url = {https://huggingface.co/datasets/ai4privacy/open-pii-masking-500k-ai4privacy},
doi = {10.57967/hf/4852}
}
Discord: Connect with us and other privacy enthusiasts on our Discord server: https://discord.gg/FmzWshaaQT
Contribute to Ai4Privacy: Help build the AI ecosystem for privacy by filling out our Open Data Access Form: https://forms.gle/iU5BvMPGkvvxnHBa7 We’re excited to support your research and personal privacy protection efforts! Tell us about your project and how you’re using Ai4Privacy resources—it helps us improve.
Commercial Partnerships
Is privacy masking a critical challenge for your business? Explore our specialized datasets and get in touch via: https://forms.gle/oDDYqQkyoTB93otHA or email us at partnerships@ai4privacy.com. Note: These resources are designed to facilitate data handling and processing while upholding high privacy standards in line with regulatory requirements. Uses that fail to protect individuals’ privacy or violate privacy and AI regulations are not permitted. Refer to the Llama Acceptable Use Policy in the license folder for details on permissible and prohibited uses.
Note: These resources are designed to facilitate data handling and processing while upholding high privacy standards in line with regulatory requirements. Uses that fail to protect individuals’ privacy or violate privacy and AI regulations are not permitted. Refer to the Llama Acceptable Use Policy in the license folder for details on permissible and prohibited uses.
No Warranty & Use at Your Own Risk
The Open PII Masking 500k Ai4Privacy Dataset is provided "as is" without any guarantees or warranties, express or implied. Ai4Privacy and Ai Suisse SA make no representations or warranties regarding the accuracy, completeness, reliability, or suitability of the dataset for any specific purpose. Users acknowledge that they utilize the dataset at their own risk and bear full responsibility for any outcomes resulting from its use.
No Liability
Under no circumstances shall Ai4Privacy, Ai Suisse SA, its affiliates, partners, contributors, or employees be held liable for any direct, indirect, incidental, consequential, or special damages arising from the use or inability to use the dataset, including but not limited to data loss, privacy breaches, regulatory non-compliance, reputational damage, or any other harm, even if advised of the possibility of such damages.
Compliance & Responsibility
Users are solely responsible for ensuring that their use of the dataset complies with all applicable laws, regulations, and ethical guidelines, including but not limited to data privacy laws (e.g., GDPR, CCPA) and AI-related legislation. Ai4Privacy and Ai Suisse SA assume no responsibility for how users process, distribute, or apply the dataset in their projects, commercial or otherwise.
Intellectual Property & Third-Party Rights
The dataset may include automatically processed data for PII masking purposes. Ai4Privacy and Ai Suisse SA do not guarantee that all sensitive information has been successfully removed or anonymized. Users must conduct their own due diligence and, where necessary, implement additional safeguards before using or sharing any derived outputs.
License & Restrictions
Use of the dataset is subject to the license terms set forth in the LICENSE.md file. Commercial use, redistribution, or modification beyond the permitted scope may require explicit written permission from Ai4Privacy. Unauthorized use may result in legal consequences.
No Endorsement
Use of this dataset does not imply endorsement, affiliation, or approval by Ai4Privacy, Ai Suisse SA, or any related entities. Any conclusions, analyses, or outputs derived from this dataset are entirely the responsibility of the user.
Changes & Termination
Ai4Privacy reserves the right to update, modify, restrict, or discontinue access to the dataset at any time, without prior notice. Users should regularly review licensing terms and any dataset updates to ensure continued compliance.
Ai4Privacy is a project affiliated with Ai Suisse SA.
40 commits