Local format checks

Card Prefix Analyser

Explore possible brands and compare six- and eight-digit prefix slices. No bank, country or account lookup.

Try a fixed example, or enter your own synthetic input:

Uses this site's documented test profile. Entered values are not stored or sent by this tool. It does not check payment acceptance, account activity or funds.

Inspect a prefix without inventing issuer data

This analyser answers a local question: which patterns in the site’s test profile are compatible with the digits entered so far? It also shows six- and eight-digit slices when enough input is present. It does not query a bank directory or infer country, funding type or card level from a regex.

Use the example buttons to compare 6, then 60, then 6011. The broad Maestro fallback must not hide a possible Discover pattern before the fourth digit arrives. Compare that sequence with 62, where the exact configured UnionPay prefix outranks the broad fallback. These are results of the stated local profile, not an exhaustive network allocation list.

InputExpected interpretation
6Several possible brands; keep typing
60Discover remains possible; do not settle on Maestro
6011Discover candidate in this profile; no checksum on a four-digit prefix
62UnionPay candidate under the configured rules
9Troy remains possible, but its configured 9792 prefix is unfinished
6011xUnsupported character; do not silently turn it into 6011

Prefix slices and assigned IINs are different things

A six-digit slice is the first six characters; an eight-digit slice adds two more. Neither operation proves who owns that range or how its records are divided. The BIN/IIN explanation covers assignment and data provenance. Visa’s eight-digit BIN guidance provides the network-specific migration context.

The two eight-digit example buttons use 41234567 and 41234568. They share the first six digits but can represent different mocked routes. A lookup keyed only by 412345 loses that distinction. The prefix generator lets you construct synthetic inputs for those branches. The examples do not claim that those prefixes belong to particular banks.

Know which answer requires a data source

QuestionThis toolYour integration’s source
Which configured patterns still match?Candidate listLocal test profile
Does a full digit string pass Luhn?Separate arithmetic resultChecksum calculation
Which lengths does this site support?Selected profile’s lengthsLocal profile, not a worldwide guarantee
What are the issuer, country and funding type?Not looked upProvider response or maintained licensed data
Can this merchant accept the card?Not determinedMerchant configuration and provider capabilities

For funding-response handling, the debit fixture exercise includes unknown and missing data. Treat those states explicitly instead of filling the gaps with a guess based on the first digit. If a lookup service is part of your own application, test timeouts, stale responses and disagreement between sources independently of this analyser.

Reproduce a result with the shared tests

Save and extract the validation example bundle , then run:

node --test card-validation.test.mjs

The analyser and number validator import the same inspection function and use the same JSON profile. The tests reverse the profile order, introduce an equal-specificity conflict and exercise incomplete input. A rule reorder should not silently change the selected brand.

The detection guide shows that implementation. The length guide compares the wider validation profile with the narrower generator output. This separation lets you explain a result without making a claim about a real cardholder’s account.

Frequently Asked Questions

Does this page return the bank or issuing country?
No. It analyses configured prefix patterns and number shape without a BIN database. Bank, country, funding and product metadata must come from an appropriate maintained data source.
Why can a prefix have more than one candidate?
The local rules include broad and more specific patterns. While an input is incomplete, a possible specific match must not be hidden by a fallback that already matches.
Does showing the first eight digits prove the IIN is eight digits long?
No. These are labeled slices for comparison. The page does not know the assigned IIN width or the issuer record behind a synthetic number.
Why does the analyser show Luhn only for longer inputs?
A short prefix is not a complete account number. The tool reports a checksum only inside its 12–19-digit analysis envelope, and that arithmetic result still does not prove the number is complete or issued.