← All tools
Text Desensitizer
Paste logs, configs, or chat exports and get a safe copy locally—nothing is uploaded to a server.
Masking rules
Lines matching any rule are left unchanged—useful for CI identifiers. Literals are case-sensitive unless you enable ignore case.
Original text0 / 100,000
Masked result (Git split diff)0 / 100,000
After you desensitize, the left column shows the original and the right shows the masked text—changed lines use red/green like Git split diff.
How to use
Choose rule types and optional exclude patterns (e.g. CI variables). Paste source text and click Desensitize. The split diff highlights changes; Copy masked text copies only the right-hand plain text. Shortcut: ⌘/Ctrl + Enter.
- Phone: keep first 3 and last 4 digits
- ID card: keep first 6 and last 4 characters
- Email: keep first character of local part and full domain
- Bank card: keep first 4 and last 4 digits (13–19 consecutive digits)
- Database URI: mask credentials and password-like query params
- Webhook: mask tokens in Feishu/Slack/DingTalk and similar bot URLs
- Exclude lines: matched lines stay unchanged (substring or /regex/)
Pattern matching covers common formats but is not 100% exhaustive—review output for compliance-sensitive use.