Tools › Entity types

Contact details

Redact email addresses from text, JSON, and CSV

Email addresses are the most common PII in support tickets, logs, and exported datasets, and the most common cause of accidental disclosure. Redactly replaces them with a type label while leaving the surrounding text untouched.

Try it on the live API No signup. 2,000 characters, 20 runs per 10 minutes.
Output appears here.

How Redactly detects email addresses

  • Matched by a format regex that runs independently of the model, so an address is caught even when the surrounding sentence gives no context.
  • The whole address is the span — no fragments such as the domain alone being reported.
  • If a token also resembles a URL, the email boundary wins because the address match is authoritative.

Why redact email addresses?

A single leaked address list is enough to trigger a GDPR personal-data breach notification.

Example request

curl -X POST https://api.bitbanger.in/v1/redact \
  -H "X-API-Key: rdct_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"text": "Escalation contact: priya.raman@northwind-example.com, ticket #4412.", "style": "replace"}'

Every hit in the response carries entity, text, start, and end. The offsets index into the text you sent, so you can apply the redactions to your own copy of the document. The full response schema is in the API reference.

Questions

Does Redactly redact email addresses automatically?

Yes. Send text to the API and every detected type is redacted, including email addresses. To redact only this type, pass the value contact.email in the entities filter. No training or configuration is required.

What happens to email addresses after redaction?

With style set to replace, each match becomes [contact.email] — the entity type in square brackets. Setting style to mask replaces every character with a block character, and remove deletes the span entirely.

Related entity types

Redact email addresses in production

Get an API key and send your first request in a minute. Plans start at $24/month.

See pricing