# Redact driver's licence numbers

> Redact driver's licence numbers from onboarding forms, insurance claims, and fleet records.

Canonical: https://bitbanger.in/entities/drivers-license
Last updated: 2026-10-27

Category: Identity and government IDs · Entity type: `identity.drivers_license`

Licence formats vary by state and country and frequently overlap with other alphanumeric IDs. Redactly relies on an explicit licence cue instead of guessing from shape.

## How Redactly detects driver's licence numbers

- Detected by a context cue that pairs a licence or DL label with the following value.
- Handles hyphenated and unhyphenated forms because no format is enforced.
- The expiry date is not redacted as part of the licence number.

## Why redact driver's licence numbers?

Licence numbers are accepted as identity proof in many KYC flows and are resold on fraud markets.

## 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": "Driver's licence No: S123-456-78-901-0, class C, expires 2029-11-30.", "style": "replace"}'
```

## FAQ

**Does Redactly redact driver's licence numbers automatically?**

Yes. Send text to the API and every detected type is redacted, including driver's licence numbers. To redact only this type, pass the value identity.drivers_license in the entities filter. No training or configuration is required.

**What happens to driver's licence numbers after redaction?**

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

- [Passport numbers](https://bitbanger.in/entities/passport) — Redact passport numbers from travel documents, onboarding packets, and KYC notes.
- [National ID numbers](https://bitbanger.in/entities/national-id) — Redact national identity numbers such as NIN, DNI, PESEL, and similar government identifiers.
- [Dates of birth](https://bitbanger.in/entities/date-of-birth) — Redact dates of birth in numeric, ISO, and written month formats from text and tabular data.

Try it on your own text: https://bitbanger.in/entities/drivers-license
