PII redactor
Replace emails, phone numbers, card numbers, IP addresses and IBANs in text with placeholders such as [EMAIL].
Input
Result
Fill in the input and press Run.
Your input is processed in memory and then discarded. It is not stored or logged. Even so, don't paste live passwords or keys into any online tool.
Use it from code or an agent
curl -s https://setget.net/v1/tools/redact-pii \
-H 'Content-Type: application/json' \
-d '{"input":{"text":"Email [email protected] or call +44 20 7946 0958. Card 4111 1111 1111 1111, server 192.168.1.10."}}'
import json, urllib.request
body = {'input': {'text': 'Email [email protected] or call +44 20 7946 0958. Card 4111 1111 1111 1111, server 192.168.1.10.'}}
request = urllib.request.Request("https://setget.net/v1/tools/redact-pii", json.dumps(body).encode(),
{"Content-Type": "application/json"})
print(json.load(urllib.request.urlopen(request))["result"])
const response = await fetch("https://setget.net/v1/tools/redact-pii", {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"input":{"text":"Email [email protected] or call +44 20 7946 0958. Card 4111 1111 1111 1111, server 192.168.1.10."}}),
});
console.log((await response.json()).result);
Tool: run_tool
Arguments:
{
"slug": "redact-pii",
"input": {
"text": "Email [email protected] or call +44 20 7946 0958. Card 4111 1111 1111 1111, server 192.168.1.10."
}
}
{
"input": {
"text": "Email [email protected] or call +44 20 7946 0958. Card 4111 1111 1111 1111, server 192.168.1.10."
}
}
Endpoint: POST /v1/tools/redact-pii. Over MCP: run_tool with slug: "redact-pii".
Machine-readable: input schema, Markdown. Connect an agent.
Inputs
| Name | Type | Required | What it does |
|---|---|---|---|
text |
string | yes | The text to redact. |
types |
array | no | Which kinds to redact: email, phone, card, ip, iban. All of them when omitted. |
Examples
Input
{
"text": "Email [email protected] or call +44 20 7946 0958. Card 4111 1111 1111 1111, server 192.168.1.10."
}Result
{
"text": "Email [EMAIL] or call [PHONE]. Card [CARD], server [IP].",
"counts": {
"email": 1,
"phone": 1,
"card": 1,
"ip": 1,
"iban": 0
},
"total": 4
}Only bank account numbers
Input
{
"text": "Pay GB82 WEST 1234 5698 7654 32 and write to [email protected]",
"types": [
"iban"
]
}Result
{
"text": "Pay [IBAN] and write to [email protected]",
"counts": {
"email": 0,
"phone": 0,
"card": 0,
"ip": 0,
"iban": 1
},
"total": 1
}Questions
- Will it catch every piece of personal data?
- No. It is pattern-based and can miss things. It does not recognise names, postal addresses, dates of birth, national ID numbers or unusually written numbers. Always review the result before sharing it.
- Can it redact too much?
- Yes. Any run of 8 to 15 digits can look like a phone number, so order numbers and other long IDs may be replaced with [PHONE].
- How are card numbers and IBANs recognised?
- Card numbers are 13 to 19 digits that pass the Luhn check. IBANs must be in capitals and pass the standard checksum, so mistyped ones are left alone.
- Is my text stored?
- It is processed in memory to produce the result and not kept. Even so, avoid sending data you are not allowed to share.
Related tools
- Extract emails and URLsPull every email address and web link out of a text, and optionally IPv4 addresses and hashtags.
extract-emails-urls - Regex replaceReplace every match of a regular expression, with backreferences such as \1 in the replacement.
regex-replace - Find and replaceReplace every occurrence of a word or phrase in text, exactly as typed, with a count of the changes.
find-replace - Apply a patchApply a unified diff to a text and get the patched result, with clear errors when a hunk does not fit.
patch-apply - Case converterConvert text between lower, UPPER, Title, Sentence, camelCase, PascalCase, snake_case, kebab-case and more.
case-convert - Escape and unescape textEscape or unescape text for HTML, URLs, JSON strings, shell commands, regular expressions and CSV fields.
escape-unescape