Categories

Sensitive Data Masker

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

Detect and mask phone numbers (China, US, and international formats)

Detect and mask email addresses

Detect and mask ID card numbers (Chinese ID, US SSN, etc.)

Detect and mask bank card numbers (Visa, Mastercard, Amex, etc.)

Number of digits to preserve at the beginning and end

Character to use for masking

Key Facts

Category
Text Processing
Input Types
textarea, checkbox, number, select
Output Type
json
Sample Coverage
4
API Ready
Yes

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.

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.

Examples

1. Masking Customer Data in Support Logs

Customer Support Manager
Background
A support team needs to share logs with developers without exposing customer personal information.
Problem
Logs contain phone numbers and emails that must be hidden to comply with privacy policies.
How to Use
Paste the log text into the input field, ensure maskPhone and maskEmail are checked, and set preserveDigits to 2.
Outcome
The output text has phone numbers and emails masked, showing only the first and last two digits, safe for sharing.

2. Anonymizing Survey Responses

Data Analyst
Background
An analyst is processing survey data that includes open-ended responses with personal identifiers.
Problem
Responses may contain ID card numbers and bank card details that need to be removed for analysis.
How to Use
Paste the survey text, select maskIdCard and maskBankCard, and choose a mask character like *.
Outcome
All sensitive numbers are replaced with the chosen mask character, allowing for unbiased analysis.

Try with Samples

text

Related Hubs

FAQ

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.

API Documentation

Request Endpoint

POST /en/api/tools/sensitive-data-masker

Request Parameters

Parameter Name Type Required Description
text textarea Yes -
maskPhone checkbox No Detect and mask phone numbers (China, US, and international formats)
maskEmail checkbox No Detect and mask email addresses
maskIdCard checkbox No Detect and mask ID card numbers (Chinese ID, US SSN, etc.)
maskBankCard checkbox No Detect and mask bank card numbers (Visa, Mastercard, Amex, etc.)
preserveDigits number No Number of digits to preserve at the beginning and end
maskChar select No Character to use for masking

Response Format

{
  "key": {...},
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}
JSON Data: JSON Data

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-sensitive-data-masker": {
      "name": "sensitive-data-masker",
      "description": "Automatically detect and mask sensitive information like phone numbers, emails, ID cards, and bank cards in text",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=sensitive-data-masker",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

If you encounter any issues, please contact us at [email protected]