Dutch BSN Validator
Validate a 9-digit Dutch BSN (Burgerservicenummer) using the 11-test rule. Useful for employment, taxes and data records in the Netherlands.
BSN: the Dutch citizen number and the "elfproef" 11-test
The BSN (Burgerservicenummer) is the 9-digit citizen service number that identifies every resident of the Netherlands across government, healthcare and tax systems. Its integrity is protected by the elfproef ("eleven test") — a weighted checksum that catches typos. This tool runs that check on the nine digits.
The elfproef multiplies the digits by descending weights 9, 8, 7, 6, 5, 4, 3, 2 and the last digit by −1; the total must be divisible by 11 (and the number can't be all zeros). The negative weight on the final digit is the distinctive twist that separates the BSN from the older sofinummer rules.
The elfproef, step by step
- Weights:
9 8 7 6 5 4 3 2 −1across the nine digits. - Sum: multiply each digit by its weight and add.
- Rule: valid only if the sum is a multiple of 11.
- Exclusion:
000000000is rejected even though it passes arithmetically.
Where it matters
- Government & DigiD: the BSN is the key to Dutch e-government and the DigiD login.
- Healthcare & tax: doctors, the Belastingdienst and employers all use it.
- Privacy-sensitive: handling a BSN is legally restricted — only specific parties may store it.
- Mock data / testing: the elfproef lets you generate valid test BSNs without real data.
Common pitfalls
- Note the −1 weight: the last digit is subtracted, not added — a common implementation bug.
- Leading zeros: BSNs can be 8 digits historically; pad to 9 and store as a string.
- Checksum ≠ issued: passing the elfproef doesn't mean the BSN belongs to a real person.
- Don't store casually: Dutch law restricts who may process a BSN.
FAQ
What is the elfproef? The "eleven test": a weighted sum (9…2, then −1) that must be divisible by 11.
Is the BSN the same as the old sofinummer? The BSN replaced and extended the sofinummer in 2007; the number can be the same but the framework differs.
Can I just store anyone's BSN? No — processing a BSN is legally limited to authorised organisations.
Related Tools
PIS Format Validator
Validate a Brazilian PIS/PASEP number (11 digits) by checking its verification digit with the official algorithm. Useful for HR and payroll records.
Brazilian Voter ID Validator
Validate Brazilian voter ID (Título de Eleitor) numbers using the official TSE algorithm. No data sent to servers.
JMBG (Serbia/Yugoslavia) Validator
Validates JMBG (Jedinstveni Maticni Broj Gradjana) 13-digit personal identifier from former Yugoslavia countries.
CNPJ Base/Branch Validator
Validate the base (8 digits) and branch (4 digits) of a Brazilian CNPJ, without the check digit. Useful for spotting headquarters, branches and corporate groups.
RG-RJ Format Validator
Validate the format of a Rio de Janeiro RG ID (8 digits plus check digit). Useful for checking documents in forms and sign-ups.
Mexico CURP Validator
Validate Mexican CURP (Unique Population Registry Code) — 18 chars with specific format for name, date, sex, state and check digit.