iToolsPro

文本脱敏

批量替换手机号、身份证、银行卡号、邮箱、IP 等敏感信息,多种规则一键打码,本地处理

输入文本
脱敏类型
脱敏结果
提示:脱敏仅在本地进行,原始文本不会被上传或存储。
Phone · ID · Card · Email

敏感信息,一键批量打码

自动识别手机号、身份证、银行卡、邮箱、IP、车牌等,按规则脱敏,本地处理零上传。

100% 本地处理 · 数据不上传

核心特性

多类型识别
手机号、身份证、银行卡、邮箱、IP、车牌一次识别,批量替换。
灵活规则
每类敏感信息可独立开关,按需组合脱敏范围,保留位数规则合理。
本地安全
所有处理在浏览器本地完成,敏感数据不出设备,可放心使用。

适用场景

📄 日志脱敏 📤 截图分享 🧪 测试数据 📋 文档发布

文本脱敏使用指南Data Masking Guide

了解脱敏规则、支持的数据类型与常见问题。How masking rules work, supported data types, and answers to common questions.

功能说明What It Does

文本脱敏工具会自动识别文本中的手机号、身份证号、银行卡号、邮箱、IP 地址与车牌号,并替换为带星号的脱敏形式,如 138****1234、110***********1234、zh***@example.com。

This tool detects phone numbers, ID card numbers, bank card numbers, emails, IP addresses and license plates, then replaces them with masked forms such as 138****1234, 110***********1234 and zh***@example.com.

全部在浏览器本地完成,原始数据不会上传或存储。

Everything runs locally in your browser - raw data is never uploaded or stored.

脱敏规则Masking Rules

手机号保留前 3 后 4;身份证与银行卡保留前后各 3-4 位;邮箱隐藏用户名主体、保留域名;IP 保留前两段。

Phone numbers keep the first 3 and last 4 digits; ID and bank cards keep a few leading and trailing digits; emails hide the username but keep the domain; IPs keep the first two octets.

使用步骤How to Use

  1. 粘贴或输入包含敏感信息的文本。Paste or type text containing sensitive information.
  2. 勾选需要脱敏的数据类型。Check the data types you want to mask.
  3. 点击「开始脱敏」并复制结果。Click "Mask" and copy the result.

常见问题FAQ

Q1. 脱敏后的数据还能恢复吗?Q1. Can masked data be recovered?

不能,脱敏用星号替换中间位,原始信息不可还原,适用于安全分享场景。No - the middle characters are replaced and cannot be restored, which is exactly what makes sharing safe.

Q2. 原始文本会被上传吗?Q2. Is raw text uploaded?

不会,处理完全在浏览器本地进行,关闭页面即销毁。No - masking happens entirely in your browser and is discarded when you close the page.

Q3. 为什么有的数字串没有识别?Q3. Why wasn't a number detected?

脱敏基于格式规则,非标准格式(如短号、座机)可能无法匹配,可在文本中人工调整后重试。Masking relies on format rules; non-standard formats (like short or landline numbers) may not match - adjust the text and retry.