NIB Validator
Portuguese bank account number (NIB) — 21 digits with bank check digits.
Portugal Validation
How validation works
The validator checks the 21-digit NIB structure and the bank-specific check digits defined by Banco de Portugal.
Install the package
dotnet add package DocumentNumber.Portugal.BankAccountNumber.Validator
Validator in C#
using DocumentNumber.Portugal.BankAccountNumber.Validator;
var validator = new BankAccountValidator();
var isValid = validator.Validate("000201231234567890154");
Console.WriteLine(isValid ? "Valid" : "Invalid");
Live example
000201231234567890154 — a real NIB value accepted by the validator
Try NIB validation
Runs the exact same library code your application uses. Nothing you enter is stored.
Frequently asked questions
What is NIB?
Portuguese bank account number (NIB) — 21 digits with bank check digits.
How does NIB validation work?
The validator checks the 21-digit NIB structure and the bank-specific check digits defined by Banco de Portugal.
How do I install the NIB validator package?
dotnet add package DocumentNumber.Portugal.BankAccountNumber.Validator
Is the value I enter in the demo stored?
No. Demo inputs are processed in memory for the current request only and are never persisted or shared.