BSN Generator - Generate Fictional Dutch Citizen Service Numbers with Elfproef
Generate valid fictional BSN numbers that pass the Dutch elfproef validation. Ideal as test data for software development, QA testing and test automation. Bulk generation with export to Excel, CSV and JSON.
Note:All generated data is entirely fictional and not suitable for use as real personal information.
Example BSN numbers (click to copy)
Five valid fictional BSN numbers that pass the eleven-test (elfproef). Click a number to copy it to your clipboard. Not linked to real persons in the Dutch civil registry (BRP).
- 1112223339+8+7+12+10+8+9+6−3 = 6666 ÷ 11 = 6 ✓
- 1234567829+16+21+24+25+24+21+16−2 = 154154 ÷ 11 = 14 ✓
- 31415926527+8+7+5+45+18+6+12−5 = 143143 ÷ 11 = 13 ✓
- 1000000839+0+0+0+0+0+0+16−3 = 2222 ÷ 11 = 2 ✓
- 99999999081+72+63+54+45+36+27+18−0 = 396396 ÷ 11 = 36 ✓
Need more numbers? Use the generator above for 1 to 10,000 unique valid BSN numbers, or export a complete dataset with BSN + name + IBAN via the Dataset Generator.
What is a BSN number?
The Burgerservicenummer (BSN) is the unique citizen service number issued by the Dutch government to identify citizens in administrative systems. Each BSN is a 9-digit identifier and is strictly personal — no two persons share the same number.
Dutch authorities that mandate BSN use: Belastingdienst (tax office), UWV (employee insurance), health insurers, employers, municipalities, and DigiD. The BSN replaced the older "sofinummer" in 2007.
Why use a fictional BSN generator?
Under the GDPR (and the Dutch AVG), the BSN is classified as sensitive personal data. Using real BSN numbers in test, staging, or development environments is prohibited. Fictional BSN numbers — like those generated here — are the standard approach for:
- Form validation — verify your frontend correctly applies the eleven-test rule.
- Unit and integration tests — fill fixtures and mock objects with realistic-looking BSN data.
- DigiD integrations — when building SAML or OpenID Connect connectors for the Dutch government's login system, BSN values are required in the preprod environment.
- Load and performance tests — generate thousands of unique fictional BSN numbers for realistic bulk database tests.
- BRP / Haal Centraal API integrations — test the connection to the Dutch civil registry without using production data.
For complete test datasets including BSN + IBAN + name + address in one export, use the Dataset Generator.
How to use the BSN Generator
Generate valid fictional Dutch BSN numbers for your test environment in four steps:
- Open the generator — the tool loads instantly, no account or registration required.
- Choose the amount — from 1 to 10,000 BSN numbers per generation. Useful for both quick testing and filling large test databases.
- Click "Generate" — all numbers are created immediately in your browser and automatically pass the eleven-test. No server request, no waiting.
- Copy or export — click a number to copy it directly, or export the full list as Excel (.xlsx), CSV or JSON for use in test automation pipelines or databases.
How does the BSN eleven-test work?
The Burgerservicenummer (BSN) is a 9-digit number validated using the so-called eleven-test (elfproef). This algorithm works as follows:
- Each digit of the BSN is multiplied by a weight. From left to right the weights are: 9, 8, 7, 6, 5, 4, 3, 2, -1.
- The products are summed together.
- The result must be divisible by 11 and must not be 0.
Example: For BSN 111222333 the sum is: (1x9) + (1x8) + (1x7) + (2x6) + (2x5) + (2x4) + (3x3) + (3x2) + (3x-1) = 9+8+7+12+10+8+9+6-3 = 66. 66 / 11 = 6, so this BSN is valid.
This generator applies the eleven-test algorithm to produce only valid fictional BSN numbers. The numbers are not linked to real persons.