Skip to main content
Skip to main content

German ePA-ID / KVNR (Health ID) Generator

Generate and format valid German ePA-ID / KVNR (Health ID) for software testing and development.

Waiting for generation...

About German ePA-ID / KVNR (Health ID)

The ePA-ID (elektronische Patientenakte Identifier) is the 10-character health insurance number (KVNR) governed by Gematik and the German Federal Ministry of Health (BMG) under the Digital Healthcare Modernization Act.

The format consists of 1 uppercase letter (mapped to 2-digit values 01-26) followed by 8 sequential digits and a Modulo 10 check digit with weights `1, 2, 1, 2, 1, 2, 1, 2, 1`.

Anatomy & Structure of ePA-ID (KVNR)

ePA-ID is based on the 10-character KVNR standard specified by gematik (§ 290 SGB V):

PositionFieldLengthMeaning & RuleExample
1Initial Letter1 letterUppercase letter (A-Z) converted to 2-digit numerical code (A=01 to Z=26)A
2 to 9Insured Serial8 digitsUnique non-transferable sequential ID issued by health insurer12345678
10Check Digit1 digitControl digit calculated using weighted Modulo 10 with digit sum9

ePA-ID Validation Algorithm (Weighted Modulo 10 with Digit Sum)

gematik specifies alternating 1-2-1-2 weights with digit sum (Quersumme) calculation:

P = sum(Quersumme(d_i * w_i)) % 10
  1. 1. Convert initial letter to 2 digits matching alphabet order (A=01, B=02, ..., Z=26).
  2. 2. Form a 10-digit array combining the 2 letter digits with the 8 serial digits.
  3. 3. Multiply by alternating weights: [1, 2, 1, 2, 1, 2, 1, 2, 1, 2].
  4. 4. Calculate digit sum (Quersumme) for each product >= 10.
  5. 5. Sum all digit sums and apply modulo 10 to obtain the 10th check digit.

Frequently Asked Questions & Technical Guidelines