Credit Card Number (ISO IEC 7812) generator

Last modified: April 3, 2025

The Credit Card Number (ISO IEC 7812) generator creates realistic credit card numbers following the international standard ISO/IEC 7812. These numbers are structured in a format that includes the Issuer Identification Number (IIN), a unique account identifier, and a check digit validated by the Luhn algorithm. The generator produces numbers compatible with common card providers for testing and development purposes.

Generator properties

The table provides key details about the generator, including the short name, sample of the generated data, the supported data types, and whether it is specific to a particular country.

Short name Example of generated data Data type matching Country-specific
Credit Card Number 345890752288470, 4175002219117469, … character varyingcharactertextbigintdecimal Default

Matching rules

The generator can be assigned to a column that matches any of the following rules:

  • The column name is ‘CNN’, regardless of the table name.
  • The column name starts with ‘CreditCard’ or ‘Card’ and ends with ‘Number’, with any or no characters in between, regardless of the table name.
  • The column name contains ‘Number’, preceded or followed by any or no characters, and it belongs to a table whose name contains ‘Credit Card’, preceded or followed by any or no characters.
  • The column name starts with ‘debit’ or ‘credit’ followed by ‘card’, preceded or followed by any or no characters, and ends with ‘num’, regardless of the table name.

Configure additional options

All common card providers are selected by default. The tool allows you to exclude the card providers by clearing the checkboxes in the Name column.

Preview of the column data generated by the Credit Card Number (ISO IEC 7812) generator

Credit Card Number (ISO IEC 7812) generator