Datatypes › bankcard

Visa card number

ID bankcard_visa

Pattern of bankcardPersonal data (PII)identifierDraft

This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).

Primary account number of a Visa card. Visa numbers start with 4 and have 13, 16 or 19 digits; the last digit is a Luhn check digit. The pattern accepts the number without spaces or hyphens.

Pattern of
Bank card (credit/debit card) bankcard
Categories
Personally identifiable information, Finances and banking
Countries
Global (not tied to a country)
Languages
Common to most languages
Check digit
luhn
Quality
85/100 · missing: mapping (Wikidata, Schema.org, ...), translation
Metacrafter rules
no detection rule yet
Supported by tools
Cloudflare DLP, Datadog Sensitive Data Scanner, pyWhat, validator.js

Regular expression

^4(?:[0-9]{12}|[0-9]{15}|[0-9]{18})$

Python re syntax.

Examples

ValueDescription
4242424242424242Stripe test card number
4111111111111111Braintree test card number
5555555555554444 invalidMastercard test number

Sources

Use this record