# Sensitive Data Masker

Automatically detect and mask sensitive information like phone numbers, emails, ID cards, and bank cards in text

> Canonical page: https://elysiatools.com/en/tools/sensitive-data-masker

- **Category:** Text Processing

- **Keywords:** mask, privacy, sensitive, data, protect, anonymize

## Overview

The Sensitive Data Masker automatically detects and masks personal information such as phone numbers, email addresses, ID cards, and bank card numbers in text. It helps protect privacy by anonymizing sensitive data before sharing or storing.

## Inputs

- **Input Text** (textarea): Paste text containing sensitive data (phones, emails, ID cards, bank cards)...
- **Mask Phone Numbers** (checkbox): Detect and mask phone numbers (China, US, and international formats)
- **Mask Email Addresses** (checkbox): Detect and mask email addresses
- **Mask ID Card Numbers** (checkbox): Detect and mask ID card numbers (Chinese ID, US SSN, etc.)
- **Mask Bank Card Numbers** (checkbox): Detect and mask bank card numbers (Visa, Mastercard, Amex, etc.)
- **Preserve Digits** (number): Number of digits to preserve at the beginning and end
- **Mask Character** (select): Character to use for masking

## When to use

- When preparing text data for public sharing or analysis to prevent exposure of personal information.
- To comply with data privacy regulations like GDPR or CCPA by anonymizing customer data.
- When sanitizing logs or reports that contain sensitive identifiers for internal use.

## How it works

- Paste or input the text containing sensitive data into the tool.
- Select which types of data to mask: phone numbers, emails, ID cards, and bank cards.
- Configure settings such as the number of digits to preserve and the mask character.
- The tool processes the text and returns it with sensitive information masked.

## Use cases

- Anonymizing customer support tickets before storing them in a database.
- Masking personal details in survey responses for data analysis.
- Sanitizing text logs that contain user identifiers for debugging purposes.

## Frequently asked questions

### What types of sensitive data can this tool mask?

It can mask phone numbers, email addresses, ID card numbers, and bank card numbers.

### Can I customize how many digits are shown?

Yes, you can set the number of digits to preserve at the beginning and end.

### What mask characters are available?

You can choose from asterisk (*), bullet (•), or lowercase x.

### Is the tool secure for sensitive data?

The tool processes data locally in your browser; no data is sent to servers.

### Can it handle international formats?

Yes, it detects phone numbers and ID cards in various international formats.

## Related tools

- [Number Format Cleaner](https://elysiatools.com/en/tools/number-format-cleaner): Normalize and clean various number formats in text for consistency
- [Phone Number Extractor](https://elysiatools.com/en/tools/phone-number-extractor): Extract phone numbers from mixed text with support for multiple countries and formats
- [Text Phone Number Normalizer](https://elysiatools.com/en/tools/text-phone-normalizer): Find, format and normalize phone numbers within text content
- [Text Spacer - Auto Add Spaces Between Chinese and English](https://elysiatools.com/en/tools/text-spacer): Automatically add spaces between Chinese characters and English/numbers to improve readability
- [AI Currency & Number Extractor (AI货币数字提取器)](https://elysiatools.com/en/tools/ai-currency-extractor): Use AI to intelligently extract numbers, currencies, and financial amounts from text with their original formatting preserved
- [Date Extractor (日期提取器)](https://elysiatools.com/en/tools/date-extractor): Extract dates from text in multiple formats including Chinese, ISO, and US formats with detailed analysis and summary
- [PII Finder](https://elysiatools.com/en/tools/pii-finder): Scan text/logs for potential PII (Personally Identifiable Information) and annotate positions and types for redaction and compliance checking
- [Newline Normalizer](https://elysiatools.com/en/tools/newline-normalizer): Normalize and unify newline characters in text to consistent line ending format

## Samples

- [Log Files with Sensitive Data](https://elysiatools.com/en/samples/log-with-sensitive-data): Sample log files containing various types of PII (Personally Identifiable Information) for testing PII detection and log redaction tools
- [Text with Sensitive Data Samples](https://elysiatools.com/en/samples/text-with-sensitive-data-samples): Text containing various types of sensitive data for testing data masking (phones, emails, ID cards, bank cards)
- [Android Image Processing Java Samples](https://elysiatools.com/en/samples/android-image-processing-java): Android Java image processing examples including reading/saving images, scaling, and format conversion
- [Android Image Processing Kotlin Samples](https://elysiatools.com/en/samples/android-image-processing-kotlin): Android Kotlin image processing examples including reading/saving images, scaling, and format conversion

## Related content

- [PII Detection and Log Redaction Review](https://elysiatools.com/en/hubs/pii-log-redaction): Find likely personal data in logs, text, and PDFs, redact review copies, validate identifier patterns, and require human approval before sharing.
