The Bangladesh National ID (NID) is the country's primary identity credential, issued by the Election Commission (EC) to every citizen aged 18 and above. Verifying an NID correctly requires understanding the formats, the source of truth, and the realities of how NIDs look in the wild.
NID number formats
There are three formats in circulation:
- 10-digit NID — issued on the modern smart cards (2016 onwards).
- 13-digit NID — issued on paper cards before 2010.
- 17-digit NID — issued on paper cards 2010–2016, prefixed with the 4-digit birth year.
All three are valid. A correct NID verification flow accepts any format and normalizes internally to the 10-digit form via the EC's mapping.
The source of truth
The only authoritative source of NID data is the Election Commission's database. OCR'ing the card and accepting what it says is not verification — it is transcription. Real verification means querying the EC record and matching the name, date of birth, and parents' names supplied by the customer against what the EC has on file.
Smart card vs paper card
Smart cards carry a contact chip with a digitally-signed record of the holder's identity. A reader can verify the chip's signature offline. Paper cards have no such security feature — they rely on the visual layout and a hologram. Both must ultimately be matched against the EC record for regulated use.
Common failure modes
- Glare on the laminate obscures the NID number or photo. A capture SDK that scores image quality before submission catches this.
- Bangla name transliteration — the same name can be spelled three different ways in English. A good verification API does fuzzy match across known transliterations.
- Damaged paper cards with torn corners or faded ink. Manual fallback is essential.
- Recently-issued NIDs that haven't propagated to all EC mirrors. Retry logic and clear "try again later" UX matter.
Integration patterns
The KYC.bd NID Verification API exposes a single POST endpoint. Send the NID number plus the customer's claimed name and date of birth, get back a structured match result and a signed audit receipt. See it deployed in fintech and telecom.