Test BSN Generator - Dutch Elfproef Valid

Generate valid Dutch BSN test numbers that pass the elfproef (11-check). Perfect for development and testing. Free online tool.

These BSN numbers are for testing purposes only. They pass the elfproef validation but do not belong to real persons.

Validate BSN

About the elfproef (11-check)

A valid BSN must satisfy: 9×d1 + 8×d2 + 7×d3 + 6×d4 + 5×d5 + 4×d6 + 3×d7 + 2×d8 − 1×d9 must be divisible by 11 and not equal to 0.

Test BSN Generator - Dutch Citizen Service Numbers for Testing

Generate valid Dutch BSN (Burgerservicenummer) test numbers that pass the elfproef (11-check) validation. These numbers are essential for developers building Dutch government, healthcare, or financial applications where BSN validation is required. All generated numbers are fictional and not linked to real persons.

A valid BSN is a 9-digit number where the weighted sum 9×d1 + 8×d2 + 7×d3 + 6×d4 + 5×d5 + 4×d6 + 3×d7 + 2×d8 - 1×d9 must be divisible by 11 and the result must not be 0. The generator produces numbers satisfying this constraint, ensuring they pass any standard BSN validation library.

Software developers building DigiD integrations, healthcare (EPD/ECD) systems, and municipal (gemeente) applications need test BSNs for development. QA testers validate BSN input fields and error handling. Trainers use test BSNs for demonstrations without exposing real citizen data.

Using real BSN numbers in test environments is a violation of Dutch privacy law (AVG/GDPR) and can result in significant fines. Always use generated test numbers and clearly mark test environments. The Rijksdienst voor Identiteitsgegevens (RvIG) also publishes official test BSN ranges for specific use cases.

Unlike manually calculated test BSNs that developers pass around in Slack channels, this generator produces unique numbers on demand. For other Dutch test data, combine with our Test IBAN Generator for bank accounts and Test Document Number Generator for identity documents.

Dutch rules toolkit

This is one of 21 tools built on actual Dutch regulations rather than generic maths: salary and severance, notice periods and WW duration, BTW and mortgages, public holidays, AOW age, and GDPR-safe test data for Dutch systems.

See all Dutch tools
Dutch test data toolkit

This generator is part of a set of GDPR-safe Dutch test data tools: test BSNs, IBANs, document numbers, BRP records, and UPA files. All of them work in the browser, and several are available as a REST API and MCP server for CI pipelines and AI agents.

View the Dutch test data toolkit

How the Test BSN Generator Works

  1. 01Select how many test BSN numbers you need
  2. 02Click Generate - each BSN passes the 11-check (elfproef) validation
  3. 03Copy the numbers for use in your development or test environment
  4. 04Verify the numbers with the built-in validation check

BSN Numbers in Dutch Software Development

The BSN (Burgerservicenummer) is the Dutch citizen service number, a 9-digit identifier used by government and healthcare systems. Valid BSNs must pass the '11-check' (elfproef): a weighted sum of all digits must be divisible by 11. When developing Dutch government or healthcare software, use generated test BSNs instead of real ones - using real BSNs in test environments violates Dutch privacy law (AVG/GDPR).

When to Use the Test BSN Generator

Use this generator when developing or testing software that processes Dutch BSN (Burgerservicenummer) numbers. This includes DigiD integrations, healthcare systems (EPD/ECD), municipal applications, tax software, and any government-related system in the Netherlands. Using generated test BSNs instead of real ones ensures GDPR/AVG compliance in your development environment.

Common Use Cases

  • Developing and testing DigiD authentication integrations for Dutch government services
  • Building healthcare systems (EPD/ECD) that require valid BSN input for patient records → Test IBAN Generator
  • Populating staging databases for municipal and tax software with compliant test data
  • Training and demo environments for government employee onboarding

Expert Tips

  • Never use real BSN numbers in development or test environments - this violates Dutch privacy law (AVG/GDPR)
  • The RvIG publishes official test BSN ranges for specific governmental use cases - check their documentation for your context
  • Combine with Test IBAN Generator and Test Document Number Generator for a complete set of Dutch test identifiers

Frequently Asked Questions

What is the elfproef (11-check)?→
The elfproef is a checksum validation for BSN numbers. The formula is: 9×d1 + 8×d2 + 7×d3 + 6×d4 + 5×d5 + 4×d6 + 3×d7 + 2×d8 - 1×d9. The result must be divisible by 11 and cannot equal 0. This validation catches most typing errors and prevents random numbers from being accepted as valid BSNs.
Are these real BSN numbers?→
No. The generated numbers pass the mathematical validation (elfproef) but are not registered with the Basisregistratie Personen (BRP). They do not belong to real persons. Using real BSN numbers in test environments violates Dutch privacy law.
Can I use these for production applications?→
These numbers are strictly for development and testing. Never accept self-generated BSN numbers in a production context. Production systems should validate BSN format and, where required, verify the number against the BRP (Basisregistratie Personen) through authorized channels.
Is it legal to generate test BSN numbers?→
Yes, generating numbers that pass the elfproef for testing purposes is perfectly legal. What is illegal is using real BSN numbers in test environments (GDPR/AVG violation) or using generated numbers to impersonate real persons. The Rijksdienst voor Identiteitsgegevens (RvIG) also publishes official test BSN ranges.

Related tools

12 suggested

Link to this tool

Free to use, free to link

Mentioning this tool in a README, a blog post or your team wiki? Paste one of these and your readers land straight on the tool, running in their own browser.

  • HTML<a href="https://toolforte.com/tools/test-bsn-generator">Test BSN Generator</a>
  • MD[Test BSN Generator](https://toolforte.com/tools/test-bsn-generator)