PESEL generator and validator

PESEL generator for tests: samples with a valid check digit and the algorithm worked out.

loading PESEL generator and validator
About this tool

PESEL: what it is and how to test it

The PESEL is the 11-digit national identification number of Poland. It encodes the birth date and the sex of the holder, plus a check digit, and is requested by banks, doctors and public services. A form that asks for a PESEL usually validates date and check digit.

For tests only. These numbers have a correct format and check digit but belong to no real person or account. Never use them to deceive, to open accounts or to bypass a check. The numbers on this page come from the same generator as the tool, with a fixed seed so that the examples do not change; the tool creates new ones at every click.

Structure of the number

11 digits: birth date as YYMMDD, with a number added to the month to give the century (+80 for 1800 to 1899, +0 for 1900 to 1999, +20 for 2000 to 2099, +40 for 2100 to 2199, +60 for 2200 to 2299); 4 digits of series, the last of which is odd for men and even for women; and a check digit.

The check digit, step by step

The first 10 digits are multiplied by the repeating weights 1, 3, 7, 9 and summed. The check digit is 10 minus the last digit of the sum, taken mod 10, that is, the digit that makes the weighted sum of all 11 digits end in 0.

Worked example with 26021407297:

PositionCharacterValueWeightProduct
12212
266318
30070
422918
51111
644312
70070
877963
92212
1099327

Sum = 143; 143 mod 10 = 3; 10 - 3, taken mod 10, is the check digit 7.

Valid examples

Five numbers generated by the tool with a fixed seed, each one accepted by its validator:

Without maskValidator
26021407297valid
41062359934valid
32081392008valid
31072333118valid
36060394571valid

How the validator answers

The same first example, one with a changed ending and one truncated, checked by the validator:

ValueResultReason
26021407297valid-
26021407298invalidthe check digit should be 7
260214072invalidneeds 11 digits

Common mistakes

  • Reading the month as 1 to 12 only fails for everyone born from 2000: 2000s births have 21 to 32 in the month position (20 added), and a validator must subtract the century offset first.
  • Assuming that a valid PESEL means an adult: the date inside may be in the future or make the holder a child, and age rules are a separate check from the check digit.

Frequently asked questions

Is 44051401359 a valid PESEL?

Yes, it is the usual example from the documentation: it stands for 14 May 1944, a male holder, and its weighted sum ends in 0. It does not identify anyone.

How do I know the sex from a PESEL?

The tenth digit: odd for men, even for women. In 44051401359 it is 5, so male.

Can I use a PESEL number generated here in a real system?

No. A number such as 26021407297 has a correct format and check, but nobody was issued it, and it may coincide with a real holder by chance. Use it in test environments, demos and automated tests that never leave your control.

Report a problem