# Redact bank account numbers

> Redact domestic bank account numbers that carry no checksum and no fixed format.

Canonical: https://bitbanger.in/entities/bank-account
Last updated: 2026-10-27

Category: Financial data · Entity type: `financial.bank_account`

Account numbers vary by country and often carry no validator, so this type is detected from context rather than from shape. That is why the surrounding words matter more here than anywhere else.

## How Redactly detects bank account numbers

- Detected from a bank-account cue such as account, acct, or checking account, followed by the value.
- The cue gates the match and the value must contain at least one digit, so prose after the word account is not captured.
- Numeric strings without that context are left in place, which keeps precision high.

## Why redact bank account numbers?

Account numbers are the second half of the pair needed for a fraudulent direct debit.

## Example request

```bash
curl -X POST https://api.bitbanger.in/v1/redact \
  -H "X-API-Key: rdct_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"text": "Please remit to account 000123456789, sort code 04-00-04.", "style": "replace"}'
```

## FAQ

**Does Redactly redact bank account numbers automatically?**

Yes. Send text to the API and every detected type is redacted, including bank account numbers. To redact only this type, pass the value financial.bank_account in the entities filter. No training or configuration is required.

**What happens to bank account numbers after redaction?**

With style set to replace, each match becomes [financial.bank_account] — 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

- [IBANs](https://bitbanger.in/entities/iban) — Redact International Bank Account Numbers with mod-97 validation across all SEPA countries.
- [SWIFT/BIC codes](https://bitbanger.in/entities/swift-bic) — Redact SWIFT and BIC codes from payment instructions without flagging every all-caps word.
- [Credit card numbers](https://bitbanger.in/entities/credit-card) — Redact card numbers from text and JSON with Luhn validation, so only real card numbers are flagged and order IDs are left alone.

Try it on your own text: https://bitbanger.in/entities/bank-account
